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/image-url.jpg%20%22Optional%20title%22?q=api&page=161&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 14255 results for "api"(836ms)

Townietestindex.html2 matches

@Get•Updated 1 week ago
108
109 <footer class="mt-12 text-center text-sm text-gray-500">
110 <p>This application processes images using OpenAI's API. Images are not stored permanently.</p>
111 <p class="mt-1">
112 <a
173 formData.append('image', file);
174
175 const response = await fetch('/api/scan', {
176 method: 'POST',
177 body: formData

Townietesttypes.ts1 match

@Get•Updated 1 week ago
41
42/**
43 * Response format for the license scanning API
44 */
45export interface ScanResponse {

TownietestREADME.md1 match

@Get•Updated 1 week ago
33## Privacy Notice
34
35This application processes images using OpenAI's API. Images are not stored permanently but are transmitted to OpenAI for processing. Please ensure you have appropriate consent before uploading any personal identification documents.

MedisaarthiREADME.md2 matches

@Umanshika•Updated 1 week ago
12
131. Users upload a medical image through the web interface
142. The image is sent to OpenAI's Vision API with specific medical analysis prompts
153. The AI analyzes the image and provides potential diagnoses or observations
164. Results are displayed to the user
20- Frontend: HTML, JavaScript, and TailwindCSS for styling
21- Backend: TypeScript with Val Town's HTTP trigger
22- AI: OpenAI's Vision API for image analysis
23
24## Limitations

Teachapp.js3 matches

@Problewk•Updated 1 week ago
47
48 try {
49 // Send question to API with conversation history
50 const response = await fetch("/api/ask", {
51 method: "POST",
52 headers: {
223 clearcoat: 0.5, // Subtle clearcoat for realism
224 clearcoatRoughness: 0.4,
225 envMapIntensity: 0.3, // Subtle environment reflections
226 sheen: 0.2, // Subtle sheen
227 sheenRoughness: 0.5,

Teachindex.ts2 matches

@Problewk•Updated 1 week ago
35});
36
37// API endpoint for AI responses
38app.post("/api/ask", async c => {
39 try {
40 const body = await c.req.json();

TeachREADME.md2 matches

@Problewk•Updated 1 week ago
9 - Detailed facial features with realistic skin, eyes, and hair
10 - Lifelike animations and expressions
11- AI-powered responses using OpenAI's API
12- Interactive chat interface
13- Educational content delivery
34 - Advanced lighting setup for photorealistic rendering
35 - Facial animation system
36- OpenAI API for AI responses
37- Tailwind CSS for styling

doorutils.tsx1 match

@stevekrouse•Updated 1 week ago
31 .toString("base64");
32
33 const response = await fetch(`https://api.switch-bot.com/${path}`, {
34 headers: buildSwitchBotHeaders(),
35 ...args,

doorREADME.md5 matches

@stevekrouse•Updated 1 week ago
9[**Video demo**](https://www.tiktok.com/@stevekrouse/video/7398180191396318497?is_from_webapp=1&sender_device=pc)
10
11### Switchbot API Integration
12
13This Val authenticates to the Switchbot API with `SWITCHBOT_TOKEN` and `SWITCHBOT_KEY` environment variables.
14
15The application uses the Switchbot API to send a "press" command to the device with ID `D2353438164D` (Val Town Ground Floor device).
16
17Learn how to get your own Switchbot API keys here: [Switchbot Docs](https://github.com/OpenWonderLabs/SwitchBotAPI).
18
19### Project Structure
20
21- `main.tsx`: The main application file with Hono routes and UI components
22- `utils.tsx`: Utility functions for Switchbot API authentication and requests
23- `styles.tsx`: CSS styles for the web interface

YouthCareerToolkitREADME.md2 matches

@bolajeee•Updated 1 week ago
12- `PortfolioFormData` - Interface for the form data
13- `ContentType` - Type for the content type options
14- `GenerateRequest` - Interface for the API request
15- `GenerateResponse` - Interface for the API response
16
17## Utilities

book-lookup5 file matches

@nucky•Updated 1 day ago
use google book api to look up bibliographic metadata elements

new-val-api-demo

@shouser•Updated 3 days ago
This is an example of using the API to create a val.
snartapi
mux
Your friendly, neighborhood video API.