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/$%7Burl%7D?q=function&page=2392&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 28936 results for "function"(1771ms)

shirtGenmain.tsx4 matches

@torlanco•Updated 6 months ago
10}
11
12function ImageGenerator() {
13 const [promptSuffix, setPromptSuffix] = useState("");
14 const [generation, setGeneration] = useState<PendingGeneration | null>(null);
81}
82
83function App() {
84 return <ImageGenerator />;
85}
86
87function client() {
88 createRoot(document.getElementById("root")).render(<App />);
89}
90if (typeof document !== "undefined") { client(); }
91
92export default async function server(request: Request): Promise<Response> {
93 return new Response(
94 `

val_RSHJYbdIPnmain.tsx1 match

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

val_5PE61NGtHNmain.tsx1 match

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

val_rP0fdOu8JKmain.tsx1 match

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

val_cVoOy5yJOHmain.tsx1 match

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

val_0gHzAuvnHymain.tsx1 match

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

val_xrAXPiDVNVmain.tsx1 match

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

val_NpOa7nyg47main.tsx1 match

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

web_5sTKT1xhCsmain.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_5sTKT1xhCs(req) {
3 return new Response(`<!DOCTYPE html>
4<html>

web_wipah38Po7main.tsx1 match

@dhvanil•Updated 6 months ago
1
2 export async function web_wipah38Po7(req) {
3 return new Response(`<!DOCTYPE html>
4<html>
tuna

tuna9 file matches

@jxnblk•Updated 16 hours 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.