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/$%7Burl%7D?q=api&page=10&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 19714 results for "api"(1616ms)

ssscQuizREADME.md4 matches

@all•Updated 20 hours ago
93- SQLite database with optimized schema and indexing
94- Enhanced email system with HTML/text templates
95- API endpoints for quiz submission and analytics
96- Static file serving for all frontend assets
97- Mobile-responsive design
106
107### Backend (Hono)
108- RESTful API with proper error handling
109- SQLite database with structured schema and indexes
110- Email automation with professional HTML templates
238
239### Environment Variables
240- `VAL_TOWN_API_KEY`: Automatically provided by Val Town
241- Optional overrides:
242 - `ADMIN_EMAIL`: Admin notification email
269- **Advanced Analytics**: User behavior tracking
270- **Social Features**: Community building around archetypes
271- **API Integration**: Connect with event platforms
272
273### Technical Improvements

ssscQuizindex.http.ts7 matches

@all•Updated 20 hours ago
60});
61
62// API Routes
63app.post("/api/submit-quiz", async c => {
64 try {
65 const body = await c.req.json() as QuizSubmission;
159
160// Test email endpoint for debugging
161app.get("/api/test-email", async c => {
162 try {
163 console.log("Testing email functionality...");
182
183// Debug endpoint for troubleshooting
184app.get("/api/debug-config", async c => {
185 try {
186 return c.json({
198
199// Test insert endpoint for debugging
200app.get("/api/test-insert", async c => {
201 try {
202 console.log("Testing database insert...");
242
243// Enhanced debug endpoint to check table structure and data
244app.get("/api/debug-table", async c => {
245 try {
246 // Get table schema
286
287// Get analytics endpoint with proper error handling
288app.get("/api/analytics", async c => {
289 try {
290 const stats = await sqlite.execute(`

ssscQuizindex.html2 matches

@all•Updated 20 hours ago
11
12 <!-- Fonts -->
13 <link rel="preconnect" href="https://fonts.googleapis.com">
14 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
15 <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap" rel="stylesheet">
16
17 <!-- External Libraries -->

townie-testingexample-apis.ts10 matches

@chadparker•Updated 20 hours ago
1export default async function(req: Request) {
2 const url = new URL(req.url);
3 const api = url.searchParams.get('api') || 'jsonplaceholder';
4
5 try {
6 let apiUrl: string;
7
8 switch (api) {
9 case 'jsonplaceholder':
10 const randomUserId = Math.floor(Math.random() * 10) + 1; // Random int from 1 to 10
11 apiUrl = `https://jsonplaceholder.typicode.com/users/${randomUserId}`;
12 break;
13 case 'httpbin':
14 apiUrl = 'https://httpbin.org/json';
15 break;
16 case 'cat-facts':
17 apiUrl = 'https://catfact.ninja/fact';
18 break;
19 case 'dog-api':
20 apiUrl = 'https://dog.ceo/api/breeds/image/random';
21 break;
22 default:
23 return new Response('Available APIs: jsonplaceholder, httpbin, cat-facts, dog-api\nUsage: ?api=jsonplaceholder', {
24 headers: { 'Content-Type': 'text/plain' }
25 });
26 }
27
28 const response = await fetch(apiUrl);
29
30 if (!response.ok) {

ssscQuizindex.tsx1 match

@all•Updated 20 hours ago
70 setIsSubmitting(true);
71 try {
72 const response = await fetch('/api/submit-quiz', {
73 method: 'POST',
74 headers: {

tuempresaallinone.tsx7 matches

@arequipe•Updated 22 hours ago
3
4export default async function generateCartaPorteCFDI(req: Request): Promise<Response> {
5 const AIRTABLE_API_KEY = Deno.env.get("AIRTABLE_API_KEY")!;
6 const AIRTABLE_BASE_ID = Deno.env.get("AIRTABLE_BASE_ID")!;
7 const FACTURAMA_AUTH = Deno.env.get("FACTURAMA_AUTH")!;
43
44 const airtableHeaders = {
45 Authorization: `Bearer ${AIRTABLE_API_KEY}`,
46 "Content-Type": "application/json",
47 };
48
49 const fetchRecord = async (tableId: string, id: string) => {
50 const res = await fetch(`https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${tableId}/${id}`, {
51 headers: airtableHeaders,
52 });
69 form.append("upload_preset", CLOUDINARY_UPLOAD_PRESET);
70
71 const res = await fetch(`https://api.cloudinary.com/v1_1/${CLOUDINARY_CLOUD_NAME}/upload`, {
72 method: "POST",
73 body: form,
83
84 const updateAirtableFields = async (tableId: string, id: string, fields: Record<string, any>) => {
85 const res = await fetch(`https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${tableId}/${id}`, {
86 method: "PATCH",
87 headers: airtableHeaders,
95
96 const fetchFromFacturama = async (id: string, type: "xml" | "pdf") => {
97 const url = `https://apisandbox.facturama.mx/api/Cfdi/${type}/issued/${id}`;
98 const res = await fetch(url, {
99 headers: {
771 console.log("Receiver Name enviado:", cfdi.Receiver.Name);
772
773 const facturamaRes = await fetch("https://apisandbox.facturama.mx/3/cfdis", {
774 method: "POST",
775 headers: {

Workflow2main.tsx10 matches

@svc•Updated 22 hours ago
203 const { name, role } = acp.payload.content.crmData;
204 const templates = {
205 "Developer": "you'll find our API documentation and sandbox environment particularly useful",
206 "Data Scientist": "our data integration pipelines and visualization tools will help you get insights faster",
207 "Project Manager": "you can leverage our Gantt charts and reporting dashboards to keep your projects on track",
318 name: "Automated Incident Response",
319 description: "Diagnose and create a remediation plan for a system alert.",
320 initialPayloadSchema: `{ "service": "api-gateway", "severity": "critical", "summary": "High CPU usage." }`,
321 steps: [
322 triageAgent,
563 },
564
565 async apiCall(action, body) {
566 this.elements.startBtn.disabled = true;
567 this.elements.approveBtn.disabled = true;
573 body: JSON.stringify(body),
574 });
575 if (!res.ok) throw new Error(\`API Error: \${res.statusText}\`);
576 return await res.json();
577 } catch (e) {
591 this.state.currentPayload = payload;
592
593 const data = await this.apiCall('runWorkflow', { workflowId: this.state.currentWorkflowId, payload });
594 this.processApiResponse(data);
595 },
596
606 };
607
608 const data = await this.apiCall('runWorkflow', {
609 workflowId: this.state.currentWorkflowId,
610 payload: this.state.currentPayload,
612 stepIndex: this.state.nextStepIndex,
613 });
614 this.processApiResponse(data);
615 },
616
617 processApiResponse(data) {
618 if (!data) return;
619 if(data.log) data.log.forEach(entry => this.logStatus(entry.agent, entry.status, entry.message));
621 const result = data.finalResult;
622 if(!result) {
623 this.logStatus('system', 'error', 'API response was missing a final result.');
624 return;
625 }

Change-Logs-GeneratorREADME.md1 match

@hussufo•Updated 1 day ago
15const REPOS = [
16 { owner: "steel-dev", name: "steel-browser", branch: "main" },
17 { owner: "steel-dev", name: "steel-api", branch: "develop" },
18 { owner: "steel-dev", name: "steel-docs", branch: "main" },
19];

Change-Logs-Generatorprocess-commits.tsx2 matches

@hussufo•Updated 1 day ago
73Enhanced logging system for better debugging
74Fixed occasional 500 error with the /sessions endpoint
75UI docker image now accepts dynamic API URLs for custom deploys
76Fixes to re-render bugs that were causing some state update delays
77Fixes requests ordering from FE to preload data for a snappier UI
379 return allCommits;
380 } catch (error) {
381 console.error("GitHub API Error:", error);
382 throw error;
383 }

tuempresacreate_cartaporte.tsx7 matches

@arequipe•Updated 1 day ago
2
3export default async function generateCartaPorteCFDI(req: Request): Promise<Response> {
4 const AIRTABLE_API_KEY = Deno.env.get("AIRTABLE_API_KEY")!;
5 const AIRTABLE_BASE_ID = Deno.env.get("AIRTABLE_BASE_ID")!;
6 const FACTURAMA_AUTH = Deno.env.get("FACTURAMA_AUTH")!;
20
21 const airtableHeaders = {
22 Authorization: `Bearer ${AIRTABLE_API_KEY}`,
23 "Content-Type": "application/json",
24 };
25
26 const fetchRecord = async (tableId: string, id: string) => {
27 const res = await fetch(`https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${tableId}/${id}`, {
28 headers: airtableHeaders,
29 });
46 form.append("upload_preset", CLOUDINARY_UPLOAD_PRESET);
47
48 const res = await fetch(`https://api.cloudinary.com/v1_1/${CLOUDINARY_CLOUD_NAME}/upload`, {
49 method: "POST",
50 body: form,
60
61 const updateAirtableFields = async (tableId: string, id: string, fields: Record<string, any>) => {
62 const res = await fetch(`https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/${tableId}/${id}`, {
63 method: "PATCH",
64 headers: airtableHeaders,
72
73 const fetchFromFacturama = async (id: string, type: "xml" | "pdf") => {
74 const url = `https://apisandbox.facturama.mx/api/Cfdi/${type}/issued/${id}`;
75 const res = await fetch(url, {
76 headers: {
383 console.log("Receiver Name enviado:", cfdi.Receiver.Name);
384
385 const facturamaRes = await fetch("https://apisandbox.facturama.mx/3/cfdis", {
386 method: "POST",
387 headers: {
Plantfo

Plantfo8 file matches

@Llad•Updated 5 hours ago
API for AI plant info

scrapeCraigslistAPI1 file match

@shapedlines•Updated 18 hours ago
apiry
snartapi