You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bsuccess?q=database&page=2&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=database
Returns an array of strings in format "username" or "username/projectName"
Found 3891 results for "database"(1152ms)
46}
4748// Now it's time to upload things to database and blob storage
49// First, add to database, and get the ID
50const id = await sqlite.execute(
51`INSERT INTO ${TABLE_NAME} (title, data, type, time, hidden) VALUES ($title, $data, $type, $time, $hidden)`,
30- [ ] add triggers to sidebar
31- [ ] add upload from SQL, CSV and JSON
32- [ ] add ability to connect to a non-val town Turso database
33- [x] fix wonky sidebar separator height problem (thanks to @stevekrouse)
34- [x] make result tables scrollable