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/$%7Bart_info.art.src%7D?q=function&page=1607&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 19349 results for "function"(3337ms)

3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const url = new URL(req.url);
7 const pathname = url.pathname;
65}
66
67function renderStoryPage(storyId: string): string {
68 const stories = {
69 "1": {
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const url = new URL(req.url);
7 const pathname = url.pathname;
65}
66
67function renderStoryPage(storyId: string): string {
68 const stories = {
69 "1": {
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const url = new URL(req.url);
7 const pathname = url.pathname;
65}
66
67function renderStoryPage(storyId: string): string {
68 const stories = {
69 "1": {
2// It uses plain HTML and CSS to create the frontend. Links to stories will take you to pages with fake content.
3
4export default async function(req: Request): Promise<Response> {
5 const url = new URL(req.url);
6
19}
20
21function serveHomePage(): Response {
22 const htmlContent = `
23<!DOCTYPE html>
67}
68
69function serveStoryPage(title: string, content: string): Response {
70 const htmlContent = `
71<!DOCTYPE html>
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const url = new URL(req.url);
7 const pathname = url.pathname;
20}
21
22function serveHomePage(): Response {
23 const htmlContent = `
24<!DOCTYPE html>
68}
69
70function serveStoryPage(title: string, content: string): Response {
71 const htmlContent = `
72<!DOCTYPE html>
2// It now has clickable titles that will serve pages with some fake story content.
3
4export default async function(req: Request): Promise<Response> {
5 const url = new URL(req.url);
6 const path = url.pathname;
2// Titles are clickable and lead to a page with fake story content.
3
4export default async function(req: Request): Promise<Response> {
5 const url = new URL(req.url);
6 const pathname = url.pathname;
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const htmlContent = `
7<!DOCTYPE html>
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const htmlContent = `
7<!DOCTYPE html>
3// we can make it interactive with additional scripts.
4
5export default async function(req: Request): Promise<Response> {
6 const htmlContent = `
7<!DOCTYPE html>

getFileEmail4 file matches

@shouser•Updated 3 weeks ago
A helper function to build a file's email
tuna

tuna8 file matches

@jxnblk•Updated 3 weeks ago
Simple functional CSS library for Val Town
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.