Skip to content

PFMCODES/neutronium

Repository files navigation

⚛️ Neutronium v3.4.5

Ultra-dense JavaScript framework – maximum performance, minimal overhead

npm Version License Website Playground Documentation


🎉 What’s new in v3.4.5

  • ⚡ Faster compilation for complex projects
  • useState and useEffect hooks
  • ⚛️ React-like JSX syntax for easier switching
  • 🌐 Browser-safe compilation via /sandbox.mjs
  • 🖼️ Apply favicon programmatically
  • 📦 Massive package size reduction using .npmignore

ℹ️ About

Neutronium is a lightweight, high-performance JavaScript framework built for developers who want explicit control, predictable behavior, and zero unnecessary abstractions.

It offers React-like ergonomics without a virtual DOM, build step, or heavy runtime.

Ultra-fast ⚡ · Tiny footprint 📦 · No build tools 🛠️ · Pure JavaScript ✨


✨ Features

  • Blazing fast rendering
  • 🧠 Simple, predictable component logic
  • 🔌 No dependencies and no virtual DOM
  • 📦 Tiny footprint (~57.7 kB unpacked)
  • 🧩 TypeScript types (~4.35 kB)
  • 🛠️ Works directly in the browser
  • 🔁 JSX-style component structure
  • 🌐 Sandboxed browser compiler

📦 Installation

Install the Neutronium runtime:

npm install neutronium

Install the CLI globally(optional, recommended):

npm install neutronium -g

🛠️ Create a Project

neu-cli create-app my-app
cd my-app

🚀 Usage Example

// App.js
import { createApp } from 'neutronium' // or ts-neutronium for TypeScript

function Greeting({ name }) {
  return <h2>Hello, {name}!</h2>;
}

export default function App() {
  return (
    <>
      <h1>Welcome to Neutronium</h1>
      <Greeting name="yourName" />
    </>
  );
}

createApp(App).mount('body');

🧪 Result

Result

Browser Sandbox

Neutronium provides a browser-safe compiler for live environments such as playgrounds:

import { compile } from "neutronium/sandbox.mjs";

const result = compile(code);

This allows Neutronium code to be compiled without Node.js, making it ideal for online editors and sandboxes.


📚 Documentation & Links


📦 Packages Built with Neutronium


🐞 Found a Bug or Issue?

Please report it here: 👉 https://github.com/PFMCODES/neutronium/issues/new


License

MIT © PFMCODES

About

Ultra-dense JavaScript framework – maximum performance, minimal overhead

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors