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=49&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 31502 results for "function"(1959ms)

Glancerform.tsx2 matches

@lightweightUpdated 3 days ago
2import { useState } from "https://esm.sh/react@18.2.0";
3
4export function FormContent({ data, content }) {
5 // const { content, contentURL, docsURL } = config;
6 // console.log("content: ", content);
29 <h2>Cobrowse & mask fields on forms</h2>
30 <p>
31 Glance cobrowse provides a “hook” function to allow customers to
32 customize page and element masking during a cobrowse session.
33 </p>

Glancerchess.tsx1 match

@lightweightUpdated 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

@lightweightUpdated 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

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

FarcasterSpacesindex.tsx1 match

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

http-demo-2main.tsx1 match

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

HTTP-DEMOmain.tsx1 match

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

Glancer_TesttoggleHelp.ts1 match

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

Glancer_TesttoggleContent.ts1 match

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

Glancer_Testtest.tsx1 match

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

tuna9 file matches

@jxnblkUpdated 2 weeks ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouserUpdated 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.