head to head · open source

casbin vs openGym

casbin has 20,467 GitHub stars, 1,764 forks, 38 open issues and last shipped 4 days ago. openGym has 15,277 stars, 2,008 forks, 109 open issues and last shipped yesterday. casbin leads on adoption by 34% (20,467 vs 15,277 stars). casbin is written in Go under Apache-2.0; openGym is written in JavaScript under AGPL-3.0. casbin has attracted 9% as many forks as stars, openGym 13%. openGym was the more recently maintained of the two, and both are self-hostable with no licence fee.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

casbin ★ 20K openGym ★ 15K category Security & Privacy

← all 20902 open source comparisons

Side by side

casbin openGym
GitHub stars ★ 20K ★ 15K
License Apache-2.0 AGPL-3.0
Written in Go JavaScript
Last push 2026-10-21 2026-10-24
Forks ⑂ 1.8K ⑂ 2.0K
Self-hosting Yes Yes
Data ownership Your server Your server

pick casbin if

  • You weight community size — 20K stars and counting
  • You want the Apache-2.0 license terms
  • Your stack matches Go
  • You value the larger contributor base for long-term maintenance

full casbin profile →

pick openGym if

  • You want the openGym feature set and don't need the biggest community
  • You prefer the AGPL-3.0 license terms
  • Your stack matches JavaScript
  • You evaluated both and openGym fits your workflow better

full openGym profile →

About casbin

Apache Casbin ==== News : still worry about how to write the correct Apache Casbin policy? Apache Casbin online editor is coming to help! Try it at: Apache Casbin is a powerful and efficient open source access control library for Golang projects. It provides support for enforcing authorization based on various access control models. All the languages supported by Apache Casbin: Table of contents Supported models How it works? Features Installation Documentation Online editor Tutorials Get started Policy management Policy persistence Policy consistence between multiple nodes Role manager Benchmarks Examples…

read the full casbin overview →

About openGym

A self hosted gym & body weight tracker you actually own. Plan your week, run guided workouts, track every set and your body weight over time — on your phone, synced across devices, behind your own passkey login. No account on someone else's server, no subscription, no ads. Just docker compose up . Home — today's workout & weight Guided workout — animated demos & sets Stats — heatmap, charts & PRs 🌐 opengym.duarte santos.ch · 📦 Source on GitHub · 🦊 GitLab mirror Screenshots, docs and the APK download live on the site. Want to poke at it first? The in browser demo is the real app with example data — no…

read the full openGym overview →

More in Security & Privacy

Related comparisons

More Identity & Access Management (IAM) projects

Compare either of these against the rest of the Identity & Access Management (IAM) field.

Frequently asked questions

Is casbin or openGym more popular?

casbin has 20,467 GitHub stars and openGym has 15,277. casbin has the larger community by that measure.

Are casbin and openGym free?

Both are open source. casbin is licensed under Apache-2.0 and openGym under AGPL-3.0. Neither carries a licence fee.

What is the difference between casbin and openGym?

casbin is written in Go and openGym in JavaScript. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.

Which should I choose, casbin or openGym?

Choose casbin if you want the larger community (20,467 stars) or its Apache-2.0 licence terms. Choose openGym if its feature set, stack or AGPL-3.0 licence fits better. Both are self-hostable.