Documentation
Introduction

Introduction

Kronash is a powerful, flexible and easy-to-use task management library for JavaScript applications.

Born out of the need to simplify and enhance the management of setTimeout and setInterval, Kronash provides a high-level API to handle scheduling tasks with a wide array of options and control mechanisms. It takes away the verbosity of dealing with JavaScript's default timer functions, making your code cleaner and more intuitive.

Whether you need to create tasks that repeat at specified intervals, or simply delay certain operations, Kronash has got you covered. It even allows you to pause, resume, stop, and clear tasks whenever required, providing a level of control that's often difficult to handle manually.

Kronash empowers you to write more understandable and maintainable code when dealing with async operations, timers or delays.

Features

  • 🌍 Framework Agnostic: Works seamlessly with any JavaScript framework or library, or in a plain JavaScript environment. It's fully compatible with popular libraries like React, Vue, and Angular.
  • 🚀 Easy Task Creation: Quickly set up tasks with desired settings.
  • 🕹️ Full Task Control: Start, pause, resume, stop, or remove tasks as needed.
  • 👀 Observer Pattern Support: Get updates on task state changes by subscribing to events.
  • 🔗 Chainable API: Enables concise and logical code structure.
  • 💅 TypeScript Support: Fully compatible with TypeScript for robust typing support.

Motivation

The goal of Kronash is to simplify your workflow, reduce mistakes, and increase productivity by providing an efficient and easy-to-use system for time-bound tasks. Whether you're building a major project or a quick prototype, we believe this library will be a valuable addition to your toolkit.

Browse this documentation to understand how Kronash can be used in your applications, learn about its API, and see some examples of it in action.