You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=function&page=2&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=function
Returns an array of strings in format "username" or "username/projectName"
Found 24048 results for "function"(1581ms)
6const SIMPLE_MEMORIES = 'nanocog_simple_memories_v1';
78export async function initSimpleMemories() {
9await sqlite.execute(`CREATE TABLE IF NOT EXISTS ${SIMPLE_MEMORIES} (
10id TEXT PRIMARY KEY,
15}
1617export async function processSimpleChat(message: string, userId: string) {
18// Initialize simple memories table
19await initSimpleMemories();
6const USERS_TABLE = 'nanocog_users_v1';
78export async function initializeDatabase() {
9// Atoms table - core knowledge representation
10await sqlite.execute(`CREATE TABLE IF NOT EXISTS ${ATOMS_TABLE} (