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/image-url.jpg%20%22Image%20title%22?q=function&page=2449&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 25447 results for "function"(1573ms)

incrementmain.tsx1 match

@devdoshi•Updated 1 year ago
1let { count } = await import("https://esm.town/v/devdoshi/count");
2
3export function increment() {
4 count += 1;
5 return count;

myApimain.tsx1 match

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

rulemain.tsx1 match

@cescyang•Updated 1 year ago
1export function rule(response) {
2 const requiredApps = [
3 "55a54008ad1ba589aa210d2629c1df41",

checkPollingStatusmain.tsx1 match

@cescyang•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export async function checkPollingStatus() {
4 const { default: axios } = await import("npm:axios");
5 const tasUrl =

testFetchmain.tsx1 match

@ImGqb•Updated 1 year ago
1export function testFetch(params: any) {
2 return params;
3}

parseFigmaURLmain.tsx1 match

@rodrigotello•Updated 1 year ago
1export function parseFigmaURL(url) {
2 const regex = /^https:\/\/www.figma.com\/file\/([^/]+)\/([^/?]+)(\?[^/#]+)?/;
3 const match = url.match(regex);

welcomeEmailmain.tsx1 match

@rodrigotello•Updated 1 year ago
9 <h3>What is a val?</h3>
10 <p>A val is small JavaScript or TypeScript snippet of code, written in the browser and run in our servers.
11Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.<p>
12 </li>
13

peelSessionArtistSessionsmain.tsx1 match

@aeaton•Updated 1 year ago
1import { fetchHtmlDom } from "https://esm.town/v/aeaton/fetchHtmlDom";
2
3export async function peelSessionArtistSessions(url) {
4 const dom = await fetchHtmlDom(url);
5 const list = dom.querySelector(".link-list");

myApimain.tsx1 match

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

runnermain.tsx1 match

@ant•Updated 1 year ago
1export function runner(req, resp) {
2 console.log(req);
3 console.log(resp);

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month 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.