Paste a storm alert and get a verdict (credible / suspicious / uncertain), a confidence score, and a plain-language explanation of why.
Requires Node 20.6+ (uses --env-file).
npm install- Copy
.env.exampleto.envand add your Gemini API key- Mac/Linux/PowerShell:
cp .env.example .env - Windows Command Prompt:
copy .env.example .env
- Mac/Linux/PowerShell:
npm run dev- Open http://localhost:5173
The app runs on port 5173 and the API on port 8787.
Running a check requires login. Official alerts stay public.
- In Auth0, create a Single Page Application. Set Allowed Callback URLs, Allowed Logout URLs and Allowed Web Origins to
http://localhost:5173/. - Create an API with identifier
https://hurricaneshield-api(RS256). - Fill in the
AUTH0_*andVITE_AUTH0_*values in.env(see.env.example).
- Create a free service at tigerdata.com (Tiger Cloud).
- Copy its connection string into
.envasDATABASE_URL=.... It contains a password, so never commit or share it. - Run
npm install, restart the app, and run a check. The table is created automatically.
Swarms API: a swarm of AI agents reviews each storm alert from different angles (for example, source credibility, language and tone, and consistency with official data) and their findings are combined into the final verdict. Requires SWARMS_API_KEY in .env. See server/swarm.js.
The Express server also serves the built website, so the whole app is one Render "Web Service".
- On render.com: New > Web Service, connect this GitHub repo, branch
main. - Build command:
npm install --include=dev && npm run build - Start command:
npm start - In the service's Environment tab, add the same values as
.env(Gemini, Auth0,DATABASE_URL). Never commit them. - In Auth0 (HurricaneShield app), add
https://<your-app>.onrender.com/to Allowed Callback URLs, Allowed Logout URLs and Allowed Web Origins. - Every merge to
mainredeploys automatically. The free plan sleeps after 15 minutes idle, so open the site a minute before a demo.
- Gemini API: analyzes each alert and returns the verdict, confidence and explanation. See
server/index.jsandserver/prompt.js. - Auth0: login is required to run a check. Server guard is
requireLogininserver/index.js; login UI is insrc/main.jsxandsrc/App.jsx. - Tiger Data: every AI check (verdict, confidence, red flags; not the alert text) is saved to a hypertable and charted with
time_bucket(). Seeserver/db.jsandsrc/TrendChart.jsx.