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=106&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 19249 results for "api"(4234ms)

YoutubeDownloaderREADME.md1 match

@bman101โ€ขUpdated 1 week ago
17โ”‚ โ”œโ”€โ”€ index.ts # Main Hono server
18โ”‚ โ”œโ”€โ”€ routes/
19โ”‚ โ”‚ โ”œโ”€โ”€ download.ts # Download API endpoints
20โ”‚ โ”‚ โ””โ”€โ”€ static.ts # Static file serving
21โ”‚ โ””โ”€โ”€ services/

YoutubeDownloaderindex.ts3 matches

@bman101โ€ขUpdated 1 week ago
10});
11
12// API routes
13app.route("/api/download", downloadRoutes);
14
15// Static file serving and main routes
21 status: "healthy",
22 timestamp: new Date().toISOString(),
23 service: "YouTube Downloader API"
24 });
25});

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");

api_ianmenethil_com133 file matches

@ianmenethilโ€ขUpdated 3 hours ago

api_ianmenethil_com74 file matches

@ianmenethilโ€ขUpdated 11 hours ago
apiry
snartapi