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?q=function&page=7&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 28013 results for "function"(1073ms)

templateTwitterAlertREADME.md2 matches

@Roset12•Updated 36 mins ago
46- Key: `mentionsDiscord`
47- Value: Your Discord webhook URL.
48Notifications will be sent using this function:
49
50```ts
63
64- **Proxies via Val Town's [SocialDataProxy](https://www.val.town/v/stevekrouse/socialDataProxy)**: Limited to 10 cents per day for [**Val Town Pro users**](https://www.val.town/pricing). This API is *only* for Pro users.
65- **Need more calls?** Sign up for your own [SocialData API token](https://socialdata.tools) and configure the [`socialDataSearch`](https://www.val.town/v/stevekrouse/socialDataSearch) function.

templateTwitterAlertmain.tsx1 match

@Roset12•Updated 36 mins ago
12const isProd = false;
13
14export async function twitterAlert({ lastRunAt }: Interval) {
15 // If isProd, search for tweets since that last time this interval ran
16 // if not, search for tweets since 48 hours ago for testing

Aiobianwu2001main.tsx1 match

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

linkInBioTemplatemain.tsx1 match

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

IPLT20App.tsx1 match

@Itssongoku•Updated 42 mins ago
7import { CardData, CardType, BulkGenerationResult } from "../../shared/utils.ts";
8
9export default function App() {
10 const [cardData, setCardData] = useState<CardData | null>(null);
11 const [bulkResults, setBulkResults] = useState<BulkGenerationResult | null>(null);

IPLT20index.ts4 matches

@Itssongoku•Updated 42 mins ago
42 }
43
44 // Import validation function
45 const { validateCardNumber } = await import("../shared/utils.ts");
46 const isValid = validateCardNumber(cardNumber);
64 }
65
66 // Import generation functions
67 const {
68 generateCardData,
167 }
168
169 // Import validation function
170 const { validateBulkFormat, getFormatExamples } = await import("../shared/utils.ts");
171
191 }
192
193 // Import validation function
194 const { validateBin, detectCardType } = await import("../shared/utils.ts");
195

IPLT20BinLookup.tsx1 match

@Itssongoku•Updated 43 mins ago
26}
27
28export default function BinLookup({ onBinInfo }: BinLookupProps) {
29 const [bin, setBin] = useState("");
30 const [binInfo, setBinInfo] = useState<BinInfo | null>(null);

untitled-1775new-file-2837.tsx1 match

@charmaine•Updated 45 mins ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

untitled-1775new-file-5044.tsx1 match

@charmaine•Updated 46 mins ago
1export default async function (interval: Interval) {
2
3}

untitled-1775new-file-2004.tsx1 match

@charmaine•Updated 46 mins ago
1export default async function (req: Request): Promise<Response> {
2 return Response.json({ ok: true })
3}

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.