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=120&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 13622 results for "api"(713ms)

AppkySearchPage.tsx3 matches

@OssyNachโ€ขUpdated 4 days ago
42 };
43
44 // Search packages API call
45 const searchPackages = async (loadMore = false) => {
46 try {
72 });
73
74 // Make API request
75 const response = await fetch(`/api/packages/search?${queryParams.toString()}`);
76 const result = await response.json();
77

Appkyindex.ts9 matches

@OssyNachโ€ขUpdated 4 days ago
43});
44
45// API routes
46app.route("/api/auth", authRoutes);
47app.route("/api/packages", packageRoutes);
48app.route("/api/agencies", agencyRoutes);
49app.route("/api/bookings", bookingRoutes);
50app.route("/api/payments", paymentRoutes);
51
52// Serve static files
70});
71
72// Handle 404 for API routes
73app.notFound((c) => {
74 if (c.req.path.startsWith("/api/")) {
75 return c.json({ success: false, error: "Endpoint not found" }, 404);
76 }
77
78 // For non-API routes, serve the index.html to support client-side routing
79 return c.redirect("/");
80});

Appkytypes.ts2 matches

@OssyNachโ€ขUpdated 4 days ago
110}
111
112// API response types
113export interface ApiResponse<T> {
114 success: boolean;
115 data?: T;

AppkyREADME.md3 matches

@OssyNachโ€ขUpdated 4 days ago
18โ”‚ โ”‚ โ”œโ”€โ”€ migrations.ts # Schema definitions
19โ”‚ โ”‚ โ””โ”€โ”€ queries.ts # DB query functions
20โ”‚ โ”œโ”€โ”€ routes/ # API route handlers
21โ”‚ โ”‚ โ”œโ”€โ”€ agencies.ts # Agency-related endpoints
22โ”‚ โ”‚ โ”œโ”€โ”€ auth.ts # Authentication endpoints
24โ”‚ โ”‚ โ”œโ”€โ”€ packages.ts # Travel package endpoints
25โ”‚ โ”‚ โ””โ”€โ”€ payments.ts # Payment processing endpoints
26โ”‚ โ””โ”€โ”€ index.ts # Main API entry point
27โ”œโ”€โ”€ frontend/
28โ”‚ โ”œโ”€โ”€ components/
42## Technology Stack
43
44- **Backend**: Hono (API framework), SQLite (database)
45- **Frontend**: React, TailwindCSS
46- **Authentication**: JWT-based authentication

LiveStormMCPREADME.md8 matches

@supagroovaโ€ขUpdated 4 days ago
1# Livestorm API MCP Server
2
3This project creates a Model Context Protocol (MCP) server that wraps the Livestorm API, exposing:
4- GET endpoints as Resources
5- POST, PUT, DELETE endpoints as Tools
7## How it works
8
91. The server fetches and parses the Livestorm API's OpenAPI definition
102. It dynamically creates MCP Resources and Tools based on the API endpoints
113. When a client requests a Resource or Tool, the server proxies the request to the Livestorm API
124. Authentication is handled by passing through the Authorization header
13
14## Authentication
15
16The Livestorm API requires authentication via an API token. This token should be passed to the MCP server in the Authorization header, which will then be forwarded to the Livestorm API.
17
18See the [Livestorm API documentation](https://developers.livestorm.co/docs/api-token-authentication#use-the-api-token) for more details on authentication.
19
20## Files
21
22- `index.ts`: Main entry point with HTTP trigger
23- `livestormApi.ts`: Functions to fetch and parse the OpenAPI definition
24- `mcp.ts`: MCP server setup and configuration

redditwatcherREADME.md10 matches

@jollyโ€ขUpdated 4 days ago
72. Send notifications to your preferred platform (Discord, Slack, email, etc.)
8
9Reddit does not have an API that allows users to scrape data, so we are doing this with the Google Search API, [Serp](https://serpapi.com/).
10
11---
29
30---
31### 3. Get a SerpApi Key
32This template requires a [SerpApi](https://serpapi.com/) key to search Reddit posts via Google search results.
33
341. **Get a SerpApi key**:
35 - Sign up at [SerpApi](https://serpapi.com/) to create an account.
36 - Generate an API key from your account dashboard.
37
382. **Add the SerpApi key to your environment variables**:
39 - Go to your [Val Town environment variables](https://www.val.town/settings/environment-variables).
40 - Add a new key:
41 - Key: `SERP_API_KEY`
42 - Value: Your SERP API key.
43
44Without this key, the val will not function correctly.
75
76### NOTE: Usage Limits
77- **SerpApi:** Free SerpApi accounts have monthly call limits.

redditwatchermain.tsx9 matches

@jollyโ€ขUpdated 4 days ago
1import { searchWithSerpApi } from "https://esm.town/v/charmaine/searchWithSerpApi";
2import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
3
4// Customize your search parameters
5const KEYWORDS = "\"node\" OR \"node.js\"";
6const DISCORD_API_KEY = Deno.env.get("mentionsDiscord");
7const SERP_API_KEY = Deno.env.get("SERP_API_KEY");
8
9// Set isProd = false for testing and = true for production
13
14export async function redditAlert({ lastRunAt }: Interval) {
15 if (!SERP_API_KEY || !DISCORD_API_KEY) {
16 console.error("Missing SERP_API_KEY or Discord webhook URL. Exiting.");
17 return;
18 }
19
20 // Determine the time frame for the search
21 // Details on as_qdr: https://serpapi.com/advanced-google-query-parameters#api-parameters-advanced-search-query-parameters-as-qdr
22 const timeFrame = isProd
23 ? lastRunAt
27
28 try {
29 const response = await searchWithSerpApi({
30 query: KEYWORDS,
31 site: "reddit.com",
32 apiKey: SERP_API_KEY,
33 as_qdr: timeFrame,
34 });
62 if (isProd) {
63 await discordWebhook({
64 url: DISCORD_API_KEY,
65 content,
66 });

templateRedditAlertREADME.md10 matches

@jollyโ€ขUpdated 4 days ago
72. Send notifications to your preferred platform (Discord, Slack, email, etc.)
8
9Reddit does not have an API that allows users to scrape data, so we are doing this with the Google Search API, [Serp](https://serpapi.com/).
10
11---
29
30---
31### 3. Get a SerpApi Key
32This template requires a [SerpApi](https://serpapi.com/) key to search Reddit posts via Google search results.
33
341. **Get a SerpApi key**:
35 - Sign up at [SerpApi](https://serpapi.com/) to create an account.
36 - Generate an API key from your account dashboard.
37
382. **Add the SerpApi key to your environment variables**:
39 - Go to your [Val Town environment variables](https://www.val.town/settings/environment-variables).
40 - Add a new key:
41 - Key: `SERP_API_KEY`
42 - Value: Your SERP API key.
43
44Without this key, the val will not function correctly.
75
76### NOTE: Usage Limits
77- **SerpApi:** Free SerpApi accounts have monthly call limits.

templateRedditAlertmain.tsx9 matches

@jollyโ€ขUpdated 4 days ago
1import { searchWithSerpApi } from "https://esm.town/v/charmaine/searchWithSerpApi";
2import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
3
4// Customize your search parameters
5const KEYWORDS = "\"node\" OR \"node.js\"";
6const DISCORD_API_KEY = Deno.env.get("mentionsDiscord");
7const SERP_API_KEY = Deno.env.get("SERP_API_KEY");
8
9// Set isProd = false for testing and = true for production
13
14export async function redditAlert({ lastRunAt }: Interval) {
15 if (!SERP_API_KEY || !DISCORD_API_KEY) {
16 console.error("Missing SERP_API_KEY or Discord webhook URL. Exiting.");
17 return;
18 }
19
20 // Determine the time frame for the search
21 // Details on as_qdr: https://serpapi.com/advanced-google-query-parameters#api-parameters-advanced-search-query-parameters-as-qdr
22 const timeFrame = isProd
23 ? lastRunAt
27
28 try {
29 const response = await searchWithSerpApi({
30 query: KEYWORDS,
31 site: "reddit.com",
32 apiKey: SERP_API_KEY,
33 as_qdr: timeFrame,
34 });
62 if (isProd) {
63 await discordWebhook({
64 url: DISCORD_API_KEY,
65 content,
66 });

simple-agentREADME.md1 match

@abrinzโ€ขUpdated 5 days ago
3## Configuration
4
5Configure the following two environment variables: `OPENAI_API_KEY` and `EXA_API_KEY`

create-val-api-demo1 file match

@shouserโ€ขUpdated 10 hours ago

new-val-api-demo

@shouserโ€ขUpdated 10 hours ago
This is an example of using the API to create a val.
papimark21
socialdata
Affordable & reliable alternative to Twitter API: โžก๏ธ Access user profiles, tweets, followers & timeline data in real-time โžก๏ธ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates โžก๏ธ Simple integration