Maverick.js is a collection of JavaScript/TypeScript libraries designed for building fast, type-safe, and highly reactive UI component libraries and web applications. Its core is the `@maverick-js/signals` package, a lightweight (~1KB minzipped) and extremely performant reactivity system inspired by SolidJS and Svelte. This signals library provides primitives like `signal`, `computed`, and `effect` for fine-grained, lazy, and batched updates, working seamlessly across browsers and Node.js. The ecosystem also includes `@maverick-js/elemental` for creating reactive Web Components with JSX and Server-Side Rendering (SSR) support, and `@maverick-js/maverick` as the main UI component library which leverages these foundations. The project is actively developed, with version 0.43.2 being the current stable release, demonstrating frequent patch and minor updates. Its key differentiators include minimal bundle size, strong TypeScript support, and a focus on web standards while providing a highly efficient reactive programming model.
npm install maverick.jsVerified import paths — ran on the pinned version, not inferred.
Demonstrates creating a reactive Web Component using `@maverick-js/signals` to manage and display an incrementing counter, including proper lifecycle cleanup.
Access and update signal values via `signal()` for reading and `signal.set(newValue)` or `signal.update(prev => ...)` for writing.
For synchronous updates, `import { tick } from '@maverick-js/signals'; tick();`. Otherwise, rely on the default microtask scheduling.Always use `@maverick-js/signals`, `@maverick-js/elemental`, or `@maverick-js/maverick` for imports and documentation. Double-check npm package names.
Verify that the variable `signal` is correctly imported and instantiated with `const mySignal = signal(initialValue);` and is accessible in the current scope.
Ensure your `tsconfig.json` has `"jsx": "react-jsx"` or `"jsxFactory": "h"` and that your bundler/compiler is set up to transpile JSX using the appropriate factory function for Maverick.js/Elemental.
No dependency data recorded yet.