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.

fix: import worker source as raw and then eval it because it doesnt work otherwise

dusk 859d9807 033543de

+3 -1
+1
src/hooks.server.ts
··· 4 4 const exit = () => { 5 5 workerExit(); 6 6 eventTracker.exit(); 7 + setTimeout(process.exit, 2000); 7 8 }; 8 9 start(); 9 10
+2 -1
src/lib/worker_manager.ts
··· 1 1 import { eventTracker } from "./db.js"; 2 2 import type { WorkerCommand } from "./types.js"; 3 3 import * as wt from "node:worker_threads"; 4 + import workerSrc from "./worker.js?raw"; 4 5 5 6 let worker: wt.Worker | null = null; 6 7 ··· 9 10 }; 10 11 11 12 export const start = () => { 12 - worker = new wt.Worker("$lib/worker.js"); 13 + worker = new wt.Worker(workerSrc, { eval: true }); 13 14 worker.on("message", eventTracker.recordEventHit); 14 15 }; 15 16