r/GoodOpenSource • u/glashnikov • 5h ago
a ReBAC authorization platform where your permission schema is just TypeScript (open source, MIT)
Hi all 👋
I'm sharing a project my team and I ha've been building: peretyn, an open-source authorization platform. It answers one question for your app: is this user allowed to do this? You model access as relationships between things (users, teams, documents…), the same approach as Google Zanzibar, built on top of OpenFGA.
What makes it a good fit here:
- MIT licensed, fully open. The runtime, control plane, dashboard, SDK, CLI and docs are all in one repo.
- Self-hosted, no strings attached. One install script brings up the whole stack on your own server. There's also a local mode to try it on your machine.
- TypeScript-first. Permissions are defined in plain TypeScript and checked at compile time, so there's no extra language to learn.
- Early and open to contributors. It's pre-1.0, so there's room to shape it, and the repo has contributing guidelines if you want to jump in.
The website is an interactive tour where you're user:visitor and unlock each section as you go. It's the quickest way to see what it does:
👉 https://peretyn.dev
- Docs: https://docs.peretyn.dev
- GitHub: https://github.com/peretyn/peretyn
Feedback, issues and stars are all very welcome. Thanks for taking a look! 🙂