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/$%7Bart_info.art.src%7D?q=function&page=1681&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 18321 results for "function"(2092ms)

untitled_apricotWalrusmain.tsx1 match

@sarahzhang•Updated 1 year ago
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",

untitled_brownTurtlemain.tsx1 match

@lbrissette•Updated 1 year ago
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",

untitled_redLampreymain.tsx1 match

@tinanii•Updated 1 year ago
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",

jokeGenmain.tsx1 match

@aahiltn•Updated 1 year ago
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",

untitled_turquoiseHornetmain.tsx1 match

@weinsteinalex•Updated 1 year ago
2
3// Fetches a random joke.
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",

Jokegeneratormain.tsx1 match

@sagashrimproll•Updated 1 year ago
3// Fetches a random joke.
4// Fetches a random joke.
5async function fetchRandomJoke() {
6 const response = await fetch(
7 "https://official-joke-api.appspot.com/random_joke",

refreshVerificationTokenmain.tsx1 match

@petermillspaugh•Updated 1 year ago
6}
7
8export async function refreshVerificationToken({ email, token }: RefreshVerificationTokenParams) {
9 const newToken = crypto.randomUUID();
10

untitled_silverMeerkatmain.tsx1 match

@alexpark0•Updated 1 year ago
2
3// Fetches a random joke.
4function fetchRandomJoke() {
5 const SAMPLE_JOKE = {
6 "setup": "What do you call a group of disorganized cats?",

webscrapeBareBonesTikimain.tsx1 match

@hurricanenate•Updated 1 year ago
3import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
4
5function isHTMLElement(node: Node): node is HTMLElement {
6 return node.nodeType === Node.ELEMENT_NODE;
7}

upsertEmailSubscribermain.tsx1 match

@petermillspaugh•Updated 1 year ago
7}
8
9export async function upsertEmailSubscriber({ name, email, token }) {
10 return sqlite.execute({
11 sql: `

getFileEmail4 file matches

@shouser•Updated 1 week 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
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.