@knyt/tasker
v0.4.0
Published
A system for creating reusable, stateful logic controllers compatible with Lit.
Maintainers
Readme
🔌 A collection of Lit-compatible reactive controllers for Knyt, providing a system for creating reusable, stateful logic controllers.
This package is part of Knyt, a toolkit designed to simplify modern web development.
Key Features
- Lit-Compatible Controllers:
ReactiveControllersystem with lifecycle integration - Reactive State: Hydratable state with computed/mapped values & effects
- Lifecycle Mixins: Controllable adapters for observable state & updates
- Host Utilities: Reactive subscriptions & listener management
- Universal Rendering: SSR + client-side compatible execution
- Essential Controllers: Provides controllers for features such as hotkeys, async DOM events, and dynamic style handling
Documentation
Documentation is available at knyt.dev, including guides for:
Usage
To create a simple counter custom element, you could use the following code:
Install
You can use this package by installing either the Knyt Toolkit or this standalone package.
Knyt Toolkit:
npm install knytStandalone:
npm install @knyt/taskerUpdates
See the CHANGELOG for a list of changes.
License
This package is licensed under the BSD 3-Clause License.
Open-Source Initiative
This project is supported by Sables Applications LLC as part of its open-source initiatives.
