A system for creating reusable, stateful logic controllers compatible with Lit.
npm install @knyt/tasker
š 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.



!Built with TypeScript
!Built for The Web
- Lit-Compatible Controllers: ReactiveController system 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 is available at knyt.dev, including guides for:
- Reactivity
- Controllers
- Lifecycle
To create a simple counter custom element, you could use the following code:
``ts
`
You can use this package by installing either the Knyt Toolkit or this standalone package.
_Knyt Toolkit:_
`sh`
npm install knyt
_Standalone:_
`sh``
npm install @knyt/tasker
See the CHANGELOG for a list of changes.
This package is licensed under the BSD 3-Clause License.
This project is supported by Sables Applications LLC as part of its open-source initiatives.