You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=api&page=47&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 18106 results for "api"(610ms)
9- **TypeScript editor**: Full-featured TypeScript editor with syntax highlighting
10- **File type detection**: Automatic file type detection and appropriate handling
11- **Val Town integration**: Direct integration with Val Town API for file management
12- **Configurable URLs**: All service URLs are configurable via config.json
1348## File Types Supported
4950- **HTTP** (`http`) - Web endpoints and APIs
51- **Cron** (`cron`) - Scheduled tasks
52- **Email** (`email`) - Email handlers
65- `GET /` - Redirects to main gallery
66- `GET /{zon-name}` - View files in specific zon
67- `GET /{zon-name}/files` - API endpoint returning JSON list of files
68- Groups files by type and shows file metadata
69875. **Run HTTP files**: Use the Run button to test HTTP endpoints
8889## API Integration
9091The system integrates with:
90});
9192// API endpoint to get specific file content
93app.get("/:zon/:file/raw", async (c: Context) => {
94const { zon, file } = c.req.param();