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/image-url.jpg?q=api&page=107&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 19255 results for "api"(3631ms)

YoutubeDownloaderdownload.ts4 matches

@bman101•Updated 1 week ago
5const download = new Hono();
6
7// POST /api/download - Start a download
8download.post("/", async (c) => {
9 try {
44});
45
46// GET /api/download/video/:videoId - Download video file
47download.get("/video/:videoId", async (c) => {
48 const videoId = c.req.param("videoId");
61});
62
63// GET /api/download/audio/:videoId - Download audio file
64download.get("/audio/:videoId", async (c) => {
65 const videoId = c.req.param("videoId");
78});
79
80// GET /api/download/status/:videoId - Check download status
81download.get("/status/:videoId", async (c) => {
82 const videoId = c.req.param("videoId");

YoutubeDownloaderDownloadForm.tsx1 match

@bman101•Updated 1 week ago
28 };
29
30 const response = await fetch("/api/download", {
31 method: "POST",
32 headers: {

pixelartindex.ts11 matches

@loading•Updated 1 week ago
91
92// Register
93app.post("/api/auth/register", async c => {
94 try {
95 const { username, email, password, display_name } = await c.req.json();
151
152// Login
153app.post("/api/auth/login", async c => {
154 try {
155 const { username, password } = await c.req.json();
194
195// Logout
196app.post("/api/auth/logout", async c => {
197 try {
198 const sessionId = getSessionFromCookie(c.req.header('cookie'));
210
211// Get current user
212app.get("/api/auth/me", async c => {
213 try {
214 const user = await getCurrentUser(c);
235
236// Create artwork
237app.post("/api/artworks", async c => {
238 try {
239 const user = await getCurrentUser(c);
266
267// Get user's artworks
268app.get("/api/artworks/my", async c => {
269 try {
270 const user = await getCurrentUser(c);
287
288// Get public artworks
289app.get("/api/artworks/public", async c => {
290 try {
291 const limit = parseInt(c.req.query('limit') || '50');
301
302// Get artwork by ID
303app.get("/api/artworks/:id", async c => {
304 try {
305 const id = parseInt(c.req.param('id'));
324
325// Update artwork
326app.put("/api/artworks/:id", async c => {
327 try {
328 const user = await getCurrentUser(c);
347
348// Delete artwork
349app.delete("/api/artworks/:id", async c => {
350 try {
351 const user = await getCurrentUser(c);
369
370// Search artworks
371app.get("/api/artworks/search", async c => {
372 try {
373 const query = c.req.query('q');

pixelartauth.ts1 match

@loading•Updated 1 week ago
1// Simple password hashing using Web Crypto API
2export async function hashPassword(password: string): Promise<string> {
3 const encoder = new TextEncoder();

ai_comments_to_tasksindex.ts2 matches

@arthrod•Updated 1 week ago
245}
246
247// API endpoint to analyze PR messages
248app.post("/api/analyze", async c => {
249 try {
250 const body: AnalysisRequest = await c.req.json();

ai_comments_to_tasksindex.tsx1 match

@arthrod•Updated 1 week ago
309
310 try {
311 const response = await fetch("/api/analyze", {
312 method: "POST",
313 headers: {

RJ-DownDetectortelegram.ts1 match

@tagawa•Updated 1 week ago
30 // This is a no-op if nothing's changed
31 if (!isEndpointSet) {
32 await bot.api.setWebhook(req.url, {
33 secret_token: SECRET_TOKEN,
34 });

untitled-9921index.ts4 matches

@DevGoku•Updated 1 week ago
23}
24
25// API Routes
26app.route("/api/tools", toolsRouter);
27
28// Manual database seeding endpoint (for testing)
29app.get("/api/seed", async c => {
30 try {
31 console.log('🔧 Starting manual seed...');
126
127// Test endpoint to check table name
128app.get("/api/test-table", async c => {
129 try {
130 const { TABLE_NAME } = await import("./database/migrations.ts");

untitled-9921migrations.ts2 matches

@DevGoku•Updated 1 week ago
377 {
378 name: 'Resemble AI',
379 description: 'Real-time voice cloning and speech synthesis API',
380 category: 'audio-ai',
381 url: 'https://resemble.ai',
382 tags: JSON.stringify(['voice-cloning', 'api', 'real-time']),
383 pricing: 'paid',
384 featured: false,

untitled-9921App.tsx1 match

@DevGoku•Updated 1 week ago
50 if (filters?.featured) params.append('featured', 'true');
51
52 const response = await fetch(`/api/tools/search?${params}`);
53 const data = await response.json();
54
Plantfo

Plantfo8 file matches

@Llad•Updated 2 hours ago
API for AI plant info

api_ianmenethil_com133 file matches

@ianmenethil•Updated 11 hours ago
apiry
snartapi