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=14&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 30525 results for "function"(2359ms)

1import { checkLink } from "./checkLink.tsx";
2import { urlGetter } from "./urlGetter.tsx";
3async function brokenLinkCheckerMainFuction(url) {
4 const urlList = await urlGetter(url);
5 const checkedLink = await Promise.all(urlList.map(checkLink));

brokenLinkCrawlerurlGetter.tsx1 match

@willthereader•Updated 1 day ago
1export async function urlGetter(sourceURl) {
2 const response = await fetch(sourceURl);
3 const html = await response.text();

cardamonRecipeView.tsx1 match

@connnolly•Updated 1 day 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 1 day ago
11}
12
13export default function RecipeList({
14 recipes,
15 onRecipeSelect,

cardamonApp.tsx1 match

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

cardamonmigrations.ts1 match

@connnolly•Updated 1 day 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 1 day 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 1 day 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 1 day 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 1 day ago
118
119/* ---------- HTTP response ---------- */
120export default function() {
121 return new Response(css, {
122 headers: { "content-type": "text/css; charset=utf-8" },
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.