A build your own ATProto adventure, OAuth already figured out for you. demo.atpoke.xyz
38
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 11 lines 419 B view raw
1import { drizzle } from 'drizzle-orm/better-sqlite3'; 2import Database from 'better-sqlite3'; 3import * as schema from './schema'; 4import { env } from '$env/dynamic/private'; 5import { logger } from '$lib/server/logger'; 6 7if (!env.DATABASE_URL) throw new Error('DATABASE_URL is not set'); 8 9const client = new Database(env.DATABASE_URL); 10logger.info('Connected to database'); 11export const db = drizzle(client, { schema });