kaisel_core

codecov

The pure-Dart navigation core for the kaisel router. No Flutter dependency.

kaisel_core holds the parts of kaisel that don't need widgets:

  • KaiselRoute — the sealed-route base with default props-based equality.
  • KaiselRouter — the stack-as-state container (push, pop, replaceTop, set, typed main-stack results via pushForResult<T>, modal flows via run<T>), built on a small pure-Dart change-notifier.
  • KaiselGuard — the composable guard pipeline.
  • URL codecsKaiselCodec, KaiselStackCodec, KaiselConfigCodec, ModuleStackCodec, and the KaiselConfig model.

Because it has no Flutter dependency, this logic is testable with package:test alone and usable from non-Flutter Dart.

Using it

Most apps should depend on kaisel (the Flutter package), which re-exports everything here plus the widgets:

dependencies:
  kaisel: ^0.19.0

Depend on kaisel_core directly only if you want the navigation logic without Flutter. See the kaisel README for the full guide.

lib/framework.dart exposes framework-facing internals to the kaisel package. It is not part of the public API — application code should not import it.

License

Apache-2.0 © 2026 Codefarmer.

Libraries

framework
Framework-facing internals that kaisel_core exposes to the kaisel Flutter package.
kaisel_core
Pure-Dart navigation core for the kaisel router.