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=44&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 31449 results for "function"(11152ms)

FarcasterSpacesindex.tsx1 match

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

http-demo-2main.tsx1 match

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

HTTP-DEMOmain.tsx1 match

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

Glancer_TesttoggleHelp.ts1 match

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

Glancer_TesttoggleContent.ts1 match

@charmaine•Updated 2 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 2 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 2 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;

Glancer_TestsetPageID.ts1 match

@charmaine•Updated 2 days ago
6});
7
8export async function setPageID(data: any) {
9 try {
10 const page = await notion.pages.update({

Glancer_TestsetPageIcon.ts1 match

@charmaine•Updated 2 days ago
6});
7
8export async function setPageIcon(id: string, iconURL: string) {
9 try {
10 const page = await notion.pages.update({

Glancer_TestsetDemoURL.ts1 match

@charmaine•Updated 2 days ago
6});
7
8export async function setDemoURL(id: string, url: string) {
9 try {
10 const page = await notion.pages.update({
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.