spb/search-box Public
Agentic web research engine — hypotheses, verbatim evidence, contradictions, sourced answers streamed live. Claude Opus 5 + Firecrawl + PostgreSQL.
TypeScript 76.9%
CSS 18.7%
SQL 2.1%
JavaScript 1.8%
Shell 0.5%
1/**2 * Search-box.ai3 * Author: Simon-Pierre Boucher4 * Contact: contact@spboucher.ai5 * File: packages/shared/src/ids.ts6 * Description: Prefixed unique id generation for research entities.7 */89import { randomBytes } from "node:crypto";1011export type IdPrefix = "ses" | "src" | "ev" | "clm" | "ctr" | "evt";1213export function newId(prefix: IdPrefix): string {14 return `${prefix}_${randomBytes(9).toString("base64url")}`;15}16