Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

plain

> 编程语言
Open source

Ruby on Plain --- What is this Ruby on Plan rails engine Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant f…

99 stars0 likes0 views
WebsiteGitHub

About

Ruby on Plain --- What is this Ruby on Plan rails engine Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant f…

Ruby on Plain


What is this Ruby on Plan rails engine

Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant for your Rails project. It's not just about organizing your codes or managing your project structure, but about providing deeper, more meaningful context to your work, in real-time. It was proudly developed and presented during the esteemed Rails Hackathon 2023.

This is an example of plain operating in Rauversion.com project

https://github.com/chaskiq/plain/assets/11976/87f0d62d-d63a-45d9-91e2-b8878542c4ee

Usage

How to use my plugin.

Installation

Add this line to your application's Gemfile:

ruby
gem "plain-rails"

or development version

ruby
gem "plain-rails", github: "chaskiq/plain", branch: "main"

Overview

Plain is a Rails engine that serves as an Artificial Intelligence (AI) assistant for your Rails project. It's not just about organizing your codes or managing your project structure, but about providing deeper, more meaningful context to your work, in real-time. It was proudly developed and presented during the esteemed Rails Hackathon 2023. Special Kudos to @claunicole, @silva96

Functionality

The most salient feature of Plain is its capability to analyze your project on the go. Using AI, it can instantly provide explanations and insights about various aspects of your Rails project, effectively becoming an intelligent companion during your development process.

Documentation Site

Beyond just an AI assistant, Plain acts as a comprehensive documentation site. What sets Plain apart is its ability to take markdown files and seamlessly integrate them into the documentation site. No more disjointed files and folders, everything is displayed on a beautifully designed, user-friendly site. This enables developers to add, modify, or access documentation effortlessly and intuitively.

Getting started

Install Migrations:

rails plain:install:migrations

Configuration:

Put the following on config/initializers:

config/initializers/plain.rb

…

For the above configuration some environment configuration variables would be required:

bash
QDRANT_URL = 
QDRANT_API_KEY = 
QDRANT_INDEX = 
OPENAI_API_KEY =

You can get a free account on the https://qdrant.tech/. For other vector search please refer to langchainrb repo https://github.com/andreibondarev/langchainrb#using-vector-search-databases-

Load information to Index:

rails plain:load

Mount Doc site:

In config/routes.rb mount the engine:

mount Plain::Engine => "/plain"

in app/assets/config/manifest.js

add

javascript
//= link plain.css

Documentation site.

Plain provides a documentation site that can be populated via markdown files with front-matter support, how it works.

Place your markdowns on a docs folder on your project's root. also you can add a main configuration file, for example:

The documentation site will be served at localhost:3000/plain/docs

Documentation side main config

Put this on /docs/config.yml

yaml
name: "Plain docs"
logo: "logo.png"
chat_envs: 
  - "development"
  - "test"
links:
  -
    name: "Start us on github"
    url: "https://github.com/xxx/rxxx
  - 
    name: "X"
    url: "https://x.com/xxx"
footer:
  legend: "xxxx © Copyright 2023 . All rights reserved."
  links:
    - 
      name: "Twitter / X"
      url: "https://twitter.com/xxx"
    - 
      name: "IG"
      url: "https://instagram.com/xxx"
sections:
  - 
    name: "getting_started"
    position: 1
    items:
      - 
        name: "oli"
        path: "aaa"
        description: "hello there"

Static compilation of documentation site:

If you want to have a static (HTML) version of the documentation site you can run the following command:

bash
rails plain:site:compile

This will create a folder on public/static-plain/docs

Right now the script will assume that the site is at plain/docs so it will hit that endpoint, Eventually we will add some options to customize that.

Development:

bin/rails plain:tailwind_engine_watch --trace

License: MIT

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言