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/$%7Bsuccess?q=api&page=895&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 19373 results for "api"(8665ms)

sqlite_adminREADME.md1 match

@pchinjr•Updated 1 month ago
9To use it on your own Val Town SQLite database, [fork it](https://www.val.town/v/stevekrouse/sqlite_admin/fork) to your account.
10
11It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).

retnames_word_listmain.tsx1 match

@recklessreticence•Updated 1 month ago
54 "CANADA",
55 "CAP",
56 "CAPITAL",
57 "CAR",
58 "CARD",

retnames_word_bankmain.tsx1 match

@recklessreticence•Updated 1 month ago
55 "CANADA",
56 "CAP",
57 "CAPITAL",
58 "CAR",
59 "CARD",

ValTownForNotion1webhookAPI0 matches

@charmaine•Updated 1 month ago
1import { Hono } from "npm:hono@3";
2// import { cors } from "npm:hono@3/cors";
3
4// Import route modules
5import auth from "./routes/auth.ts";

ValTownForNotion1root.ts1 match

@charmaine•Updated 1 month ago
9
10 const content = {
11 headline: "👋 Welcome to the root API endpoint of this Hono app, running on val.town",
12 message: "Find more detail in the README.",
13 url: notionURL,

ValTownForNotion1resets4 matches

@charmaine•Updated 1 month ago
4// Initialize Notion client
5const notion = new Client({
6 auth: Deno.env.get("NOTION_API_KEY"),
7});
8
37 // the block exists, so you can do the reset
38
39 // reset via the API
40 // this way we keep the notion data and the blob data (our cache) in sync
41 // the API resets the blocks on notion pages, and also knows what to do with the blob
42 // (note the x-blob-key header)
43 if (content != "default" && diffInMinutes > .5) {
48 "x-asking-for": "default",
49 "x-blob-key": item.key,
50 "x-api-key": Deno.env.get("X_API_KEY"),
51 },
52 body: JSON.stringify({

ValTownForNotion1README.md1 match

@charmaine•Updated 1 month ago
12## Handling Notion Webhooks
13
14This is done in the webhookAPI file.
15
16## Resetting state

ValTownForNotion1README.md1 match

@charmaine•Updated 1 month ago
1# Routes Directory
2
3This directory contains all the route handlers for the webhookAPI application. Each file exports a Hono app that handles a specific route or group of related routes.
4
5## Structure

ValTownForNotion1property-injections.ts1 match

@charmaine•Updated 1 month ago
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

ValTownForNotion1notionHelpers.ts1 match

@charmaine•Updated 1 month ago
4// Initialize Notion client
5const notion = new Client({
6 auth: Deno.env.get("NOTION_API_KEY"),
7});
8

researchAgent2 file matches

@thesephist•Updated 16 hours ago
This is a lightweight wrapper around Perplexity's web search API

memoryApiExample2 file matches

@ingenierotito•Updated 17 hours ago
apiry
snartapi