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%20%22Optional%20title%22?q=api&page=227&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 18331 results for "api"(2553ms)

untitled-5522ProjectTemplates.tsx3 matches

@favour18โ€ขUpdated 6 days ago
27 const loadTemplates = async () => {
28 try {
29 const response = await fetch('/api/templates');
30 const result = await response.json();
31
62 const handleCreateProject = async (projectData: any) => {
63 try {
64 const response = await fetch('/api/projects', {
65 method: 'POST',
66 headers: { 'Content-Type': 'application/json' },
73 if (selectedTemplate) {
74 for (const taskTemplate of selectedTemplate.tasks) {
75 await fetch('/api/tasks', {
76 method: 'POST',
77 headers: { 'Content-Type': 'application/json' },

QUEENindex.js1 match

@Sydneytonyeโ€ขUpdated 6 days ago
221
222 try {
223 const response = await fetch('/api/orders', {
224 method: 'POST',
225 headers: {

untitled-5522TaskManager.tsx3 matches

@favour18โ€ขUpdated 6 days ago
71 const handleStatusChange = async (taskId: string, newStatus: string) => {
72 try {
73 const response = await fetch(`/api/tasks/${taskId}/status`, {
74 method: 'PATCH',
75 headers: { 'Content-Type': 'application/json' },
90 const handlePriorityChange = async (taskId: string, newPriority: string) => {
91 try {
92 const response = await fetch(`/api/tasks/${taskId}/priority`, {
93 method: 'PATCH',
94 headers: { 'Content-Type': 'application/json' },
110 try {
111 setIsLoading(true);
112 const response = await fetch('/api/tasks', {
113 method: 'POST',
114 headers: { 'Content-Type': 'application/json' },

untitled-7288types.ts1 match

@Peteruiโ€ขUpdated 6 days ago
96 description: "JavaScript, frameworks and interactive sites",
97 duration: 3,
98 skills: ["JavaScript", "React basics", "API integration", "Modern frameworks"],
99 projects: ["Interactive website", "Web app", "E-commerce site", "Portfolio upgrade"]
100 },

QUEENREADME.md5 matches

@Sydneytonyeโ€ขUpdated 6 days ago
14
15- `frontend/` - Customer-facing ordering interface
16- `backend/` - API endpoints and order management
17- `shared/` - Common types and utilities
18
19## Getting Started
20
21The main entry point is `backend/index.ts` which serves both the API and frontend files.
22
23## Database
27- JSON storage for order items
28
29## API Endpoints
30
31- `GET /` - Serves the main ordering page
32- `POST /api/orders` - Submit a new order
33- `GET /api/orders` - Get all orders (admin)

untitled-5522Dashboard.tsx3 matches

@favour18โ€ขUpdated 6 days ago
49 // Load projects, tasks, and stats in parallel
50 const [projectsRes, tasksRes, statsRes] = await Promise.all([
51 fetch('/api/projects'),
52 fetch('/api/tasks/my-tasks'),
53 fetch('/api/dashboard/stats')
54 ]);
55

untitled-5522App.tsx1 match

@favour18โ€ขUpdated 6 days ago
48 const handleDemoLogin = async () => {
49 try {
50 const response = await fetch('/api/auth/demo', {
51 method: 'POST',
52 headers: { 'Content-Type': 'application/json' }

untitled-2263index.ts3 matches

@BOBUโ€ขUpdated 6 days ago
15await runMigrations();
16
17// API routes
18app.route("/api/jobs", jobs);
19app.route("/api/chat", chat);
20
21// Serve static files

At_your_doorstepindex.ts3 matches

@TechEnthusiastโ€ขUpdated 6 days ago
17await runMigrations();
18
19// API routes
20app.route("/api/products", products);
21app.route("/api/orders", orders);
22
23// Serve static files

untitled-2263README.md7 matches

@BOBUโ€ขUpdated 6 days ago
17โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # Database query functions
18โ”‚ โ”œโ”€โ”€ routes/
19โ”‚ โ”‚ โ”œโ”€โ”€ jobs.ts # Job posting API routes
20โ”‚ โ”‚ โ””โ”€โ”€ chat.ts # Chat API routes
21โ”‚ โ””โ”€โ”€ index.ts # Main Hono server
22โ”œโ”€โ”€ frontend/
32```
33
34## API Endpoints
35
36- `GET /api/jobs` - Get all job postings
37- `POST /api/jobs` - Create a new job posting
38- `GET /api/chat/messages` - Get chat messages
39- `POST /api/chat/messages` - Send a chat message
40
41## Getting Started

Galacta3 file matches

@defunktโ€ขUpdated 8 hours ago
Marvel Rivals GPT via tracker.gg API

github-api1 file match

@cricks_unmixed4uโ€ขUpdated 1 day ago
apiry
snartapi