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=3&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 20509 results for "api"(3381ms)

MiniAppStarterApp.tsx3 matches

@arseniyUpdated 13 hours ago
58 <div className="">✷ Farcaster mini app manifest + webhook + embed metadata</div>
59 <div className="">✷ Farcaster notifications (storing tokens, sending recurring notifications, ...)</div>
60 <div className="">✷ Neynar API integration for Farcaster data</div>
61 <div className="">✷ Hosted on Val Town (instant deployments on save)</div>
62 <div className="">
72
73function Database() {
74 const queryFn = () => fetch("/api/counter/get").then((r) => r.json());
75 const { data, refetch } = useQuery({ queryKey: ["counter"], queryFn });
76 return (
78 {/* <h2 className="font-semibold">Database Example</h2> */}
79 <div className="">Counter value: {data}</div>
80 <Button variant="outline" onClick={() => fetch("/api/counter/increment").then(refetch)}>
81 Increment
82 </Button>

FarcasterSpacesSpace.tsx2 matches

@arseniyUpdated 13 hours ago
139
140 const queryFn = () =>
141 fetch(`/api/channels`)
142 .then((r) => r.json())
143 .then((r) => r?.data?.channels?.find((c) => c.channel_name == channel))
146
147 const join = async () => {
148 const response = await fetch(`/api/token?channel=${channel}&uid=${uid}`).then((r) => r.json())
149 console.log('response', response)
150 setToken(response.token)

FarcasterSpacesneynar.ts2 matches

@arseniyUpdated 13 hours ago
1const baseUrl = "/neynar-proxy?path=";
2// const baseUrl = "https://api.neynar.com/v2/farcaster/";
3
4export async function fetchNeynarGet(path: string) {
8 "Content-Type": "application/json",
9 "x-neynar-experimental": "true",
10 "x-api-key": "NEYNAR_API_DOCS",
11 },
12 });

FarcasterSpacesneynar.ts4 matches

@arseniyUpdated 13 hours ago
1const NEYNAR_API_KEY = Deno.env.get('NEYNAR_API_KEY') || 'NEYNAR_API_DOCS'
2const headers = {
3 'Content-Type': 'application/json',
4 'x-api-key': NEYNAR_API_KEY,
5}
6
7export const fetchNeynarGet = async (path: string) => {
8 return await fetch('https://api.neynar.com/v2/farcaster/' + path, {
9 method: 'GET',
10 headers: headers,
13
14export const fetchNeynarPost = async (path: string, body: any) => {
15 return await fetch('https://api.neynar.com/v2/farcaster/' + path, {
16 method: 'POST',
17 headers: headers,

FarcasterSpacesimage.tsx3 matches

@arseniyUpdated 13 hours ago
135
136const loadEmoji = (code) => {
137 // const api = `https://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${code.toLowerCase()}.svg`
138 const api = `https://cdn.jsdelivr.net/gh/shuding/fluentui-emoji-unicode/assets/${code.toLowerCase()}_color.svg`
139 return fetch(api).then((r) => r.text())
140}
141

FarcasterSpacesHome.tsx2 matches

@arseniyUpdated 13 hours ago
39function Spaces() {
40 const queryFn = async () => {
41 const agoraChannels = await fetch(`/api/channels`)
42 .then((r) => r.json())
43 .then((r) => r?.data?.channels)
118 onChange={(e) => setName(e.target.value)}
119 placeholder="Space Title"
120 autoCapitalize="on"
121 autoCorrect="on"
122 type="text"

FarcasterSpacesagora.ts3 matches

@arseniyUpdated 13 hours ago
3
4export function handleAgoraEndpoints(app: Hono) {
5 app.get("/api/channels", async (c) => {
6 const appId = Deno.env.get("AGORA_APP_ID");
7 const response = await fetchAgora(`dev/v1/channel/${appId}/`);
9 });
10
11 app.get("/api/token", async (c) => {
12 const appId = Deno.env.get("AGORA_APP_ID");
13 const appCertificate = Deno.env.get("AGORA_APP_CERTIFICATE");
49}
50
51const baseUrl = "https://api.agora.io/";
52
53function fetchAgora(endpoint: string, options = {}) {
14 }
15
16 // Handle GET requests - return API status/documentation
17 if (req.method === "GET") {
18 return new Response(
19 JSON.stringify({
20 status: "active",
21 message: "Customer Management API",
22 endpoints: {
23 "POST /": "Submit customer data",
49 try {
50 const body = await req.json();
51 const db = await sqlite("vapi_customers");
52
53 // Extract phone number from Vapi call data
54 const phoneNumber = body.call?.customer?.number || body.phone_number;
55
3export default async function(req) {
4 try {
5 const db = await sqlite("vapi_customers");
6
7 // Get all customers, ordered by most recent first
16 <meta charset="UTF-8">
17 <meta name="viewport" content="width=device-width, initial-scale=1.0">
18 <title>Vapi Health - Customer Dashboard</title>
19 <style>
20 body {
129 <div class="container">
130 <div class="header">
131 <h1>🏥 Vapi Health Customer Dashboard</h1>
132 <p>Real-time customer call tracking and information management</p>
133 </div>
3export default async function(req) {
4 // Initialize the database and create tables
5 const db = await sqlite("vapi_customers");
6
7 // Create customers table if it doesn't exist

claude-api1 file match

@ziyanwouldUpdated 12 hours ago

api-workshop

@danarddanielsjrUpdated 1 day ago
replicate
Run AI with an API
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)