Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Quick Start

Get up and running with Rudra Code in 5 minutes.

Option 1: Rust Library

cargo add s1engine
#![allow(unused)]
fn main() {
use s1engine::{Engine, DocumentBuilder, Format};

// Open a DOCX file
let engine = Engine::new();
let data = std::fs::read("report.docx")?;
let doc = engine.open(&data)?;
println!("{}", doc.to_plain_text());

// Create a document programmatically
let doc = DocumentBuilder::new()
    .title("My Report")
    .heading(1, "Introduction")
    .text("Built with Rudra Code.")
    .build();

// Export to PDF
let pdf_bytes = doc.export(Format::Pdf)?;
std::fs::write("output.pdf", pdf_bytes)?;
}

Option 2: npm / WASM (Browser)

npm install @rudra/wasm
import init, { WasmEngine } from '@rudra/wasm';

await init();
const engine = new WasmEngine();
const doc = engine.create();
const html = doc.to_html();

Option 3: Docker (Full Editor)

docker run -p 8787:8787 rudra/editor

Open http://localhost:8787 in your browser.

Next Steps