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=51&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 31513 results for "function"(1702ms)

Glancerchess.tsx1 match

@lightweight•Updated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function ChessEmbedIframe({ config }) {
4 const { content, contentURL, docsURL } = config;
5 return (

Glancercheckout.tsx1 match

@lightweight•Updated 3 days ago
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function CheckoutContent({ data, content }) {
5 // const { content, contentURL, docsURL } = config;
6 // console.log("content: ", content);

untitled-5213main.tsx1 match

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

FarcasterSpacesindex.tsx1 match

@moe•Updated 3 days ago
45})
46
47function generateHtml(baseUrl: string, path: string = '/') {
48 return (
49 <html>

http-demo-2main.tsx1 match

@wolf•Updated 3 days ago
1export default async function(req: Request): Promise<Response> {
2 return new Response("Hello world!");
3}

HTTP-DEMOmain.tsx1 match

@wolf•Updated 3 days ago
1export default async function(req: Request): Promise<Response> {
2 return new Response("Hello world!");
3}

Glancer_TesttoggleHelp.ts1 match

@charmaine•Updated 3 days ago
1export async function toggleHelp() {
2 console.log("toggleHelp");
3 // var helpContent = document.getElementById("helpContent");

Glancer_TesttoggleContent.ts1 match

@charmaine•Updated 3 days ago
1export async function toggleContent(action: string) {
2 // handle show/hide embeds
3 const embeds = document.getElementsByClassName("embed");

Glancer_Testtest.tsx1 match

@charmaine•Updated 3 days ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2
3export function Test() {
4 console.log("test");
5 return (

Glancer_TeststartSession.ts3 matches

@charmaine•Updated 3 days ago
1export async function startSession() {
2 GLANCE.Cobrowse.Visitor.startSession("GLANCE_KEYTYPE_RANDOM");
3}
4// If you forget to add functions called by events
5// to the global scope (e.g., `onclick="startSession();"`),
6// then those functions won't be in the global scope,
7// and the onclick will fail with Uncaught ReferenceError.
8window.startSession = startSession;
tuna

tuna9 file matches

@jxnblk•Updated 2 weeks 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.