You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=database&page=1&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 3893 results for "database"(1047ms)
45}
4647// Now it's time to upload things to database and blob storage
48// First, add to database, and get the ID
49const id = await sqlite.execute(
50`INSERT INTO ${TABLE_NAME} (title, data, type, time) VALUES ($title, $data, $type, $time)`,
262263/**
264* Store a message in the database
265*/
266async function storeMessage(userId, userName, text, direction) {