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/$%7Burl%7D?q=function&page=1774&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 18616 results for "function"(3960ms)

myApimain.tsx1 match

@mpsuesser•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

gtp3main.tsx1 match

@mgsers•Updated 1 year ago
1import { runVal } from "https://esm.town/v/std/runVal";
2
3export async function gtp3(prompt) {
4 return await runVal("patrickjm.gpt3", {
5 prompt,

gitlabWeeklySummarymain.tsx1 match

@rwev•Updated 1 year ago
2import { gitlabUserContributionEvents } from "https://esm.town/v/rwev/gitlabUserContributionEvents";
3
4export async function gitlabWeeklySummary() {
5 const R = await import("npm:ramda");
6 const userEvents = await gitlabUserContributionEvents(

runsTodaymain.tsx1 match

@neverstew•Updated 1 year ago
1import { runs as runs2 } from "https://esm.town/v/neverstew/runs";
2
3export async function runsToday() {
4 const { default: startOfDay } = await import("npm:date-fns/startOfDay");
5 const runs = runs2({

myApimain.tsx1 match

@genevra•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

myApimain.tsx1 match

@tekknolagi•Updated 1 year ago
1export function myApi(name) {
2 return "hi " + name;
3}

rimeRateLimitExceededmain.tsx1 match

@stevekrouse•Updated 1 year ago
2import { rimeUsage } from "https://esm.town/v/stevekrouse/rimeUsage";
3
4export function rimeRateLimitExceeded(text: string) {
5 rimeUsage[new Date().toLocaleDateString()] =
6 (rimeUsage[new Date().toLocaleDateString()] || 0) +

testMutateSemantics2main.tsx1 match

@stevekrouse•Updated 1 year ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function testMutateSemantics2({
5 stateName,
6 mutateExpected,

jsPythonmain.tsx2 matches

@brettsmith•Updated 1 year ago
2 const { jsPython } = await import("npm:jspython-interpreter");
3 const script = `
4def mapFunction(r, i):
5 v = r * i
6 return v
8x = [1, 2, 3, 4]
9x
10 .map(mapFunction)
11 .filter(r => r * r)
12 .join(",")

untitled_oliveSwordtailmain.tsx1 match

@hankenstein•Updated 1 year ago
1export const untitled_oliveSwordtail = (async () => {
2 var name = "hank";
3 function myApi(name) {
4 return "hi " + name;
5 }

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