Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Levelo JS Logo

Levelo JS

Made by Motion Mind NPM version License

💥 What's New (v2.1.0 - Hot Topics)

Click to expand what's new in v2.1.0! 🚀

The performance and stability update is here! We've dropped major architectural enhancements to make Levelo JS scale beautifully in production:

  • ⚡ Optimized State Mutations via batch(): Group multiple synchronized state updates seamlessly. Instead of triggering expensive incremental DOM rerenders for every individual mutation, the framework now queues changes and flushes them in a single cycle—drastically improving efficiency during high-frequency updates and loops.
  • 📝 Form Controls Fix (Dynamic Value Tracking): Fixed a structural bug in dom.ts where <input>, <textarea>, and <select> elements lost reactive synchronizations with state values. Forms are now fully safe and reactive.
  • 📦 Ecosystem Modularity: vite-plugin-levelojs has been completely modularized into a standalone independent workspace package for better project scaffolding and clean build cycles.

Getting Started

Levelo JS is a lightweight, ultra-fast reactive JavaScript framework built for speed and simplicity. No Virtual DOM. Direct Real DOM. Powered by Motion Mind.

Using CLI (Recommended)

Scaffold a complete Levelo JS project instantly:

npx create-levelo-app my-app
cd my-app
npm install
npm run dev

Manual Installation

Add Levelo JS to an existing project:

npm install levelojs 

Quick Start

import { render } from 'levelojs';
import Mind from './Mind.jsx';

render(Mind, document.getElementById('app'));
import { state } from 'levelojs';

function Counter() {
  const [count, setCount] = state(0);

  return (
    <div>
      <h2>{count()}</h2>
      <button onclick={() => setCount(count() + 1)}>
        Level Up ➔
      </button>
    </div>
  );
}

export default Counter;

Features

  • No VDOM / No Reconciliation - Reactive updates never rebuild, compare, or reconcile UI trees; existing native nodes are updated directly.
  • Fine-grained Reactivity - Individual reactive bindings update only the native nodes and properties that depend on them.
  • Hierarchical Ownership - Native tracking scopes ensure nested reactions dispose properly with zero memory leaks.
  • TypeScript Powered - Complete internal codebase rewrite into strict, type-safe structures.
  • JSX Support - Standard developer-friendly component structuring with seamless reactive attribute bindings.
  • Vite-integrated - Pre-configured for instantaneous Hot Module Replacement (HMR) and optimized distribution builds.

Core API

API Type Description
state Primitive Creates a reactive state atom with a getter/setter tuple.
effect Side Effect Tracks active reactive dependencies and re-executes automatically.
computed Memoization Derives stateful values efficiently using caching mechanics.
cleanup Lifecycle Registers disposal routines inside active tracking ownership contexts.
mount Lifecycle Schedules code execution precisely after layout nodes paint to the Real DOM.
batch Performance Groups multiple state mutations together into a single microtask to optimize DOM updates.
head SEO Management Dynamic, component-driven configuration for document metadata layers.
render Bootstrapper Injects and mounts the root structural component tree to a DOM container.
h Factory Real DOM internal hyperscript generator (compiler-targeted).

Packages

Package Description Version
levelojs Core framework library npm
create-levelo-app Official project scaffolding CLI npm
vite-plugin-levelojs levelojs vite plugin npm

License

This project is licensed under the MIT License © Motion Mind.


Built with ⚡ by Motion Mind

About

A multiplatform development framework for building applications with a unified architecture across Web, Android, and other platforms.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages