You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?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 7397 results for "database"(2741ms)
100console.log("demoData for examplePDF: ", page);
101102// TODO: hit the "Glancer interactions" database and filter by "Glancer demos"
103// this way, we don't have the formula string to deal with
104// build a controller for getDemoActions.ts with a filter
105106// get the "Glancer interactions" from Notion
107// data is stored in the "Glancer interactions" database and attached to the demo via relation
108// we can't really use the relation property b/c that only holds an array of page IDs in Notion
109// so, in Notion, we use a formula to transform the relation array into a string
1import { Hono } from "npm:hono";
2import { getDatabase } from "../../controllers/getDatabase.ts";
34const app = new Hono();
9// hit the controller to return data
10try {
11const data = await getDatabase(id);
12//
13console.log(data);