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=1936&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 27494 results for "function"(2512ms)

nobleAmberGalliformmain.tsx4 matches

@kiddie•Updated 3 months ago
60];
61
62function WeatherDashboard() {
63 // Styles remain unchanged from previous implementation
64
95 const messagesEndRef = useRef(null);
96
97 // Rest of the utility functions remain the same
98 const renderWeatherIcon = (temperature) => {
99 if (temperature > 30) return "🔥";
276}
277
278function client() {
279 createRoot(document.getElementById("root")).render(<WeatherDashboard />);
280}
281if (typeof document !== "undefined") { client(); }
282
283export default async function server(request: Request): Promise<Response> {
284 return new Response(`
285 <html>

truthfulTealTyrannosaurusmain.tsx1 match

@hudini•Updated 3 months ago
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";
3
4export async function aqi(interval: Interval) {
5 const location = "new york"; // <-- change to place, city, or zip code
6 const data = await easyAQI({ location });

aqimain.tsx1 match

@hudini•Updated 3 months ago
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";
3
4export async function aqi(interval: Interval) {
5 const location = "downtown brooklyn"; // <-- change to place, city, or zip code
6 const data = await easyAQI({ location });

miraculousYellowCaterpillarmain.tsx4 matches

@barakaa•Updated 3 months ago
4import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
5
6function SocialLinks() {
7 const [hoveredLink, setHoveredLink] = useState(null);
8
42}
43
44function App() {
45 return (
46 <div
76}
77
78function client() {
79 createRoot(document.getElementById("root")).render(<App />);
80}
81if (typeof document !== "undefined") { client(); }
82
83export default async function(req: Request) {
84 return new Response(
85 renderToString(

linkInBioTemplatemain.tsx1 match

@barakaa•Updated 3 months ago
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
5 return new Response(
6 renderToString(

knowtheweathermain.tsx4 matches

@faarahsaed•Updated 3 months ago
3import React, { useEffect, useState } from "https://esm.sh/react@18.2.0";
4
5function WeatherDashboard() {
6 const [location, setLocation] = useState({ latitude: 40.7128, longitude: -74.0060 }); // Default to New York City
7 const [weatherData, setWeatherData] = useState(null);
9
10 useEffect(() => {
11 async function fetchWeather() {
12 try {
13 const response = await fetch(
74}
75
76function client() {
77 createRoot(document.getElementById("root")).render(<WeatherDashboard />);
78}
79if (typeof document !== "undefined") { client(); }
80
81export default async function server(request: Request): Promise<Response> {
82 return new Response(
83 `

syncBookmarksmain.tsx2 matches

@s3thi•Updated 3 months ago
8};
9
10async function getAllBookmarks() {
11 try {
12 const csvExportResponse = await fetch(
28}
29
30export default async function(interval: Interval) {
31 // First delete existing bookmarks.
32 const batchStatements = [{

MissGraceOwusu_1main.tsx4 matches

@MissGrace27•Updated 3 months ago
3import React, { useState } from "https://esm.sh/react@18.2.0";
4
5function ConsultationBookingForm() {
6 const [name, setName] = useState("");
7 const [email, setEmail] = useState("");
126}
127
128function App() {
129 return <ConsultationBookingForm />;
130}
131
132function client() {
133 createRoot(document.getElementById("root")!).render(<App />);
134}
139}
140
141export default async function server(request: Request): Promise<Response> {
142 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
143 const KEY = "MissGraceOwusu_1";

sitTrackerAppmain.tsx3 matches

@olivas20000•Updated 3 months ago
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function App() {
6 const [jobs, setJobs] = useState([]);
7 const [messages, setMessages] = useState([]);
212}
213
214function client() {
215 createRoot(document.getElementById("root")).render(<App />);
216}
217if (typeof document !== "undefined") { client(); }
218
219export default async function server(request: Request): Promise<Response> {
220 const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
221 const KEY = "sitTrackerApp";

poeticChocolateMacawmain.tsx5 matches

@blackIT•Updated 3 months ago
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5function WeatherDashboard() {
6 const [location, setLocation] = useState({ latitude: null, longitude: null });
7 const [weatherData, setWeatherData] = useState(null);
27
28 useEffect(() => {
29 async function fetchWeather() {
30 if (location.latitude && location.longitude) {
31 try {
136}
137
138function App() {
139 return <WeatherDashboard />;
140}
141
142function client() {
143 createRoot(document.getElementById("root")).render(<App />);
144}
145if (typeof document !== "undefined") { client(); }
146
147export default async function server(request: Request): Promise<Response> {
148 return new Response(`
149 <html>

getFileEmail4 file matches

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

tuna8 file matches

@jxnblk•Updated 1 month 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.