A tiny shared reading list. Paste a link, say why it is worth reading. Everyone with the address sees the 20 newest links, newest first.
One Node.js process and one PostgreSQL table. No framework, one dependency (pg).
- Node.js 20 or newer
- PostgreSQL 14 or newer
npm install
cp .env.example .env # then edit PG_URL
export $(cat .env | xargs)
psql "$PG_URL" -f db/schema.sql
npm startThe app listens on port 3000. Open http://localhost:3000 and drop a link.
| Variable | What it is |
|---|---|
PG_URL |
PostgreSQL connection string, e.g. postgresql://user:password@host:5432/linkdrop |
HOST |
Interface to listen on (optional) |
GET /healthz answers ok once the process is up.