You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=42&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 11723 results for "api"(1596ms)
22if (path === "/log") {
23return serveLogPage(req);
24} else if (path === "/api/log") {
25// Forward to the log entry API
26const logEntryHandler = (await import("./routes/logEntry.ts")).default;
27return logEntryHandler.handler(req);
28} else if (path === "/api/todo/update") {
29// Simplified todo update API
30const logEntryHandler = (await import("./routes/logEntry.ts")).default;
31
457// Update todo status
458try {
459const response = await fetch('/api/todo/update', {
460method: 'POST',
461headers: {
753try {
754// Submit log data
755const response = await fetch('/api/log', {
756method: 'POST',
757headers: {
29app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
3031// API endpoint to update username
32app.post("/api/user/username", async c => {
33const user = c.get("user");
34