logoalt Hacker News

varun_choprayesterday at 1:40 AM0 repliesview on HN

Working on Postkit - auth, permissions, config, metering, and job queues as pure SQL functions inside Postgres.

I've been using Claude Code to spin up apps quickly, and I kept needing the same infrastructure every time - user auth, permissions, usage tracking, job queues. So I pulled it all into one SQL package that lives in Postgres. Now when I start a new app I just tell Claude to use Postkit and all that stuff is already there, no external services to set up. I can focus on the actual product and iterate fast.

It was also a good excuse to actually use stuff I'd studied for system design interviews - Zanzibar-style ReBAC for permissions, a double-entry ledger for usage metering, transactional job queues with SKIP LOCKED. ~15k lines of SQL across five modules, with a Python SDK. The SQL works from any language though.

https://github.com/varunchopra/postkit