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%22Image%20title%22?q=database&page=386&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=database

Returns an array of strings in format "username" or "username/projectName"

Found 3904 results for "database"(1260ms)

dateMeNotifymain.tsx1 match

@stevekrouse•Updated 1 year ago
4// Email alerts when new Docs posted to https://DateMe.Directory
5// Subscribe by signing up to VT & forking to your account
6// Requires an upstash account: https://docs.val.town/persistence-databases/upstash
7export let dateMeNotify = notifyNew({
8 getData: fetchDateMeProfiles,

airtable_deno_samplemain.tsx1 match

@mattx•Updated 1 year ago
10 tableName: "All content",
11 });
12 // Sample data from: https://blog.airtable.com/database-vs-spreadsheet/
13 const results = await airtable.select();
14 return results;

importSmallStepsIntoNotionmain.tsx3 matches

@thomasatflexos•Updated 1 year ago
1import { trackSmallStepNotionExport } from "https://esm.town/v/thomasatflexos/trackSmallStepNotionExport";
2import { createSmallStepAsNotionPage } from "https://esm.town/v/thomasatflexos/createSmallStepAsNotionPage";
3import { createSmallStepNotionDatabase } from "https://esm.town/v/thomasatflexos/createSmallStepNotionDatabase";
4import { getSmallStepPage } from "https://esm.town/v/thomasatflexos/getSmallStepPage";
5import { getAccessTokenUsingBotId } from "https://esm.town/v/thomasatflexos/getAccessTokenUsingBotId";
35 accessToken,
36 );
37 const newSmallStepDatabase = await createSmallStepNotionDatabase(smallStepPage.id, title, accessToken);
38 // Loop over the Small Step data and send
39 const results = [];
42 let content = stepData[datum].text;
43 let newPage = await createSmallStepAsNotionPage(
44 newSmallStepDatabase.id,
45 stepName,
46 content,

readMediumPostsmain.tsx4 matches

@patrick_kw_chiu•Updated 1 year ago
2
3export const readMediumPosts = (async () => {
4 const { initDatabase } = await import("npm:mongo-http");
5 const articlesDatabase = initDatabase({
6 appId: process.env.MONGODB_ARTICLES_APP_ID,
7 apiKey: process.env.MONGODB_ARTICLES_API_KEY,
8 databaseName: "medium",
9 });
10 const results = await articlesDatabase.collection("articles").find({
11 filter: { categories: { $in: ["javascript", "typescript"] } },
12 projection: {

getDateMeDatabasemain.tsx4 matches

@stevekrouse•Updated 1 year ago
1import process from "node:process";
2import { notionGetDatabase } from "https://esm.town/v/stevekrouse/notionGetDatabase";
3
4export let getDateMeDatabase = () =>
5 notionGetDatabase({
6 databaseId: "725cb1d741674413b933a37a50f1961f",
7 auth: process.env.notion,
8 });

homemain.tsx1 match

@axelav•Updated 1 year ago
84 }> =>
85 fetchJSON(
86 `https://api.discogs.com/database/search?token=${token}&q=${query}${
87 isMaster ? "&type=master" : ""
88 }`

notionDateMeDocsmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { parseNotionDateDoc } from "https://esm.town/v/stevekrouse/parseNotionDateDoc";
2import { logError } from "https://esm.town/v/stevekrouse/logError";
3import { getDateMeDatabase } from "https://esm.town/v/stevekrouse/getDateMeDatabase";
4
5export const notionDateMeDocs = (await getDateMeDatabase())
6 .map((d) =>
7 logError(() =>

untitled3740476main.tsx1 match

@jonathan•Updated 1 year ago
4export let untitled3740476 = notionDB({
5 token: notionToken,
6 databaseId: "69c9fbd8557b440493a2d41f9ce17749",
7 query: "Germany",
8});

queryPlanetScalemain.tsx1 match

@vtdocs•Updated 1 year ago
8 args?: any[],
9) => {
10 const { connect } = await import("npm:@planetscale/database");
11 const { host, username, password } = config;
12 const conn = connect({

duckDBmain.tsx2 matches

@hamilton•Updated 1 year ago
1export async function duckDB(url) {
2 const { Database } = await import("npm:duckdb-async");
3 const db = await Database.create(":memory:");
4 await db.all("load httpfs");
5 return await db.all(`select * from "${url}" LIMIT 5`);

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago