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/$%7BsvgDataUrl%7D?q=function&page=6&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 30462 results for "function"(3093ms)

cardamonRecipeView.tsx1 match

@connnolly•Updated 11 hours ago
10}
11
12export default function RecipeView({ recipe, onEdit, onDelete, onBack }: RecipeViewProps) {
13 const [servingMultiplier, setServingMultiplier] = useState(1);
14 const [deleteConfirm, setDeleteConfirm] = useState(false);

cardamonRecipeList.tsx1 match

@connnolly•Updated 11 hours ago
11}
12
13export default function RecipeList({
14 recipes,
15 onRecipeSelect,

cardamonApp.tsx1 match

@connnolly•Updated 11 hours ago
16}
17
18export default function App() {
19 const [state, setState] = useState<AppState>({
20 view: 'list',

cardamonmigrations.ts1 match

@connnolly•Updated 11 hours ago
4const INGREDIENTS_TABLE = 'ingredients_v1';
5
6export async function runMigrations() {
7 console.log('Running database migrations...');
8

zerto-lifecycle-matrixmain.tsx1 match

@captn3m0•Updated 11 hours ago
1export default async function (req: Request): Promise<Response> {
2 try {
3 const response = await fetch("https://help-be.zerto.com/api/bundle/Lifecycle.Matrix.HTML/page/product_version_lifecycle_matrix_for_zerto.html");

Loudaily_lineup_scheduler.tsx3 matches

@jeffvincent•Updated 12 hours ago
1// Lou Fantasy Baseball Daily Lineup Scheduler
2// Val.town Cron Function for Daily Pitcher Optimization
3
4import { LouTokenStorage, StoredTokens } from "./token_storage.tsx";
784}
785
786// Val.town Cron Handler - This function will be called by Val.town's cron scheduler
787export default async function(): Promise<Response> {
788 console.log("🕒 Daily lineup scheduler cron job triggered");
789

forward-emails-to-ntfyrailway.ts1 match

@faekiva•Updated 13 hours ago
1import { ntfy } from "https://esm.town/v/xkonti/ntfy@v32";
2
3export async function emailValHandler(email: Email) {
4 ntfy
5 .console.log("Email received!", email.from, email.subject, email.text);

invest-trackerstyle_static.tsx1 match

@samxii777•Updated 13 hours ago
118
119/* ---------- HTTP response ---------- */
120export default function() {
121 return new Response(css, {
122 headers: { "content-type": "text/css; charset=utf-8" },

invest-trackerticker_http.tsx3 matches

@samxii777•Updated 13 hours ago
29
30/* ---------- HTTP handler ---------- */
31export default async function(req: Request) {
32 /* 1 â–¸ headlines (6 total) */
33 const m = (await blob.getJSON<{ data: any[] }>("macro_news"))?.data ?? [];
75
76/* ---------- layout helpers ---------- */
77function buildPanel(ids: string[], data: any) {
78 const groups = { crypto: [], stocks: [], forex: [] } as Record<string, string[]>;
79 ids.forEach(id => groups[typeOf(id)].push(id));
86}
87
88function renderRows(ids: string[], data: any, size: "big" | "tiny" = "big") {
89 return ids.map(id => {
90 const d = data[id.toLowerCase()] ?? {};

invest-trackercrypto_news_cron.tsx2 matches

@samxii777•Updated 13 hours ago
6const COINS = ["bitcoin", "ethereum", "solana", "btc", "eth", "sol"];
7
8export default async function run() {
9 /* 1 â–¸ fetch 10 freshest business headlines that mention our coins */
10 const q = encodeURIComponent(COINS.slice(0, 3).join(" OR "));
36
37/* ---------------------------------------------------------------- */
38function score(txt: string) {
39 const up = /(surge|soar|record|rally|pump|bull|upgrade|buy|rise)/i;
40 const down = /(crash|dip|plunge|sell|bear|ban|lawsuit|hack|exploit)/i;
tuna

tuna9 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
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.