Skip to content

अपने app को Rails पर migrate करें।साबित करें कि वह वैसा ही चलता है।

Rails Anything record करता है कि आपका app क्या करता है, फिर हर recorded request और call को Rails port पर replay करता है। Ruby आपका agent लिखता है। जब तक outputs मेल नहीं खाते, कुछ ship नहीं होता।

या इसे अपने coding agent में paste करें

Rails Anything को npm i -g rails-anything से install करें, फिर rails-anything setup चलाएँ। rails-anything go -- <command that starts this app> चलाएँ और port तब तक पूरा करें जब तक rails-anything gate --app pass न हो जाए।

Source भाषा
Rails Anything
recordHTTP
replay100%
gatepass
Rails
Controller
ERB view
Turbo Frame
Stimulus
JavaScript, Kotlin, C#, PHP, Rust, Swift
TypeScriptsrc/routes/orders.tsTypeScript route front door के पीछे Rails पर जाता है। Replay: 100%match
Rails 8 · Hotwire · Tailwind CSS · daisyUI
10
source भाषाएँ: TypeScript, JavaScript, Python, Go, Java, Kotlin, C#, PHP, Rust और Swift
8
coding agents एक ही command से सेट: Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot, Cline
100%
recorded cases मेल खाने चाहिए, तभी कोई हिस्सा gate pass करता है
0%
original पर fallback होना चाहिए, तभी app lift के बाद सिर्फ़ Rails app बचता है

Install

CLI install करें, फिर skill और MCP server को Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot और Cline में जोड़ें।

  1. 01

    CLI install करें

    $npm install -g rails-anything
    $rails-anything setup

    npm से एक package।

  2. 02

    इसे अपने agent में register करें

    rails-anything setup skill और MCP server को Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot और Cline में जोड़ता है।

  3. 03

    अपना toolchain जाँचें

    rails-anything doctor Ruby, Rails और आपके original को चाहिए runtimes जाँचता है।

rails-anything goPort करता हैMigration को अगले stage पर ले जाता है और आपके agent के लिए अगला task लिखता है
rails-anything analyzePlan करता हैRoutes, templates, waves में functions, dependencies और फ़ैसले
rails-anything app recordRecord करता हैहर request का जवाब सेव करता है, side effects के साथ
rails-anything gateरोकता हैपूरा तभी जब gate pass हो: हर case मेल खाए, rubocop और brakeman pass हों
rails-anything app liftShip करता हैProxy हटाता है और सिर्फ़ Rails app छोड़ता है

Recording के दौरान original का असली code चलता है। एक copy पर काम करें, test database के साथ (--db-reset "<command>")।

Port कैसे पूरा होता है

Original ही source of truth रहता है। Rails Anything code translate नहीं करता: यह behavior record करता है, app को Rails front door के पीछे चलता रखता है, और एक gate बताता है कि हर हिस्सा कब पूरा हुआ।

आपका appNode, Python, Go, Java, PHP और भी
Rails Anything app record
  • हर HTTP जवाब या CLI output record करता है
  • आपके अपने test suite को cases में बदलता है
  • Outgoing HTTP, email और DB rows capture करता है
Rails Anything front-door
  • Tailwind और daisyUI के साथ rails new चलाता है
  • जो routes port नहीं हुए उन्हें original पर proxy करता है
  • हर route को एक kill switch मिलता है
Rails Anything diff, gate
  • हर recorded case replay करता है
  • Pages visible text से, JSON हूबहू मिलाया जाता है
  • Gate stubs और paste किए गए जवाबों को रोकता है
Rails Anything app lift
  • Replay 100% पर टिका रहता है
  • Fallback rate शून्य तक गिरता है
  • Proxy हटता है; सिर्फ़ Rails बचता है
Rails 8 appHotwire, Tailwind, daisyUI
rails-anything app record . --http -- npm startrails-anything app wire . ordersrails-anything gate . --apprails-anything app lift .

Recording क्या पकड़ती है

एक उदाहरण: checkout route के पहले port में receipt email भेजना छूट गया। Page सही दिख रहा था, पर replay fail हुआ।

~/shop
# original को record करें, side effects समेत
$ rails-anything app record . --http --effect-env SMTP_HOST=smtp_host -- npm start
$ rails-anything app front-door .
# आपका agent route port करता है, फिर:
$ rails-anything app wire . checkout
$ rails-anything app replay .
$ rails-anything gate . --app
# replay, पहला port
POST /checkout: status और page text मेल खाते हैं
- POST /checkout: expected 1 email to buyer@example.test, got 0

# original ने एक email भेजा;
# Rails port ने एक भी नहीं।

# agent के mailer जोड़ने के बाद:
# हर case मेल खाता है, और gate pass होता है

भाषाएँ

भाषा और framework repository से पहचाने जाते हैं। analyze routes, templates और functions को waves में list करता है, और हर dependency को उसके Rails equivalent के साथ।

इसे आज़माएँ अपने app पर।

Free और open source। आपका original ही judge रहता है, और एक switch किसी भी route को वापस उस पर भेज देता है।