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/?q=function&page=840&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 10292 results for "function"(660ms)

twitterAlertREADME.md1 match

@charmaine•Updated 3 months ago
54This val uses the SocialData API for Twitter data:
55- **Proxies via Val Town's SocialDataProxy**: Limited to 100 calls/day for [**Val Town Pro users**](https://www.val.town/pricing).
56- **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.

courteousAzureSquirrelmain.tsx1 match

@charmaine•Updated 3 months ago
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

stripeWebsocketDemotriggerUtils1 match

@wolf•Updated 3 months ago
5console.log(await valUrlToId(import.meta.url));
6
7export async function bindToHandler(handlerId: string) {
8 const thisValId = await valUrlToId(import.meta.url);
9 return;

stripeWebsocketDemostripeHandler1 match

@wolf•Updated 3 months ago
2import { valUrlToId } from "https://esm.town/v/wolf/valUrlToId?v=39";
3
4export async function bindToHandler(handlerId: string) {
5 const thisValId = await valUrlToId(import.meta.url);
6 const actions = new Set<string>(await blob.getJSON(handlerId));

stripeWebsocketDemostripeTrigger1 match

@wolf•Updated 3 months ago
9);
10
11export async function trigger(req: Request): Promise<Response> {
12 const url = new URL(req.url);
13

glowingTextmain.tsx4 matches

@Bella_s•Updated 3 months ago
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5function App() {
6 const [writings, setWritings] = useState([]);
7 const [title, setTitle] = useState("");
58
59 useEffect(() => {
60 async function fetchWritings() {
61 try {
62 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
203};
204
205function client() {
206 createRoot(document.getElementById("root")).render(<App />);
207}
208if (typeof document !== "undefined") { client(); }
209
210export default async function server(request: Request): Promise<Response> {
211 return new Response(
212 `
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

isMyWebsiteDownmain.tsx1 match

@charmaine•Updated 3 months ago
6);
7
8export async function uptimeCheck(url: string) {
9 let ok = true;
10 let reason: string;

newStripeSubscribermain.tsx1 match

@charmaine•Updated 3 months ago
11});
12
13function getStripeCustomer(customerId: string) {
14 return stripe.customers.retrieve(customerId);
15}

getFileEmail4 file matches

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

TwilioHelperFunctions

@vawogbemi•Updated 2 months ago