Skip to content

compiler-first reactive ui engine: transforms jsx into fine-grained reactive javascript with zero virtual dom, optional runtime under 1kb, and rust-powered compilation for extreme speed and precision.

Notifications You must be signed in to change notification settings

pavanscales/nullreact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

nullReact

🧬 Zero-Runtime · ⚡ Compiler-First · 🧠 Fine-Grained Reactivity
Built in Rust. Outputs <1KB JS. Blazing-fast.

MIT License Built with Rust npm


nullReact is a new kind of web framework — not a library, but a compiler-first engine.
It compiles JSX into zero-runtime, reactive JavaScript, with fine-grained signal-based updates — all under 1KB.

Perfect for those who demand raw performance, minimalism, and full control.


🚀 Why nullReact?

  • 🛠 Compiler-First — JSX is compiled to highly-optimized JavaScript.
  • 🧠 Signals + Effects — Fine-grained reactivity without component rerenders.
  • 🚫 No Virtual DOM — Direct DOM operations. Real speed.
  • 🧳 Minimal Runtime — Optional runtime under 1KB.
  • 🦀 Rust-Powered — Fast, safe, and parallel compilation.

🔧 Quick Start

# Clone the repo
git clone https://github.com/pavanscales/nullreact
cd nullreact

# Build the compiler
make build

# Run benchmarks
make bench

📁 Folder Structure

nullreact/
├── src/
│   ├── lib.rs           # CLI entry + compiler pipeline
│   ├── jsx.rs           # JSX parser → AST
│   ├── emitter.rs       # AST → optimized JS code
│   ├── signals.rs       # Fine-grained reactivity (signals + effects)
│   ├── runtime.js       # Optional DOM runtime
│   └── bench.rs         # Micro-benchmark tests
├── dist/                # Compiled JS output
│   └── runtime.js       # Runtime shipped separately
├── examples/            # Real-world JSX demos
│   ├── 1m-signals.jsx   # 1 million signals benchmark
│   └── 10k-filter.jsx   # 10,000-item filtering demo
├── Makefile             # Tasks: build, test, bench
├── README.md            # You're here
├── LICENSE              # MIT License
└── .gitignore

📊 Benchmarks

Test React nullReact
1 Million Signals ❌ Crashes ✅ Instant
10k Filter Updates ⚠️ Laggy ✅ Smooth
Cold Start Runtime ~43KB <1KB

⏱ Benchmark runs: make bench


📣 Philosophy

  • 🔥 Reactivity should be compiled, not interpreted.
  • 📦 Runtimes should be opt-in, not bloated.
  • 📏 Performance should be measurable, not theoretical.

📜 License

MIT © Pawan Pediredla


💬 Get Involved

Have ideas? Found bugs? Want to help build the next-gen compiler-based UI engine?

Join the DiscussionCreate an IssueStar the Repo ⭐


Built with ❤️ to change how the web thinks about reactivity.


---

About

compiler-first reactive ui engine: transforms jsx into fine-grained reactive javascript with zero virtual dom, optional runtime under 1kb, and rust-powered compilation for extreme speed and precision.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published