Subsequent events (Details) - USD ($)
$ / shares in Units, $ in Thousands
Jul. 30, 2018
Jul. 24, 2018
Jul. 09, 2018
Jun. 30, 2018
Mar. 31, 2018
Subsequent events          
Common stock, authorized       27,314,288 27,314,288
Common stock, par value (in dollars per share)       $ 0.001 $ 0.001
2017 Plan          
Share based payments          
Total number of common shares authorized to issue       2,659,885  
Number of shares available for grant       149,567  
Subsequent events          
Subsequent events          
Common stock, authorized     27,314,288    
Subsequent events | 2018 Plan          
Share based payments          
Total number of common shares authorized to issue     3,617,968    
Common stock reserved for issuance     3,486,118    
Number of shares available for grant     131,850    
Subsequent events | ESPP          
Share based payments          
Common stock reserved for issuance     348,612    
Share based payment award percentage of outstanding shares     1.00%    
Additional number of common shares authorized to issue     697,224    
Subsequent events | 2017 Plan | Maximum          
Share based payments          
Number of shares available for grant     2,520,247    
Subsequent events | IPO          
Subsequent events          
Shares issued 707,936 6,700,000      
Shares issued price (in dollars per share) $ 15.00 $ 15.00      
Proceeds from issuance of initial public offering $ 9,876 $ 93,465      
Common stock, par value (in dollars per share)   $ 0.001      
Undesignated preferred stock, authorized   10,000,000      
Preferred stock, Par Value (in dollars per share)   $ 0.001      
Subsequent events | IPO | Maximum          
Subsequent events          
Common stock, authorized   150,000,000