Tired of JSX, Babel, and slow builds? Sigment is a new lightweight JavaScript framework that brings fast, fine-grained reactivity β with zero boilerplate.
β¨ Why Sigment?
Most frontend frameworks today rely on concepts like Virtual DOM, JSX, transpilers like Babel, and heavy build pipelines. While powerful, they introduce complexity and slow down compile time β especially in large projects with many components.
Sigment was built to break that cycle:
-
Zero JSX or Transpilers β use plain JavaScript tag functions like
div() - No Virtual DOM β DOM updates are direct and efficient
- Signal-Based Reactivity β inspired by fine-grained reactivity systems like SolidJS
- Faster Compilation β no need for Babel or JSX transforms means drastically faster builds
π§ Core Concepts
1. Clean, Functional Syntax
function Hello() {
return div("Hello, world!")
}
2. Signals Made Simple
const [count, setCount] = signal(0);
const view = div(
button({ onClick: () => setCount(count + 1) }, "+1"),
p(() => `Count is ${count}`)
);
3. No JSX
Just plain JavaScript. What you write is what the browser sees β no build tools required.
π Runtime Performance
Sigment skips the diffing and reconciliation of Virtual DOM entirely. This leads to:
- Lower memory usage
- Faster startup and update times
- Easier debugging (no abstraction between your code and the DOM)
π¦ Automatic Optimization
Sigment includes built-in strategies for optimal rendering:
- Components are automatically cached when loaded at runtime
- Global state is simple and signal-based β no need for Redux
- Use
navigateTo("dashboard", true)to preserve state across views
Memoization isn't needed by default, but if a component is heavy, you can use memoizeFunc() explicitly to optimize it.
π Project Setup
You can start using Sigment in seconds:
npx create-sigment-app my-app
cd my-app
npm run dev
Built with TypeScript and Vite under the hood, but you can also run it without a build step if you prefer.
π§ Designed for Humans
Sigment is ideal for developers who want simplicity, speed, and full control over the DOM β without giving up reactivity.
- No more bloated configs
- No JSX mental overhead
- No virtual DOM penalty
- No Babel or transpile time β compilation is instant
Sigment architecture
Sigment architecture support spa(single page application)
or developer can choose "HTML first architecture" what calls Islands.
π Learn More
Made with β€οΈ by developers who love simplicity.
Tags: #javascript #webdev #frontend #framework
Top comments (5)
I will have to give this a try. Iβm always looking for new ideas for my future projects. Thank you!
thanks
Awesome work! I really appreciate the explanation behind Sigmentβs design choices. Definitely something I want to try out.
Thank you for Sigment, definitely something I want to try out. However, backend I can use is PHP.
Sure, you can use whatever you want in the backend