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/$%7Bsuccess?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 20764 results for "api"(2926ms)

myApi1 file match

@raymondcamdenโ€ขUpdated 1 year ago

myApi1 file match

@ianjkaplanโ€ขUpdated 1 year ago

myApi1 file match

@hungtdโ€ขUpdated 1 year ago

myApi1 file match

@santiโ€ขUpdated 1 year ago

myApi1 file match

@kavanaghโ€ขUpdated 1 year ago

myApi1 file match

@kf9โ€ขUpdated 1 year ago

myApi1 file match

@emohamedโ€ขUpdated 1 year ago

myApi1 file match

@itsfiggersโ€ขUpdated 1 year ago

myApi1 file match

@jmelisโ€ขUpdated 1 year ago

myApi1 file match

@markm247โ€ขUpdated 1 year ago

ContextualLiteREADME.md14 matches

@c15rโ€ขUpdated 2 hours ago
27โ”‚ โ”‚ โ”œโ”€โ”€ files-tools.ts # Files store tool handlers
28โ”‚ โ”‚ โ”œโ”€โ”€ code-tools.ts # Code execution tool handlers
29โ”‚ โ”‚ โ””โ”€โ”€ openai-tools.ts # OpenAI API tool handlers
30โ”‚ โ””โ”€โ”€ valtown/
31โ”‚ โ””โ”€โ”€ client.ts # Val Town API client (for admin features)
32โ””โ”€โ”€ README.md
33```
111- **admin-list-promoted-skills**: List all skills that have been promoted to system-wide availability (admin only)
112- **admin-update-promoted-skill**: Update a promoted skill with the latest version from its original user (admin only)
113- **admin-read-val-file**: Read a source code file from the project using Val Town API (admin only)
114- **admin-write-val-file**: Write/update a source code file in the project using Val Town API (admin only)
115- **admin-list-val-files**: List all files in the project directory structure using Val Town API (admin only)
116- **admin-project-info**: Get project information and structure overview using Val Town API (admin only)
117
118#### OpenAI API Tools
119- **openai-chat-completion**: Create chat completions using OpenAI's API via Val Town's built-in OpenAI integration (supports GPT-4, GPT-3.5, and other models)
120
121## OpenAI Integration
122
123The server includes OpenAI chat completion functionality using Val Town's built-in OpenAI integration. This provides seamless access to OpenAI's models without requiring additional API key configuration.
124
125### Example Usage
358**Note**: `AWS_SECRET_ACCESS_KEY` is NOT set as an environment variable. Instead, it's passed via the Authorization header for security.
359
360**OpenAI Integration**: OpenAI functionality uses Val Town's built-in OpenAI integration, which automatically handles API key management. No additional environment variables are required for OpenAI tools.
361
362### DynamoDB Table Schema
915
916```bash
917# Read a project source file using Val Town API (admin only)
918curl -X POST https://your-val-town-url.web.val.run/mcp \
919 -H "Content-Type: application/json" \
931 }'
932
933# Write/update a project source file using Val Town API (admin only)
934curl -X POST https://your-val-town-url.web.val.run/mcp \
935 -H "Content-Type: application/json" \
948 }'
949
950# List project files recursively using Val Town API (admin only)
951curl -X POST https://your-val-town-url.web.val.run/mcp \
952 -H "Content-Type: application/json" \
965 }'
966
967# Get comprehensive project information using Val Town API (admin only)
968curl -X POST https://your-val-town-url.web.val.run/mcp \
969 -H "Content-Type: application/json" \

ContextualLiteadmin-tools.ts4 matches

@c15rโ€ขUpdated 2 hours ago
235
236 /**
237 * Read a source code file from the project using Val Town API
238 */
239 async handleAdminReadValFile(args: any, authContext: ExtendedAuthContext) {
271
272 /**
273 * Write/update a source code file in the project using Val Town API
274 */
275 async handleAdminWriteValFile(args: any, authContext: ExtendedAuthContext) {
308
309 /**
310 * List files in the project directory using Val Town API
311 */
312 async handleAdminListValFiles(args: any, authContext: ExtendedAuthContext) {
345
346 /**
347 * Get project information and structure overview using Val Town API
348 */
349 async handleAdminProjectInfo(args: any, authContext: ExtendedAuthContext) {
replicate
Run AI with an API
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of ๐Ÿชฟ HONC ๐Ÿชฟ (https://honc.dev)