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=1223&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 17277 results for "function"(1960ms)

snugPinkHummingbirdmain.tsx1 match

@g•Updated 5 months ago
1import { imageToAnsi } from 'https://esm.town/v/g/imageToAnsi';
2
3export default async function(req: Request): Promise<Response> {
4 const url = new URL(req.url);
5

us_election_color_schememain.tsx3 matches

@metart43•Updated 5 months ago
13
14// Define the Card component with the gray subtitle
15function ColorCard({ name, blue, red }) {
16 return (
17 <article
66
67// Define the main component to display all cards in a responsive grid layout
68function ColorCards() {
69 return (
70 <main
127}
128
129// Server-side rendering function with DOCTYPE, viewport meta tag, and rendered HTML
130export const reactExample = (request: Request) =>
131 new Response(

val_f878KIN01Kmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_f878KIN01K(req) {
3 try {
4 // Execute the code directly and capture its result
43};
44
45// Test the combined function with updated logic
46const testStrings = [
47 '()abacdfgdcaba()',

val_jn71Wf8hn2main.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_jn71Wf8hn2(req) {
3 try {
4 // Execute the code directly and capture its result
43};
44
45// Test the combined function
46const testStrings = [
47 '()abacdfgdcaba()',

val_vzWqpVMPzRmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_vzWqpVMPzR(req) {
3 try {
4 // Execute the code directly and capture its result
12};
13
14// Test the combined function
15const testStrings = [
16 '()abacdfgdcaba()',

val_iWH7hGnj6Jmain.tsx2 matches

@dhvanil•Updated 5 months ago
1
2 export async function val_iWH7hGnj6J(req) {
3 try {
4 // Execute the code directly and capture its result
22};
23
24// Test the palindromic function
25const testString = "abacdfgdcaba";
26const palindromicResults = findPalindromicSubstrings(testString);

val_7kR931x6hUmain.tsx1 match

@dhvanil•Updated 5 months ago
1
2 export async function val_7kR931x6hU(req) {
3 try {
4 // Execute the code directly and capture its result

val_n8RHhxGCyMmain.tsx1 match

@dhvanil•Updated 5 months ago
1
2 export async function val_n8RHhxGCyM(req) {
3 try {
4 // Execute the code directly and capture its result

val_qTMN8anzhZmain.tsx1 match

@dhvanil•Updated 5 months ago
1
2 export async function val_qTMN8anzhZ(req) {
3 try {
4 // Execute the code directly and capture its result

val_WYIvLkEalHmain.tsx1 match

@dhvanil•Updated 5 months ago
1
2 export async function val_WYIvLkEalH(req) {
3 try {
4 // Execute the code directly and capture its result

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 week ago
Simple functional CSS library for Val Town
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.
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": "*",