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#!/usr/bin/env bash2# Search-box.ai3# Author: Simon-Pierre Boucher4# Contact: contact@spboucher.ai5# File: deploy/start.sh6# Description: Production start on node m3u96a — build, migrate, serve, tunnel (PM2).78set -euo pipefail9cd "$(dirname "$0")/.."1011if [ ! -f .env ]; then12 echo "missing .env (secrets live only on the node)" >&213 exit 114fi1516pnpm install --frozen-lockfile17pnpm migrate18pnpm build1920# App under PM2 (auto-restart), tunnel under PM2 alongside it.21pm2 delete search-box-web >/dev/null 2>&1 || true22pm2 start "pnpm start" --name search-box-web2324pm2 delete search-box-ngrok >/dev/null 2>&1 || true25pm2 start "ngrok start --config deploy/ngrok.yml search-box-web" --name search-box-ngrok2627pm2 save28echo "search-box.ai is up: https://www.search-box.ai"29