A free, open-source alternative to Pagevault. They charge $8/mo.
Free
Page Locker
Password-protect any static site with an edge function and a single shared secret.
Teardown
3 parts, wired together
- 01Vercel Edge MiddlewareTODO — checks the cookie before the page is served.
- 02Web CryptoTODO — hashes and compares the passphrase at the edge.
- 03Signed cookiesTODO — keep a session open without a database.
What it does
TODO — replace this placeholder description.
Page Locker covers the one job Pagevault charges $8/mo for, and stops there. It runs on your own machine or your own hosting, against your own key, so the running cost is whatever the underlying API charges and nothing on top.
TODO — describe the actual loop the tool handles here.
Run it yourself
Bring your own API key. Three commands from clone to running.
$ git clone https://github.com/rebuiltlabs/page-locker.git$ cd page-locker && npm install$ cp .env.example .env # add your own API keyWhat I cut
Where it stops short of Pagevault
- TODO — one shared passphrase, not per-user accounts.
- TODO — no access logs or per-visitor analytics.
- TODO — no expiring invite links.