An alternative to nested_sets and acts_as_tree. Designed to be a drop in replacement for acts_as_tree. Replaces betternestedset without the slow inserts when dealing with a large dataset. Used by upillar.com on a dataset of over 900,000 categories with no slow downs. In tests it shows a 285% speed increase on inserts with a dataset of 100k categories. As datasets become larger its insert speed stays about the same when nested_sets become slower. In all of my tests read speeds have been comparable with nested sets on everything but all_children which takes is inperceptibly slower on a dataset of 100k than betternestedset.
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/elorest/acts_as_better_tree?utm_source=readme_chart)
Compact Shields-style badges for your README header. Shows real-time stars and global ranking.
[](https://githubrepo.cloud/repo/elorest/acts_as_better_tree?utm_source=readme_badge) [](https://githubrepo.cloud/repo/elorest/acts_as_better_tree?utm_source=readme_badge) [](https://githubrepo.cloud/repo/elorest/acts_as_better_tree?utm_source=readme_badge)
Momentum
+10
STARS · LAST 30 DAYS
1
PER DAY
#5,775
MOST-STARRED Ruby
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +7 | +10 | +90 |
| Per day | 1 | 1 | 1 |
| Forks gained | +1 | +3 | +10 |
acts_as_better_tree gained 10 stars in the last 30 days, about 1 a day, and now has 2. It is about 17 years old and has averaged roughly 0 stars a year. It ranks #5,775 among Ruby repositories and #29,862 across all languages on GitHubRepo.
Trending Record
6
DAYS ON TRENDING
#30715
BEST RANK
Oct 14, 2026
FIRST APPEARANCE
Active
STATUS TODAY
acts_as_better_tree has maintained a continuous presence across global trending indexes, peaking at #30715. Below is the 30-day activity profile:
💡 Overview
acts_as_better_tree is an open-source project written in Ruby: An alternative to nested_sets and acts_as_tree. Designed to be a drop in replacement for acts_as_tree. Replaces betternestedset without the slow inserts when dealing with a large dataset. Used by upillar.com on a dataset of over 900,000 categories with no slow downs. In tests it shows a 285% speed increase on inserts with a dataset of 100k categories. As datasets become larger its insert speed stays about the same when nested_sets become slower. In all of my tests read speeds have been comparable with nested sets on everything but all_children which takes is inperceptibly slower on a dataset of 100k than betternestedset. .
Engineered for speed, consistency, and developer ease, it solves common hurdles in Ruby. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in Ruby for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ git clone https://github.com/elorest/acts_as_better_tree.git
cd acts_as_better_tree
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
Ruby >= 3.1 with Bundler
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
acts_as_better_tree coordinates its core functionality through a modular Ruby pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Production System Integration
Embed acts_as_better_tree into Ruby backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open MIT license.
🚀 Getting Started
Install acts_as_better_tree using your package manager: `git clone https://github.com/elorest/acts_as_better_tree.git`
Initialize your project workspace or configuration file for acts_as_better_tree.
Import acts_as_better_tree into your codebase or invoke it directly from your terminal.
Execute your test suite or run `acts_as_better_tree --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with Ruby, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
elorest/acts_as_better_tree is currently ranked #29,862 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #27,987 | nathos/iui | JavaScript | ★ 3 | Compare ↗ |
| #27,987 | kritik/2dc_jqgrid_rails3 | JavaScript | ★ 3 | Compare ↗ |
| #27,987 | rjmunro/freej-python | Python | ★ 3 | Compare ↗ |
| #27,987 | fatalmind/hatools | C | ★ 3 | Compare ↗ |
| #27,987 | siyelo/blogify | Ruby | ★ 3 | Compare ↗ |
| #29,862 | elorest/acts_as_better_tree This Project | Ruby | ★ 2 | |
| #29,862 | pdsphil/ruby-merlin | Ruby | ★ 2 | Compare ↗ |
| #29,862 | daaku/tempdir | Ruby | ★ 2 | Compare ↗ |
| #29,862 | morgs/poll-builder | Python | ★ 2 | Compare ↗ |
| #29,862 | locusf/monotooth | HTML | ★ 2 | Compare ↗ |
| #29,862 | xman/utility | Shell | ★ 2 | Compare ↗ |
Frequently Asked Questions
What does acts_as_better_tree do? +
An alternative to nested_sets and acts_as_tree. Designed to be a drop in replacement for acts_as_tree. Replaces betternestedset without the slow inserts when dealing with a large dataset. Used by upillar.com on a dataset of over 900,000 categories with no slow downs. In tests it shows a 285% speed increase on inserts with a dataset of 100k categories. As datasets become larger its insert speed stays about the same when nested_sets become slower. In all of my tests read speeds have been comparable with nested sets on everything but all_children which takes is inperceptibly slower on a dataset of 100k than betternestedset.
What language is acts_as_better_tree written in? +
The primary language is Ruby. Topics include: software.
Is acts_as_better_tree actively maintained? +
Yes, the last recorded push was on Apr 22, 2025 with 1 open issues being tracked.
How many stars does acts_as_better_tree have? +
acts_as_better_tree has 2 stars and 1 forks on GitHub.
How does acts_as_better_tree rank among GitHub repositories? +
With 2 stars, elorest/acts_as_better_tree is ranked #29,862 globally across all repositories tracked on GitHubRepo and #5,775 among Ruby projects.
What license is acts_as_better_tree distributed under? +
The repository reports a MIT license. Always verify the repository LICENSE file for legal terms.