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=database&page=287&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 2901 results for "database"(799ms)

notionDateMeDocNotify3main.tsx3 matches

@stevekrouse•Updated 1 year ago
2import { email } from "https://esm.town/v/std/email?v=9";
3import process from "node:process";
4import { notionGetDatabaseEditedAfter } from "https://esm.town/v/stevekrouse/notionGetDatabaseEditedAfter";
5
6export let notionDateMeDocNotify3 = async ({ lastRunAt }: Interval) => {
7 let newDocs = await notionGetDatabaseEditedAfter({
8 auth: process.env.notion,
9 databaseId: "725cb1d741674413b933a37a50f1961f",
10 date: lastRunAt,
11 });

safeCountermain.tsx1 match

@stevekrouse•Updated 1 year ago
33 // is fully updated *before* I release the lock. If I were to update the state
34 // directly in this val, `@stevekrouse.updateThreadsafeStateEx = `, those
35 // changes wouldn't be saved in the database until *after* I released the lock
36 let newState = state + 1;
37 await runVal("stevekrouse.updateThreadsafeStateEx", {

notionDateDocTruncatedmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { getDateMeDatabase } from "https://esm.town/v/stevekrouse/getDateMeDatabase";
2import { truncateVal } from "https://esm.town/v/stevekrouse/truncateVal";
3
4export const notionDateDocTruncated = truncateVal(
5 getDateMeDatabase(),
6);

notionGetDatabaseEditedAftermain.tsx4 matches

@stevekrouse•Updated 1 year ago
1import process from "node:process";
2import { notionGetDatabase } from "https://esm.town/v/stevekrouse/notionGetDatabase";
3
4export const notionGetDatabaseEditedAfter = async ({ databaseId, auth, date }) => {
5 return notionGetDatabase({
6 auth: process.env.notion,
7 databaseId,
8 filter: {
9 timestamp: "last_edited_time",

databaseValmain.tsx1 match

@stevekrouse•Updated 1 year ago
1// set by stevekrouse.untitled_NwQdD9zC at 2023-06-08T18:07:45.650Z
2export let databaseVal = [{
3 "hello": "world"
4}];

untitled_TeCzFPJCmain.tsx3 matches

@stevekrouse•Updated 1 year ago
2import { msAgo } from "https://esm.town/v/rodrigotello/msAgo?v=2";
3import process from "node:process";
4import { notionGetDatabaseEditedAfter } from "https://esm.town/v/stevekrouse/notionGetDatabaseEditedAfter";
5
6export const untitled_TeCzFPJC = notionGetDatabaseEditedAfter({
7 auth: process.env.notion,
8 databaseId: "725cb1d741674413b933a37a50f1961f",
9 date: msAgo(2 * msDay),
10});

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(() =>

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,

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 });

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(() =>

yc_database

@stevekrouse•Updated 5 months ago

dateMeNotionDatabase2 file matches

@stevekrouse•Updated 1 year ago