Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$1?q=api&page=21&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 18926 results for "api"(1259ms)

myApi1 file match

@nathanpower•Updated 1 year ago

myApi1 file match

@rraval•Updated 1 year ago

myApi1 file match

@stockmaster22•Updated 1 year ago

myApi1 file match

@swyx•Updated 1 year ago

rimeAPIEx2 file matches

@stevekrouse•Updated 1 year ago

myApi1 file match

@woop•Updated 1 year ago

myApi1 file match

@blakbelt78•Updated 1 year ago

myApi1 file match

@dnbrwstr•Updated 1 year ago

myApi1 file match

@luketurner•Updated 1 year ago

topSecretInfoApi1 file match

@bpietroniro•Updated 1 year ago

cardamonRecipeForm.tsx5 matches

@connnolly•Updated 52 mins ago
97 switch (parseMode) {
98 case 'url':
99 endpoint = '/api/parse/url';
100 requestData = { type: 'url', content: parseInput };
101 break;
102 case 'text':
103 endpoint = '/api/parse/text';
104 requestData = { type: 'url', content: parseInput }; // Note: backend expects 'url' type for text parsing
105 break;
110
111 if (uploadedFile.type.startsWith('image/')) {
112 endpoint = '/api/parse/image';
113 requestData = { type: 'image', content: parseInput };
114 } else if (uploadedFile.type === 'application/pdf') {
115 endpoint = '/api/parse/pdf';
116 requestData = { type: 'pdf', content: parseInput };
117 } else {
198 };
199
200 const url = isEditing ? `/api/recipes/${recipe.id}` : '/api/recipes';
201 const method = isEditing ? 'PUT' : 'POST';
202

cardamonindex.ts5 matches

@connnolly•Updated 1 hour ago
15await runMigrations();
16
17// API routes
18app.route('/api/recipes', recipesRoutes);
19app.route('/api/parse', parseRoutes);
20
21// Health check endpoint
22app.get('/api/health', (c) => {
23 return c.json({ status: 'ok', timestamp: new Date().toISOString() });
24});
25
26// Test delete endpoint
27app.get('/api/test-delete', async (c) => {
28 try {
29 const { createRecipe, deleteRecipe, getAllRecipes } = await import('./database/queries.ts');
apiry
snartapi