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=database&page=384&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 3891 results for "database"(825ms)

discogsmain.tsx1 match

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

airtable_get_samplemain.tsx1 match

@mattx•Updated 1 year ago
11 },
12 );
13 // Sample data from: https://blog.airtable.com/database-vs-spreadsheet/
14 // appXSrKDlwbAijRmD is the name of the base, recxS2AKaE1klriwW is the record ID
15 return data;

createReplitDBClientmain.tsx1 match

@claytn•Updated 1 year ago
13*/
14
15/** Database client for replit's key-value store */
16
17export function createReplitDBClient(REPLIT_DB_URL) {

getVectorStoreBuildermain.tsx1 match

@webup•Updated 1 year ago
27 await import("npm:dotenv");
28 const { PineconeClient } = await import(
29 "npm:@pinecone-database/pinecone"
30 );
31 const client = new PineconeClient();

getNotionDateMeDocsmain.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 getNotionDateMeDocs = async () =>
6 (await getDateMeDatabase())
7 .map((d) =>
8 logError(() =>

aqiNotifiermain.tsx4 matches

@realog•Updated 1 year ago
1import { databaseVal } from "https://esm.town/v/realog/databaseVal";
2import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=3";
3
7 location: location,
8 });
9 const previousAQI = databaseVal.pop();
10 let direction = "";
11 if (myAQI.aqi < previousAQI.AQI) {
20 const messageText =
21 `The AQI is ${direction} at ${myAQI.aqi} which is categorized as ${myAQI.severity}.`;
22 databaseVal.splice(0, databaseVal.length);
23 const storeAQI = databaseVal.push({
24 "AQI": Number(myAQI.aqi),
25 "severity": myAQI.severity,

redirectmain.tsx1 match

@thomasatflexos•Updated 1 year ago
29 });
30 const notionAuthRes = await response.json();
31 // Retrieve access token and other properties to save to database
32 let accessToken = notionAuthRes.access_token;
33 let email = notionAuthRes.owner.user.person.email;

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,

bookmarksDatabase

@s3thi•Updated 2 months ago

sqLiteDatabase1 file match

@ideofunk•Updated 5 months ago