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=138&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 18012 results for "api"(1364ms)

kemmyChat.tsx2 matches

@englidโ€ขUpdated 4 days ago
14 const fetchMessages = async () => {
15 try {
16 const response = await fetch('/api/chat');
17 if (!response.ok) {
18 throw new Error('Failed to fetch messages');
47 setSending(true);
48 try {
49 const response = await fetch('/api/chat', {
50 method: 'POST',
51 headers: {

untitled-2883Dashboard.tsx1 match

@ampomahโ€ขUpdated 4 days ago
118 <button
119 onClick={async () => {
120 const response = await fetch('/api/clients/process-workflows', {
121 method: 'POST'
122 });

kemmyJobBoard.tsx1 match

@englidโ€ขUpdated 4 days ago
13 try {
14 setLoading(true);
15 const response = await fetch('/api/jobs');
16 if (!response.ok) {
17 throw new Error('Failed to fetch jobs');

untitled-2883App.tsx4 matches

@ampomahโ€ขUpdated 4 days ago
57
58 const loadWorkflows = async () => {
59 const response = await fetch('/api/workflows');
60 const result = await response.json();
61 if (result.success) {
67
68 const loadClients = async () => {
69 const response = await fetch('/api/clients');
70 const result = await response.json();
71 if (result.success) {
77
78 const loadStats = async () => {
79 const response = await fetch('/api/clients/dashboard/stats');
80 const result = await response.json();
81 if (result.success) {
231 <button
232 onClick={async () => {
233 const response = await fetch(`/api/workflows/${workflow.id}/duplicate`, {
234 method: 'POST'
235 });

untitled-6487README.md7 matches

@aremo1805โ€ขUpdated 4 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

untitled-960index.ts3 matches

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

kemmyJobForm.tsx1 match

@englidโ€ขUpdated 4 days ago
27
28 try {
29 const response = await fetch('/api/jobs', {
30 method: 'POST',
31 headers: {

untitled-960ChatRoom.tsx2 matches

@englidโ€ขUpdated 4 days ago
19 const fetchMessages = async () => {
20 try {
21 const response = await fetch('/api/chat/messages');
22 if (!response.ok) {
23 throw new Error('Failed to fetch messages');
70 };
71
72 const response = await fetch('/api/chat/messages', {
73 method: 'POST',
74 headers: {

untitled-9323ChatRoom.tsx2 matches

@zethuโ€ขUpdated 4 days ago
19 try {
20 setLoading(true);
21 const response = await fetch('/api/chat/messages');
22 if (!response.ok) throw new Error('Failed to fetch messages');
23 const messagesData = await response.json();
58 };
59
60 const response = await fetch('/api/chat/messages', {
61 method: 'POST',
62 headers: {

untitled-960JobForm.tsx1 match

@englidโ€ขUpdated 4 days ago
32 };
33
34 const response = await fetch('/api/jobs', {
35 method: 'POST',
36 headers: {

Apiify7 file matches

@wolfโ€ขUpdated 33 mins ago

dailyQuoteAPI

@Soukyโ€ขUpdated 2 days ago
Kapil01
apiv1