Skip to content
pubscout

acanthis

2.0.0, released 8 weeks ago by serinus.app

A type-safe and composable data validation library for Dart and Flutter.

$ flutter pub add acanthis
Source repository

What it does

Acanthis provides validation for Dart built-in types and allows you to create custom validators. It supports schema composition, asynchronous validation checks, and JSON Schema/OpenAPI 3.1 exports.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to validate complex data structures or form inputs in Dart and Flutter.
  • You want composable, type-safe schema validation inspired by Zod.

Skip it when

  • You are looking for an all-in-one UI form builder widget.
  • You require code-generation based validation models (not documented).

Strengths

  • Type-safe and composable schema definitions
  • Supports synchronous and asynchronous validation
  • Can export schemas to JSON Schema 2020-12 and OpenAPI 3.1

Weaknesses

  • Relatively new package with frequent breaking changes in recent versions

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
4

No special native configuration or code generation steps documented.

import 'package:acanthis/acanthis.dart';

// Basic usage example not explicitly detailed in trimmed README

Alternatives

Packages that do the same job and could replace acanthis.

  • formz

    If you need a lightweight form validation library focused on individual form inputs and states.

Works with

Packages commonly used together with acanthis: ones it builds on, ones built on it, and its own family.