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/$%7Bsuccess?q=function&page=2448&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 28331 results for "function"(2027ms)

sharedMagentaChameleonmain.tsx2 matches

@jeffreyyoung•Updated 9 months ago
30});
31
32function formUI() {
33 return `<!DOCTYPE html>
34<html lang="en">
88 </div>
89 <script>
90 function submitForm() {
91 const description = document.getElementById('description').value;
92 const exclude = document.getElementById('exclude').value;

dataUriGenAppmain.tsx5 matches

@g•Updated 9 months ago
13import { Hono } from 'npm:hono';
14
15function html() {
16 /*
17<!DOCTYPE html>
41}
42
43function css() {
44 /*
45body {
128}
129
130function js() {
131 /*
132const dropZone = document.getElementById('drop-zone');
136const copyBtn = document.getElementById('copy-btn');
137
138function handleFile(file) {
139 const reader = new FileReader();
140 reader.onload = function(e) {
141 const dataUri = e.target.result;
142 output.value = dataUri;

dailyDadJokemain.tsx1 match

@hobbs•Updated 9 months ago
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4export async function dailyDadJoke() {
5 let { setup, punchline } = await fetchJSON("https://official-joke-api.appspot.com/random_joke");
6 return email({

addmain.tsx1 match

@pomdtr•Updated 9 months ago
1export function add(a: number, c: number) {
2 return a + c;
3}

todepondLabLoginDeleteAccountmain.tsx1 match

@netux•Updated 9 months ago
2import { sqlite } from "https://esm.town/v/std/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 const TABLE_NAME = "todepond_lab_login_users_with_times";
6 const body = await req.json();

todepondLabLoginGetUsersmain.tsx1 match

@netux•Updated 9 months ago
2import { sqlite } from "https://esm.town/v/std/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 const TABLE_NAME = "todepond_lab_login_users_with_times";
6

todepondLabLoginUpdateStatusmain.tsx1 match

@netux•Updated 9 months ago
3import { sqlite } from "https://esm.town/v/std/sqlite";
4
5export default async function(req: Request): Promise<Response> {
6 const TABLE_NAME = "todepond_lab_login_users_with_times";
7 const body = await req.json();

todepondLabLoginBanUsermain.tsx1 match

@netux•Updated 9 months ago
2import { sqlite } from "https://esm.town/v/std/sqlite";
3
4export default async function(req: Request): Promise<Response> {
5 const TABLE_NAME = "todepond_lab_login_users_with_times";
6 const body = await req.json();

todepondLabLoginmain.tsx1 match

@netux•Updated 9 months ago
3import { sqlite } from "https://esm.town/v/std/sqlite";
4
5export default async function(req: Request): Promise<Response> {
6 const body = await req.json();
7 let { username, password } = body;

placeholderKittenImagesmain.tsx2 matches

@shawnbasquiat•Updated 9 months ago
2// It supports generating square images with a single dimension parameter or rectangular images with two dimension parameters.
3
4export default async function server(request: Request): Promise<Response> {
5 const url = new URL(request.url);
6 const parts = url.pathname.split('/').filter(Boolean);
95 <p>Start generating your own kitten images by using the form above or modifying the URL!</p>
96 <script>
97 document.getElementById('kittenForm').addEventListener('submit', function(e) {
98 e.preventDefault();
99 const width = document.getElementById('width').value;

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.