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=1618&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 19294 results for "function"(1982ms)

spotifymain.tsx1 match

@huntyUpdated 10 months ago
125});
126
127async function getToken(c) {
128 const state = c.req.query("state") as string;
129 const authData = await db.select().from(table).where(eq(table.id, state)).limit(1);

cronPoemForSammain.tsx1 match

@iamseeleyUpdated 10 months ago
2
3// 🦹‍♂️
4export default async function (interval: Interval) {
5 await sendDailyPoem();
6}

dailyPoemForSammain.tsx2 matches

@iamseeleyUpdated 10 months ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3async function getRandomPoem() {
4 const response = await fetch("https://poetrydb.org/random");
5 const [poem] = await response.json();
7}
8
9export async function sendDailyPoem() {
10 try {
11 const poem = await getRandomPoem();

linkInBioTemplatemain.tsx1 match

@mewtruUpdated 10 months ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

twitterAlertmain.tsx1 match

@jamiedubsUpdated 10 months ago
7const query = `"glif.app" OR "glifapp" OR "glif app" OR "@heyglif" -is:retweet`;
8
9export async function twitterAlert({ lastRunAt }: Interval) {
10 const results = await twitterSearch({
11 query,

twitterSearchmain.tsx1 match

@stevekrouseUpdated 10 months ago
3import { twitterUser } from "https://esm.town/v/stevekrouse/twitterUser";
4
5export async function twitterSearch({
6 query,
7 start_time,

twitterSearchmain.tsx1 match

@jamiedubsUpdated 10 months ago
3import { twitterUser } from "https://esm.town/v/stevekrouse/twitterUser";
4
5export async function twitterSearch({
6 query,
7 start_time,

private_modelmain.tsx1 match

@turbo1912Updated 10 months ago
4import { renderToString } from "npm:react-dom/server";
5
6export default async function(interval: Interval) {
7 const result = await fal.subscribe("turbo1912/multiple-models/sd", {
8 input: {

easyAQImain.tsx1 match

@rishabhparikhUpdated 10 months ago
7const cacheKey = location => "easyAQI_locationID_cache_" + encodeURIComponent(location);
8
9export async function easyAQI({ location }: {
10 location: string;
11}) {

urlMetadatamain.tsx1 match

@yawnxyzUpdated 10 months ago
1import urlMetadata from 'npm:url-metadata';
2
3export async function getUrlMetadata(url) {
4 try {
5 const metadata = await urlMetadata(url);

getFileEmail4 file matches

@shouserUpdated 2 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblkUpdated 3 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.