Two pages: Payroll (calculate and save) and Payroll History (click a date to expand the details). Payrolls are saved as private JSON files in Vercel Blob, behind a shared passcode.
- Put this folder in a GitHub repo (or run
npx vercelinside it). - In Vercel, import the project. Framework preset: Other. No build command needed.
- Project > Storage > Create Storage > Blob, set access to Private, and connect it to the project. (Access mode can't be changed later.)
- Project > Settings > Environment Variables: add
PAYROLL_PASSCODEwith a passcode of your choice (all environments). - Redeploy, then open your site. You'll be asked for the passcode the first time you save or view history.
- Anyone with the site URL can see the Payroll calculator, but saving, viewing and deleting history all require the passcode.
- Share the passcode only with people who should see payroll data. To change it, update the env var and redeploy.
- Each payroll is one file at
payrolls/<id>.json. The server recalculates totals from the inputs before saving. - Local testing:
npm i -g vercel,vercel link,vercel env pull, thenvercel dev.