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=18&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 14864 results for "api"(897ms)

tarunkumarwebsiteREADME.md1 match

@Hemanthackerโ€ขUpdated 1 day ago
57## Getting Started
58
59The main entry point is `/backend/index.ts` which serves the React frontend and API routes.

wdl-mcpindex.tsx4 matches

@dglazkovโ€ขUpdated 1 day ago
6import { ValTransport } from "./mcp.tsx";
7
8const GEMINI_API_KEY = process.env.GEMINI_API_KEY;
9const QDRANT_API_KEY = process.env.QDRANT_API_KEY;
10
11const qdrant = new QdrantClient({
12 url: "https://fc7f61ca-9509-4bff-b81b-72b565d8fb6c.us-east4-0.gcp.cloud.qdrant.io:6333",
13 apiKey: QDRANT_API_KEY,
14});
15
16const ai = new GoogleGenAI({ apiKey: GEMINI_API_KEY });
17
18const createRandomGeminiVector = (): number[] => Array.from({ length: 768 }, () => Math.random() * 2 - 1);

LeadmagmagicREADME.md4 matches

@andiebukโ€ขUpdated 1 day ago
20## Tech Stack
21
22- **Backend**: Hono.js API with Together AI integration
23- **Frontend**: React with TypeScript
24- **AI**: Together AI for content analysis and generation
30```
31โ”œโ”€โ”€ backend/
32โ”‚ โ”œโ”€โ”€ index.ts # Main API server
33โ”‚ โ”œโ”€โ”€ routes/
34โ”‚ โ”‚ โ”œโ”€โ”€ upload.ts # PDF upload handling
52## Environment Variables
53
54- `TOGETHER_API_KEY`: Your Together AI API key
55
56## Usage
57
581. Set your Together AI API key in environment variables
592. Upload your product PDF (ensure it has selectable text)
603. Enter your product purchase link

LeadmagmagicUpload.tsx1 match

@andiebukโ€ขUpdated 1 day ago
67 formData.append('pdf', selectedFile);
68
69 const response = await fetch('/api/upload', {
70 method: 'POST',
71 body: formData

NoteByPGCREADME.md6 matches

@Itssongokuโ€ขUpdated 1 day ago
30โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database operations
31โ”‚ โ””โ”€โ”€ routes/
32โ”‚ โ””โ”€โ”€ notes.ts # Note API endpoints
33โ”œโ”€โ”€ frontend/
34โ”‚ โ”œโ”€โ”€ index.html # Main HTML template
42```
43
44## API Endpoints
45
46- `POST /api/notes` - Create a new note (admin only, requires admin password)
47- `GET /api/notes/:id` - Get a note (public access)
48- `POST /api/notes/:id/verify` - Verify password for protected note (public access)
49- `POST /api/notes/:id/delete` - Delete a note (admin only, requires admin password)
50
51## Tech Stack

NoteByPGCApp.tsx4 matches

@Itssongokuโ€ขUpdated 1 day ago
47
48 try {
49 const response = await fetch(`/api/notes/${noteId}`);
50
51 if (!response.ok) {
84 };
85
86 const response = await fetch('/api/notes', {
87 method: 'POST',
88 headers: { 'Content-Type': 'application/json' },
123
124 try {
125 const response = await fetch(`/api/notes/${currentNoteId}/verify`, {
126 method: 'POST',
127 headers: { 'Content-Type': 'application/json' },
157
158 try {
159 const response = await fetch(`/api/notes/${currentNoteId}/delete`, {
160 method: 'POST',
161 headers: { 'Content-Type': 'application/json' },

NoteByPGCindex.ts2 matches

@Itssongokuโ€ขUpdated 1 day ago
17setInterval(cleanupExpiredNotes, 60 * 60 * 1000); // Every hour
18
19// API routes
20app.route("/api/notes", notes);
21
22// Serve static files

Leadmagmagicai.ts7 matches

@andiebukโ€ขUpdated 1 day ago
3import type { ContentAnalysis, LeadMagnetContent } from "../../shared/types.ts";
4
5const TOGETHER_API_URL = 'https://api.together.xyz/v1/chat/completions';
6
7export async function callTogetherAI(messages: any[], model = 'meta-llama/Llama-3-8b-chat-hf') {
8 const TOGETHER_API_KEY = Deno.env.get('TOGETHER_API_KEY');
9
10 if (!TOGETHER_API_KEY) {
11 throw new Error('TOGETHER_API_KEY environment variable is required. Please set it in your Val Town environment.');
12 }
13
14 const response = await fetch(TOGETHER_API_URL, {
15 method: 'POST',
16 headers: {
17 'Authorization': `Bearer ${TOGETHER_API_KEY}`,
18 'Content-Type': 'application/json',
19 },
30 if (!response.ok) {
31 const error = await response.text();
32 throw new Error(`Together AI API error: ${response.status} - ${error}`);
33 }
34

LeadmagmagicGenerator.tsx1 match

@andiebukโ€ขUpdated 1 day ago
31 };
32
33 const response = await fetch('/api/generate', {
34 method: 'POST',
35 headers: {

LeadmagmagicAnalysis.tsx1 match

@andiebukโ€ขUpdated 1 day ago
50 };
51
52 const response = await fetch('/api/analyze', {
53 method: 'POST',
54 headers: {

token-server1 file match

@kwhinnery_openaiโ€ขUpdated 13 hours ago
Mint tokens to use with the OpenAI Realtime API for WebRTC

book-lookup-notion6 file matches

@nuckyโ€ขUpdated 1 day ago
use google book api to look up bibliographic metadata elements
rapilot330
Kapil01