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/?q=api&page=32&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 4572 results for "api"(284ms)

dbToAPI_backupserver.tsx2 matches

@nbbaier•Updated 6 days ago
1/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
2
3import { Homepage } from "https://esm.town/v/nbbaier/dbToAPI_backup/frontend.tsx";
4import {
5 checkResource,
7 type Options,
8 validate,
9} from "https://esm.town/v/nbbaier/dbToAPI_backup/helpers.tsx";
10import { Hono } from "npm:hono";
11

dbToAPI_backupfrontend.tsx2 matches

@nbbaier•Updated 6 days ago
1// https://www.val.town/v/nbbaier/dbToAPIFrontend
2
3/** @jsxImportSource https://esm.sh/hono@3.9.2/jsx **/
25
26 <div class="space-y-2">
27 <p>You've set up an API for your Val Town lowdb instance</p>
28 <p>
29 ✧*。٩(ˊᗜˋ*)و✧*。

FarcasterMiniAppStoreHome.tsx2 matches

@moe•Updated 6 days ago
38function MiniApps() {
39 const { data: miniapps } = useQuery(["miniapps"], async () => {
40 // return await fetch(`/api/miniapps`).then(r => r.json()).then(r => r);
41 // return await fetchNeynarGet(`frame/catalog?limit=100`).then(r => r.frames);
42 return await fetchNeynarGetPages(`frame/catalog?limit=100`, 4, "frames").then(r => r.frames);
98 onChange={e => setSearch(e.target.value)}
99 placeholder="Search..."
100 autoCapitalize="on"
101 autoCorrect="on"
102 type="text"

perplexityAPImain.tsx4 matches

@nbbaier•Updated 6 days ago
1import { PplxRequest, PplxResponse } from "https://esm.town/v/nbbaier/perplexityAPI/pplxTypes.ts";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export const pplx = async (options: PplxRequest & { apiKey?: string }): Promise<PplxResponse> => {
5 const token = options.apiKey ? options.apiKey : Deno.env.get("PERPLEXITY_API_KEY");
6 return await fetchJSON("https://api.perplexity.ai/chat/completions", {
7 method: "POST",
8 headers: {
the-juice

the-juicetragic-indigo-gopher1 match

@jxnblk•Updated 6 days ago
94 <head>
95 <meta charset="UTF-8">
96 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
97 <meta name="viewport" content="width=device-width, initial-scale=1.0">
98 <title>Hello World Val</title>
the-juice

the-juiceresponsible-aqua-orca1 match

@jxnblk•Updated 6 days ago
10 <meta name="viewport" content="width=device-width, initial-scale=1.0">
11 <title>Hello, World!</title>
12 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
13 <style>
14 body {
the-juice

the-juicejuicy-number-20491 match

@jxnblk•Updated 6 days ago
29 <head>
30 <title>Hello, Juicy!</title>
31 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
32 <style>
33 body {
the-juice

the-juiceholy-black-bedbug1 match

@jxnblk•Updated 6 days ago
124 <head>
125 <title>Hello World</title>
126 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet" />
127 <style>{css}</style>
128 </head>
the-juice

the-juicehola-juice1 match

@jxnblk•Updated 6 days ago
94 }
95 </style>
96 <link href="https://fonts.googleapis.com/css2?family=Bangers&display=swap" rel="stylesheet">
97 </head>
98 <body>
the-juice

the-juicedecisive-beige-prawn1 match

@jxnblk•Updated 6 days ago
33 <meta name="viewport" content="width=device-width, initial-scale=1.0">
34 <title>Bubbly Hello World Val</title>
35 <link href="https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap" rel="stylesheet">
36 <style>${css}</style>
37 </head>

PassphraseAPI2 file matches

@wolf•Updated 1 day ago

openapi2 file matches

@stevekrouse•Updated 4 days ago
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com
fiberplane
Purveyors of Hono tooling, API Playground enthusiasts, and creators of 🪿 HONC 🪿 (https://honc.dev)