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=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 30402 results for "function"(1871ms)

Glancerdatabase.controller.ts1 match

@lightweightโ€ขUpdated 10 hours ago
6});
7
8export async function getDatabase(databaseId: string) {
9 // get database
10 try {

Glanceractions.controller.ts3 matches

@lightweightโ€ขUpdated 10 hours ago
6});
7
8export async function getDemoInteractions(pageId: string) {
9 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
10
39}
40
41export async function getAllInteractionsPages() {
42 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
43
69}
70
71export async function getAllInteractionsPagesWithPagination() {
72 const databaseId = Deno.env.get("GLANCE_INTERACTIONS_DB_ID");
73

Glanceragent.controller.ts1 match

@lightweightโ€ขUpdated 10 hours ago
6});
7
8export async function enrichAgent(pageId: string, data: any) {
9 // console.log(data);
10 const properties =

web_OYO8CzH9QBmain.tsx1 match

@dhvanilโ€ขUpdated 10 hours ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

web_P9tKwvVjDzmain.tsx1 match

@dhvanilโ€ขUpdated 10 hours ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

web_E9mheF2dBxmain.tsx1 match

@dhvanilโ€ขUpdated 10 hours ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

ChatMessage.tsx1 match

@c15rโ€ขUpdated 10 hours ago
26/* โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */
27
28export default function MessageComponent({ message, onDelete, onRetry, canRetry, mcpClients = [] }: MessageProps) {
29 const formatRegularContent = (content: string) => <div dangerouslySetInnerHTML={{ __html: marked(content) }}></div>;
30

web_duvEzKTNhvmain.tsx1 match

@dhvanilโ€ขUpdated 10 hours ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

test-apns-voip-notimain.tsx6 matches

@rafaelortizzablehโ€ขUpdated 10 hours ago
1import * as jose from "https://deno.land/x/jose@v4.14.4/index.ts";
2
3// --- Main function to send a VoIP push directly to APNs ---
4export default async function sendDirectVoipPush(req: Request): Promise<Response> {
5 // Get the target device's VoIP token from the request URL.
6 // Example: ?token=DEVICE_VOIP_TOKEN_HERE
85}
86
87// --- Helper function to create the JWT ---
88async function createJwt(keyId: string, teamId: string, p8key: string): Promise<string> {
89 const privateKey = await jose.importPKCS8(p8key, "ES256");
90 return await new jose.SignJWT({})
96}
97
98// --- Helper function to load and validate credentials ---
99function getAppleCredentials() {
100 const p8key = Deno.env.get("APPLE_P8_KEY");
101 const keyId = Deno.env.get("APPLE_KEY_ID");
1import * as jose from "https://deno.land/x/jose@v4.14.4/index.ts";
2
3// --- Main function to send a VoIP push directly to APNs ---
4export default async function sendDirectVoipPush(req: Request): Promise<Response> {
5 // Get the target device's VoIP token from the request URL.
6 // Example: ?token=DEVICE_VOIP_TOKEN_HERE
80}
81
82// --- Helper function to create the JWT ---
83async function createJwt(keyId: string, teamId: string, p8key: string): Promise<string> {
84 const privateKey = await jose.importPKCS8(p8key, "ES256");
85 return await new jose.SignJWT({})
91}
92
93// --- Helper function to load and validate credentials ---
94function getAppleCredentials() {
95 const p8key = Deno.env.get("APPLE_P8_KEY");
96 const keyId = Deno.env.get("APPLE_KEY_ID");
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.