tracks lexicons and how many times they appeared on the jetstream
3
fork

Configure Feed

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

build: fix nix build actually, let env var specify DB_PATH

dusk 39da75b0 4c9f6f89

+3 -1
+1
flake.nix
··· 75 75 76 76 mkdir -p $out/bin 77 77 cp -R ./build/* $out 78 + cp -R ./node_modules $out 78 79 79 80 makeBinaryWrapper ${pkgs.bun}/bin/bun $out/bin/${packageJson.name} \ 80 81 --prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.bun ]} \
+2 -1
src/lib/db.ts
··· 1 1 import { Database } from "bun:sqlite"; 2 + import {env} from 'process'; 2 3 3 4 export interface EventRecord { 4 5 nsid: string; ··· 17 18 private getNsidCountQuery; 18 19 19 20 constructor() { 20 - this.db = new Database("events.sqlite"); 21 + this.db = new Database(env.DB_PATH ?? "events.sqlite"); 21 22 // init db 22 23 this.db.run("PRAGMA journal_mode = WAL;"); 23 24 // events