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=62&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 12317 results for "api"(1372ms)

aqiproxy.ts2 matches

@pepicrftUpdated 1 week ago
1const TARGET_URL = "https://api.openaq.org";
2
3export default async function(req: Request): Promise<Response> {
5 return fetch(TARGET_URL + url.pathname + url.search, {
6 headers: {
7 "X-API-Key": Deno.env.get("OpenAQ_API_KEY") as string,
8 },
9 });

slackbolt.tsx2 matches

@dinavinterUpdated 1 week ago
38});
39app.message(async ({ message, say }) => {
40 // Filter out message events with subtypes (see https://api.slack.com/events/message)
41 if (message.subtype === undefined || message.subtype === "bot_message") {
42 const reversedText = [...message.text || ""].reverse().join("");
107 // Steps should be marked as successfully completed using `complete` or
108 // as having failed using `fail`, else they'll remain in an 'In progress' state.
109 // Learn more at https://api.slack.com/automation/interactive-messages
110 // biome-ignore lint/style/noNonNullAssertion: we know this button comes from a step, so `fail` is available.
111 await complete!({ outputs: { user_id: user.id } });
GitHub-Release-Notes

GitHub-Release-NotesREADME.md2 matches

@charmaineUpdated 1 week ago
9## Types
10
11- `GitHubCommit` - GitHub API commit response
12- `GitHubPR` - GitHub API pull request response
13- `CommitWithPR` - Combined commit and PR data
14- `ReleaseNote` - Structure for generated release notes
GitHub-Release-Notes

GitHub-Release-NotesREADME.md5 matches

@charmaineUpdated 1 week ago
5## Files
6
7- `github.ts` - GitHub API integration for fetching commits and PR data
8- `llm.ts` - OpenAI integration for generating release notes
9- `types.ts` - Type definitions for the backend
10
11## API Endpoints
12
13### POST /api/commits
14
15Fetches commits and associated PR data from GitHub within a specified date range.
48```
49
50### POST /api/generate-notes
51
52Generates user-facing release notes from commit and PR data using OpenAI.
56{
57 "commits": [
58 // Array of commit objects from /api/commits
59 ]
60}
43
44 try {
45 const response = await fetch("/api/user/username", {
46 method: "POST",
47 headers: {

luciaMagicLinkStarterREADME.md4 matches

@cameronpakUpdated 1 week ago
27- **Database**:[Val Town SQLite](https://docs.val.town/std/sqlite/) for storing users, sessions, and magic link tokens
28- **Frontend**: React with Tailwind CSS
29- **Backend**: Hono.js for API routes and middleware
30- **Authentication**: Built by following the [Lucia guide](https://lucia-next.pages.dev/)
31
32## API Endpoints
33
34Provided by the Auth Middleware in `backend/auth.ts`:
38- `POST /auth/logout` - Log out the current user
39
40In the app's API, in `backend/index.ts`:
41
42- `POST /api/user/username` - Update the user's username
43
44## Notes

luciaMagicLinkStarterindex.ts2 matches

@cameronpakUpdated 1 week ago
27});
28
29// API endpoint to update username
30app.post("/api/user/username", async c => {
31 const user = c.get("user");
32
luciaMagicLinkStarter

luciaMagicLinkStarterREADME.md4 matches

@stevekrouseUpdated 1 week ago
27- **Database**:[Val Town SQLite](https://docs.val.town/std/sqlite/) for storing users, sessions, and magic link tokens
28- **Frontend**: React with Tailwind CSS
29- **Backend**: Hono.js for API routes and middleware
30- **Authentication**: Built by following the [Lucia guide](https://lucia-next.pages.dev/)
31
32## API Endpoints
33
34Provided by the Auth Middleware in `backend/auth.ts`:
38- `POST /auth/logout` - Log out the current user
39
40In the app's API, in `backend/index.ts`:
41
42- `POST /api/user/username` - Update the user's username
43
44## Notes
11 const path = url.pathname;
12
13 // Forward API requests to the leads API
14 if (path.startsWith("/api/")) {
15 const leadsHandler = (await import("./leads.ts")).default;
16 return await leadsHandler.handler(req);
571
572 try {
573 const response = await fetch('/api/leads', {
574 method: 'POST',
575 headers: {
601 try {
602 // Get lead data
603 const response = await fetch('/api/leads?id=' + leadId);
604 const result = await response.json();
605
653
654 try {
655 const response = await fetch('/api/leads', {
656 method: 'PUT',
657 headers: {
705
706 try {
707 const response = await fetch('/api/leads', {
708 method: 'PUT',
709 headers: {

slackmain.tsx1 match

@dinavinterUpdated 1 week ago
16 // like the sender and the message text
17 const result = await fetchJSON(
18 "https://slack.com/api/chat.postMessage",
19 {
20 headers: {

social_data_api_project3 file matches

@tsuchi_yaUpdated 2 days ago

simple-scrabble-api1 file match

@bryUpdated 5 days ago
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