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=19&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 30512 results for "function"(2189ms)

voicemessagesmigrations.ts1 match

@arthrod•Updated 1 day ago
3const TABLE_NAME = 'voice_notes_v1';
4
5export async function runMigrations() {
6 try {
7 // Create voice notes table

voicemessagesDashboard.tsx1 match

@arthrod•Updated 1 day ago
3import type { VoiceNote } from "../../shared/types.ts";
4
5export default function Dashboard() {
6 const [voiceNotes, setVoiceNotes] = useState<VoiceNote[]>([]);
7 const [loading, setLoading] = useState(true);

voicemessagesApp.tsx1 match

@arthrod•Updated 1 day ago
11}
12
13export default function App() {
14 const [currentView, setCurrentView] = useState<"recorder" | "player" | "dashboard">("recorder");
15 const voiceNoteId = window.__VOICE_NOTE_ID__;

spider-solREADME.md2 matches

@feb•Updated 1 day ago
10- Responsive design for desktop and mobile
11- Score tracking and move counter
12- Timer functionality
13- Undo functionality
14- Hint system with visual feedback
15- Auto-complete sequence detection

mcp-starterREADME.md1 match

@mattrossman•Updated 1 day ago
31
32The MCP TypeScript SDK uses Node-specific APIs that don't play nicely with Deno
33or edge functions:
34
35- https://github.com/modelcontextprotocol/typescript-sdk/issues/260

web_ZcT6IkFP7qmain.tsx1 match

@dhvanil•Updated 1 day ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

web_IVDkuw1wQ8main.tsx1 match

@dhvanil•Updated 1 day ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

web_jbKPo47Qxlmain.tsx1 match

@dhvanil•Updated 1 day ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

web_ztTmrSwApDmain.tsx1 match

@dhvanil•Updated 1 day ago
1
2export default async function(req) {
3 return new Response(`undefined`, {
4 headers: { 'Content-Type': 'text/html' }

GlancerpageContents.controller.ts2 matches

@lightweight•Updated 1 day ago
6});
7
8async function fetchBlockChildren(blockId: string): Promise<any[]> {
9 try {
10 const response = await notion.blocks.children.list({
28}
29
30export async function getPageContents(pageId: string) {
31 try {
32 const response = await notion.blocks.children.list({
tuna

tuna9 file matches

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