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/$%7Bsuccess?q=function&page=1756&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 18978 results for "function"(1315ms)

untitled_azureLeopardmain.tsx3 matches

@julesguarrera•Updated 1 year ago
1export async function untitled_azureLeopard(request: Request): Promise<Response> {
2 return Response.json({ ok: true });
3}
4// Fetches a random joke.
5
6async function emailRandomJoke() {
7 async function fetchRandomJoke() {
8 const response = await fetch(
9 "<https://official-joke-api.appspot.com/random_joke>",

emailRandomJokemain.tsx2 matches

@lukasgrat•Updated 1 year ago
1export async function emailRandomJoke() {
2 async function fetchRandomJoke() {
3 const response = await fetch(
4 "<https://official-joke-api.appspot.com/random_joke>",

untitled_blushLobstermain.tsx3 matches

@aravgoyalneu•Updated 1 year ago
1export async function untitled_blushLobster(email: Email) {
2 async function emailRandomJoke() {
3 async function fetchRandomJoke() {
4 const response = await fetch(
5 "<https://official-joke-api.appspot.com/random_joke>",

untitled_harlequinDingomain.tsx2 matches

@juwang110•Updated 1 year ago
1async function emailRandomJoke() {
2 async function fetchRandomJoke() {
3 const response = await fetch(
4 "<https://official-joke-api.appspot.com/random_joke>",

nicoFunctionScriptmain.tsx1 match

@stevekrouse•Updated 1 year ago
4const a = (x) => x + 1;
5const b = (y) => a(y);
6export const nicoFunctionScript = [a(5), b(5)];

nicoFunctionScriptREADME.md1 match

@stevekrouse•Updated 1 year ago
1Migrated from folder: Archive/nicoFunctionScript

getComments2main.tsx1 match

@vez•Updated 1 year ago
1import { commentsDB2 } from "https://esm.town/v/vez/commentsDB2";
2
3export function getComments2() {
4 return commentsDB2;
5}

addComment2main.tsx1 match

@vez•Updated 1 year ago
3import { commentsDB2 } from "https://esm.town/v/vez/commentsDB2";
4
5export async function addComment2(str) {
6 commentsDB2.push(str);
7 await set("commentsDB2", commentsDB2);

zaobaomain.tsx1 match

@baj•Updated 1 year ago
1import process from "node:process";
2
3export async function zaobao() {
4 const res = await fetch(
5 `https://chrome.browserless.io/content?token=${process.env.browserlessKey}`,

webHTMLExamplemain.tsx1 match

@maxjoygit•Updated 1 year ago
1// View at https://neverstew-webHTMLExample.web.val.run?name=Steve
2export async function webHTMLExample(req: Request) {
3 const query = new URL(req.url).searchParams;
4 return new Response(

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 2 weeks ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",