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/?q=api&page=233&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 12744 results for "api"(1723ms)

9// Initialize Notion client
10const notion = new Client({
11 auth: Deno.env.get("NOTION_API_KEY"),
12});
13
61 // unless there's already a blob key that matches
62 // to see if there's a match, loop through blobs rather than traversing the notion page
63 // though not ideal, it's faster than doing the API calls necessary to traverse the Notion page
64 const checkForBlob = async () => {
65 const items = await blob.list(slug.split(".")[0]);
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

ValTownForNotion1auth.ts2 matches

@charmaineUpdated 3 weeks ago
1export default async (c, next) => {
2 const secret = c.req.header("x-api-key");
3 if (secret !== Deno.env.get("X_API_KEY")) {
4 return c.text("Unauthorized", 401);
5 }
ValTownForNotion

ValTownForNotionroot.ts1 match

@bradnobleUpdated 3 weeks 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,

ffm_checkermain.tsx5 matches

@crisscrossedUpdated 3 weeks ago
8];
9
10const STEEL_API_KEY = Deno.env.get("STEEL_API_KEY")!;
11if (!STEEL_API_KEY) {
12 console.error("Missing STEEL_API_KEY");
13 Deno.exit(1);
14}
15
16const client = new Steel({ steelAPIKey: STEEL_API_KEY });
17const puppeteer = new PuppeteerDeno({ productName: "chrome" });
18
164 session = await client.sessions.create();
165 browser = await puppeteer.connect({
166 browserWSEndpoint: `wss://connect.steel.dev?apiKey=${STEEL_API_KEY}&sessionId=${session.id}`,
167 });
168 const page = await browser.newPage();
ValTownForNotion

ValTownForNotionwebhookAPI0 matches

@bradnobleUpdated 3 weeks 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";
ValTownForNotion

ValTownForNotionREADME.md1 match

@bradnobleUpdated 3 weeks 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
7// Initialize Notion client
8const notion = new Client({
9 auth: Deno.env.get("NOTION_API_KEY"),
10});
11

vapi-minutes-db1 file match

@henrywilliamsUpdated 21 hours ago

vapi-minutes-db2 file matches

@henrywilliamsUpdated 23 hours ago
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
artivilla
founder @outapint.io vibe coding on val.town. dm me to build custom vals: https://artivilla.com