
rage-rb/rage
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
rage-rb/rage — это кандидат на навык агента, импортированный из https://github.com/rage-rb/rage.
Обзор
rage-rb/rage — это кандидат на навык агента, импортированный из https://github.com/rage-rb/rage.
Обзор (машинный перевод)
Rage — это веб-фреймворк Ruby, ориентированный на API, который сочетает опыт разработчиков Rails с оптоволоконной параллелью. Вы пишете стандартный синхронный код на Ruby — Rage управляет параллелизмом, запуская API, фоновые задания и WebSockets в одном процессе с меньшим количеством движущихся частей.
Rage использует совместимость с Rails как основу и предоставляет бэкенд-примитивы, оптимизированные для одновременной модели: фоновые задания в процессе, масштабируемые WebSockets и SSE-потоки, объектно-ориентированные доменные события и автоматическую документацию API.
Почему ярость
Современные бэкенды — это не просто циклы запросов и ответов. Они требуют:
- Асинхронное исполнение
- Бэкграундные вакансии
- Связь в реальном времени
- Наблюдаемость и телеметрия
- Чёткие границы доменов
В экосистеме Ruby эти проблемы обычно подразумевают больше инфраструктуры: Redis, Sidekiq, отдельные рабочие процессы, кастомные решения для логирования и несколько блоков развертывания.
Rage использует другой подход: сводить проблемы бэкенда в единое время выполнения, принимая модель параллелизма на основе оптоволокна Ruby. Это снижает операционную сложность, сохраняя привычную эргономику Ruby.
Ключевые возможности
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Rage
Rage is an API-first Ruby web framework that combines the developer experience of Rails with fiber-based concurrency. You write standard synchronous Ruby code - Rage handles the concurrency, running APIs, background jobs, and WebSockets in a single process with fewer moving parts.
Rage uses Rails compatibility as a foundation and provides backend primitives optimized for a single-runtime model: background jobs that run in-process, scalable WebSockets and SSE streams, object-oriented domain events, and automatic API documentation.
Why Rage
Modern backends are more than request/response cycles. They require:
- Asynchronous execution
- Background jobs
- Real-time communication
- Observability and telemetry
- Clear domain boundaries
In the Ruby ecosystem, these concerns typically mean more infrastructure: Redis, Sidekiq, separate worker processes, custom logging solutions, and multiple deployment units.
Rage takes a different approach: collapse backend concerns into a single runtime by embracing Ruby’s fiber-based concurrency model. This reduces operational complexity while keeping familiar Ruby ergonomics.
Key Capabilities
- Rails Compatibility - Familiar controller API, routing DSL, and conventions. Migrate gradually or start fresh.
- True Concurrency - Fiber-based architecture handles I/O without threads, locks, or async/await syntax. Your code looks synchronous but runs concurrently.
- Zero-dependency WebSockets - Action Cable-compatible real-time features that work out-of-the-box, with built-in IPC for multi-process deployments.
- Server-Sent Events - Native SSE streaming with no external dependencies. Built for live feeds, progress updates, and LLM response streaming.
- Auto-generated OpenAPI - Documentation generated from your controllers using simple comment tags.
- In-process Background Jobs - A durable, persistent queue that runs inside your app process. No external dependencies or separate worker processes required.
- Built-in Observability - Track and measure application behavior with
Rage::Telemetry. Integrate with external monitoring platforms or build custom observability solutions.
Installation
Install the gem:
$ gem install rage-rb
Create a new app:
$ rage new my_app
Switch to your new application and install dependencies:
$ cd my_app
$ bundle install
(Optional 🤖) Install agent skills:
$ rage skills install
Start up the server and visit http://localhost:3000.
$ rage s
Start coding!
How It Works
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add rage-rb/rage