Learnd is a personal learning journal for capturing and reviewing resources.
- Copy
local.mk.exampletolocal.mkand fill in required env vars. - Run
make runand openhttp://localhost:4500.
This repo includes a small helper that opens a real (headed) browser so you can log in manually, then saves Playwright storageState (cookies + localStorage) for reuse in tests/agents.
- Configure:
- Edit
auth.config.json(appName,baseURL, optionalloginURL).
- Edit
- Install Playwright (repo-local; this repo gitignores
package.jsonandnode_modules/):npm i -D playwrightnpx playwright install chromium
- Capture auth state:
node scripts/auth-capture.js
The state is saved to ./.auth/<appName>.json (and ./.auth/ is gitignored). To refresh it, re-run the capture and confirm the overwrite prompt (or pass --overwrite).
If the state file already exists and is still valid, you typically do not need to run capture again.
If you later run Playwright in headless mode and see missing browser executable errors, run npx playwright install to install Playwright's default browsers for your version/platform.
DATABASE_URLandAPI_KEY_HASHare required.PORTis optional; it defaults to4500.
GET /healthreturns200 OKwithokin the body.