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/$2?q=api&page=50&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 18303 results for "api"(2861ms)

utilsREADME.md1 match

@stdโ€ขUpdated 3 days ago
1# Val Town Project Utilities
2
3These utils are very rapidly developing, so expect breaking changes.
4
5* file - reading files and directories in Projects

GlancerApp.tsx5 matches

@lightweightโ€ขUpdated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { useEffect, useState } from "https://esm.sh/react@18.2.0";
3import { DemoData, isApiError, isNotionPage } from "../index.tsx";
4import { CheckoutContent } from "./content/checkout/checkout.tsx";
5import { FormContent } from "./content/form/form.tsx";
60 if (!demoData) return <div>No demo data available</div>;
61
62 // Handle error responses from the API
63 if (isApiError(demoData)) {
64 return (
65 <div>
66 <h3>API Response:</h3>
67 <p>
68 <strong>Status:</strong> {demoData.status}
168 href={`#${page.properties.Name.title[0].plain_text}`}
169 className={
170 `${currentHash === page.properties.Name.title[0].plain_text ? 'active' : ''} capitalize`
171 }
172 onClick={() => {

GlancergetRelatedPagesFromDatabase.ts1 match

@lightweightโ€ขUpdated 3 days ago
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7

Glancerdemo.ts5 matches

@lightweightโ€ขUpdated 3 days ago
5} from "https://esm.town/v/std/utils/index.ts";
6import { Hono } from "npm:hono";
7import { examplePDF } from "../../api/servePDF.ts";
8import { getPage } from "../../../controllers/getPage.ts";
9import { getRelatedPagesFromDatabase } from "../../../controllers/getRelatedPagesFromDatabase.ts";
27 let html = await readFile("/frontend/index.html", import.meta.url);
28
29 // Use the /demo API endpoint to get data
30 // const apiUrl = new URL(c.req.url);
31 // apiUrl.pathname = `/api/demo/${id}`;
32 // const response = await fetch(apiUrl.toString());
33 const page = await getPage(id);
34

my-first-valindex.tsx1 match

@Onujulesโ€ขUpdated 3 days ago
10 <link rel="stylesheet" href="https://esm.town/v/Onujules/my-first-val@main/frontend/style.css" />
11 <style>
12 @import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&display=swap');
13
14 body {

Glanceriframe.tsx3 matches

@lightweightโ€ขUpdated 3 days ago
19 src="https://glance--90537b2ecab54268bf831875fe1d0158.web.val.run"
20 // src="https://lightweight--ef4179e03fc011f0bc0c76b3cceeab13.web.val.run"
21 // src="/api/iframe"
22 // src={`/api/${content}`}
23 // src={`/api/${content}?user=${userId}`}
24 // src={contentURL}
25 title={`Glance content: ${content}`}

fotmobindex.html6 matches

@cemugur70โ€ขUpdated 3 days ago
469
470 // Send to backend for analysis
471 const response = await fetch('/api/analyze', {
472 method: 'POST',
473 headers: {
563
564 try {
565 const response = await fetch('/api/analyze', {
566 method: 'POST',
567 headers: {
674
675 try {
676 const response = await fetch('/api/export/full', {
677 method: 'POST',
678 headers: { 'Content-Type': 'application/json' },
701
702 try {
703 const response = await fetch('/api/export/iddaa', {
704 method: 'POST',
705 headers: { 'Content-Type': 'application/json' },
728
729 try {
730 const response = await fetch('/api/export/poisson', {
731 method: 'POST',
732 headers: { 'Content-Type': 'application/json' },
755
756 try {
757 const response = await fetch('/api/export/accuracy', {
758 method: 'POST',
759 headers: { 'Content-Type': 'application/json' },

fotmobindex.ts6 matches

@cemugur70โ€ขUpdated 3 days ago
54} | null = null;
55
56// Analysis API endpoint
57app.post("/api/analyze", async c => {
58 try {
59 const request: AnalysisRequest = await c.req.json();
90
91// Excel export endpoints
92app.post("/api/export/full", async c => {
93 try {
94 const { targetWeek } = await c.req.json();
122});
123
124app.post("/api/export/iddaa", async c => {
125 try {
126 const { targetWeek } = await c.req.json();
154});
155
156app.post("/api/export/poisson", async c => {
157 try {
158 const { targetWeek } = await c.req.json();
186});
187
188app.post("/api/export/accuracy", async c => {
189 try {
190 if (!globalAnalysisData) {

fotmobREADME.md1 match

@cemugur70โ€ขUpdated 3 days ago
18โ”‚ โ”œโ”€โ”€ index.ts # Main HTTP server
19โ”‚ โ””โ”€โ”€ routes/
20โ”‚ โ””โ”€โ”€ analysis.ts # Analysis API endpoints
21โ”œโ”€โ”€ frontend/
22โ”‚ โ”œโ”€โ”€ index.html # Main application interface

LiveStormMCPREADME.md10 matches

@supagroovaโ€ขUpdated 3 days ago
1# Livestorm API MCP Server
2
3This project creates a Model Context Protocol (MCP) server that wraps the
4Livestorm API, exposing:
5
6- GET endpoints as Resources
9## How it works
10
111. The server fetches and parses the Livestorm API's OpenAPI definition
122. It dynamically creates MCP Resources and Tools based on the API endpoints
133. When a client requests a Resource or Tool, the server proxies the request to
14 the Livestorm API
15
16## MCP Definition
24{
25 "mcpServers": {
26 "livestorm-api": {
27 "type": "streamable-http",
28 "url": "https://supagroova--7fab7ae4322911f080e9569c3dd06744.web.val.run/mcp",
38{
39 "mcpServers": {
40 "livestorm-api": {
41 "type": "sse",
42 "serverUrl": "https://supagroova--7fab7ae4322911f080e9569c3dd06744.web.val.run/sse"
49
50- `index.ts`: Main entry point with HTTP trigger
51- `livestorm.ts`: Functions to fetch and parse the OpenAPI definition
52- `mcp.ts`: MCP server setup and configuration
53
67RUN_LOCAL=1
68PORT=8787
69LIVESTORM_API_TOKEN=your-livestorm-api-token-here
70```
71
72This is useful for API tokens and local configuration.
73
74You can run this MCP server locally using the [Deno](https://deno.land/)

Galacta1 file match

@defunktโ€ขUpdated 11 mins ago
Marvel Rivals GPT via tracker.gg API

github-api1 file match

@cricks_unmixed4uโ€ขUpdated 22 hours ago
snartapi
apiry