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=1656&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 18140 results for "function"(2110ms)

untitled_blueHaddockmain.tsx1 match

@odnm1•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_graySheepmain.tsx1 match

@footkick72•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_coralBugmain.tsx1 match

@khushalneu•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?",

untitled_indigoPtarmiganmain.tsx2 matches

@liviacutra•Updated 1 year ago
1function fetchRandomJoke() {
2 const response = fetch(
3 "https://official-joke-api.appspot.com/random_joke",
6}
7
8async function RandomJoke() {
9 const JOKE = {
10 "setup": "What do you call a group of disorganized cats?",

untitled_aquamarineAntelopemain.tsx1 match

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

untitled_olivePinnipedmain.tsx1 match

@ibrahimast•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_purpleWhippetmain.tsx1 match

@aditya292248•Updated 1 year ago
1import { email } from "https://esm.town/v/std/email?v=9";
2
3async function fetchRandomJoke() {
4 const response = await fetch(
5 "https://official-joke-api.appspot.com/random_joke",

untitled_brownOstrichmain.tsx1 match

@divyathoppae•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_emeraldQueleamain.tsx1 match

@kolucas23•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_aquamarineChinchillamain.tsx1 match

@cindytran1•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",

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
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": "*",