openui-forge-ruby

Integrate OpenUI with Ruby on Rails for real-time OpenAI API streaming.

20|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/OthmanAdi/openui-forge --skill openui-forge-ruby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openui-forge-ruby
Source: https://github.com/OthmanAdi/openui-forge/tree/main/.cursor/skills/openui-forge-ruby
Command: npx skills add https://github.com/OthmanAdi/openui-forge --skill openui-forge-ruby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rails, puma, dotenv-rails, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill solves the challenge of integrating OpenUI into existing Ruby on Rails applications, providing a streamlined approach to create generative UI apps with a Ruby backend.

Core Features & Use Cases

  • Ruby on Rails Backend: Offers seamless integration with Ruby on Rails for server-side processing.
  • OpenAI API Streaming: Forwarding OpenAI API responses in real-time via ActionController::Live.
  • System Prompt Generation: Automatically generates system prompts for the Rails app using @openuidev/cli.

Quick Start

Create the React frontend and install OpenUI dependencies:

npm install @openuidev/react-ui @openuidev/react-headless @openuidev/react-lang lucide-react zod

Generate the system prompt:

npx @openuidev/cli generate ./src/lib/library.ts --out config/system-prompt.txt

Create the Rails backend and run:

bin/rails server -p 3001

Frequently Asked Questions about openui-forge-ruby

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate OpenUI with a Ruby on Rails backend?

Integrate OpenUI with Ruby on Rails by using ActionController::Live to forward real-time OpenAI API streaming responses, while generating the required system prompt via the @openuidev/cli package for server-side processing.

How does SSE streaming work with OpenAI API responses in a Rails application?

SSE streaming in a Rails application works by utilizing ActionController::Live to maintain an open connection and forward OpenAI API responses to the frontend in real-time during generative UI component creation.

Do I need Node.js and React to build generative UI apps with a Rails backend?

Yes, building generative UI apps requires installing React frontend dependencies like @openuidev/react-ui and running the @openuidev/cli tool to generate system prompts before starting your Ruby on Rails server.

What is the best way to generate system prompts for a Ruby on Rails generative UI app?

The best way to generate system prompts for a Ruby on Rails generative UI app is using the @openuidev/cli package, which automatically creates prompt files from your frontend library definitions.

What dependencies are required to stream OpenAI API responses using Ruby on Rails?

Streaming OpenAI API responses using Ruby on Rails requires the rails, puma, and dotenv-rails dependencies to manage server-side processing, server execution, and environment variable configuration.

Can I use ActionController::Live for real-time OpenAI API forwarding in Rails?

Yes, ActionController::Live is the specific Rails module used for real-time OpenAI API forwarding, enabling SSE streaming to generate dynamic UI components directly within your Ruby-based application.