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=function&page=559&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=function

Returns an array of strings in format "username" or "username/projectName"

Found 19769 results for "function"(1899ms)

newTestProjExampletest_http.tsx1 match

@wolf•Updated 4 weeks ago
1// deno-lint-ignore require-await
2export default async function handler(req: Request) {
3 console.log(req + "updated!!");
4 return new Response("Hello world!!!!!");
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

testeeeeenaturalEmeraldEel1 match

@charmaine•Updated 4 weeks ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://charmaine--3a55deac1b0511f0a9a9569c3dd06744.web.val.run"), {

testeeeeebraveAmberAlbatross1 match

@charmaine•Updated 4 weeks ago
1export default async function (interval: Interval) {
2
3}

finaltestnaturalEmeraldEel1 match

@charmaine•Updated 4 weeks ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

finaltestbraveAmberAlbatross1 match

@charmaine•Updated 4 weeks ago
1export default async function (interval: Interval) {
2
3}
23}
24
25export function ConversionForm({
26 apiKey,
27 valUrls,

groqAudioChatmain.tsx1 match

@all•Updated 4 weeks ago
6import "jsr:@std/dotenv/load"; // needed for deno run; not req for smallweb or valtown
7
8// Function to handle audio transcription using Groq's Whisper API
9export const audioTranscriptionHandler = async (c) => {
10 console.log("🎤 Audio transcription request received");

testeeeeeresourcefulHarlequinSwordtail1 match

@charmaine•Updated 4 weeks ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://charmaine--6a241e8e1b0311f09af1569c3dd06744.web.val.run"), {

nineteenresourcefulHarlequinSwordtail1 match

@charmaine•Updated 4 weeks ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://charmaine--0af34a981b0311f0a55a569c3dd06744.web.val.run"), {

getFileEmail4 file matches

@shouser•Updated 3 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 3 weeks ago
Simple functional CSS library for Val Town
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.