You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7BsvgDataUrl%7D?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 7489 results for "database"(5087ms)
44### Storage
4546- SQLite database with proper indexing for performance
47- Optimized for queries by author, timestamp, and location
48- User settings for feed preferences
60- **Runtime**: Deno on Val Town platform
61- **Framework**: Hono web framework
62- **Database**: Val Town hosted SQLite
63- **Protocol**: AT Protocol (ATProto) compliant
64- **Language**: TypeScript with full type safety
421. **Phase 1: Core Check-In Storage and Feeds**
43- Authentication via PDS-issued token validation
44- SQLite database for check-in records
45- Standard ATProto `com.atproto.repo.createRecord` endpoints
46- User and global feed endpoints
60- **Record Creation**: Standard ATProto compliance using `com.atproto.repo.createRecord`
61- **Federation**: Full AT Protocol compliance for external client support
62- **Database**: SQLite with proper indexing for performance (author, timestamp, location)
63- **Global Feed**: Hard limit of 100 records maximum to prevent resource abuse
6477```
78backend/
79├── database/
80│ ├── migrations.ts # Schema definitions with table versioning
81│ └── queries.ts # DB query functions with proper type conversion
89```
9091## Database Schema
9293Core table structure using Val Town SQLite:
134135- **Platform**: Val Town (Deno runtime)
136- **Database**: Val Town hosted SQLite service
137- **Authentication**: Token validation via external PDS calls with in-memory caching
138- **Federation**: AT Protocol compliant
1641. Develop and test locally using this directory structure
1652. Use `vt create backend/index.ts` to deploy main HTTP endpoint
1663. Database initialization runs automatically on startup
1674. Environment variables managed through Val Town dashboard
1685. CORS handled automatically by Val Town platform