r/GoodOpenSource • u/glashnikov • 10d ago
a ReBAC authorization platform where your permission schema is just TypeScript (open source, MIT)
/r/typescript/comments/1xxo34p/a_rebac_authorization_platform_where_your/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! 🙂
•
u/AutoModerator 10d ago
Please post a comment here explaining what kind of contributions you, or the project you are posting about, are looking for. For example what skill sets, any rules important for people joining in your build like how often people should post, and anything else you can think of which will help readers decide if they want to join in and start coding with that project.
Thank you and be excellent to each other. u/roamingandy
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/glashnikov 9d ago
The most useful thing right now: try it and tell me what's confusing.
peretyn is early (pre-1.0), so honest feedback is worth as much as code. Install it, follow the quickstart, and open an issue wherever you get stuck. I've already run a couple of new-user tests on the self-host setup and fixed what came up, but fresh eyes always find more.
Skill sets that fit:
- TypeScript: the SDK, where most of the design work happens. If you care about type-level API design and developer experience, this is the fun part.
- Go: the runtime that answers permission checks and stores relationships, and the CLI.
- React / Next.js: the dashboard and the docs site.
- Writing: docs, guides and examples. Good examples are probably the biggest gap right now.
- Self-hosting / DevOps: the install script and the Docker Compose stack. Testing it on different setups helps a lot.
- Authorization / ReBAC know-how: if you've used OpenFGA, SpiceDB or Zanzibar-style systems, I'd love your take on the modeling side.
How it works if you want to join:
- Issues come first. Open or pick an issue before starting on something bigger, so we can agree on the approach. Typos and small fixes can go straight to a PR.
- No commitment. There's no expected posting frequency or minimum involvement. One PR or one good bug report is a real contribution.
- The usual guidelines are in CONTRIBUTING.md: conventional commits, a changeset for user-facing changes, and run format/typecheck/lint/test before pushing. pnpm dev spins up the whole stack locally with Postgres in Docker.
- A couple of house rules: prefer proven libraries over custom code, and no code comments (the code should explain itself).
- Code of Conduct applies, and everything is MIT licensed.
Repo: https://github.com/peretyn/peretyn. Feel free to ask anything here or open a discussion on GitHub!