Search packages, repositories and app categories

Package detailsv1.0.0

schemantic

A lightweight library for type-safe data classes and runtime JSON Schemas, with built-in serialization and validation.

AndroidiOSLinuxmacOSWebWindows
30-day downloads
39.3K
Likes
12
Pub points
160

Install package

flutter pub add schemantic

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Schemantic is a lightweight Dart library that enables type-safe data classes with built-in runtime JSON schemas, serialization, and validation. It helps developers define structured data models that are automatically validated against schema definitions, reducing errors in data handling. Ideal for applications requiring robust data integrity, especially when working with APIs or configuration files. The library supports all major platforms and integrates seamlessly into Flutter and other Dart projects.

Use cases

  • API data modeling
  • configuration management
  • form validation
  • data persistence
  • schema-driven UI rendering

Key features

  • Type-safe data classes
  • Runtime JSON schema validation
  • Automatic serialization/deserialization
  • Schema-first development
  • Cross-platform support

Suitable for

  • Developers prioritizing data integrity
  • Projects with complex JSON structures
  • Teams using schema-driven workflows
  • Applications requiring runtime validation
  • Flutter apps handling API responses

Considerations

  • Requires understanding of schema definitions
  • May add slight overhead for simple data types
  • Best suited for projects with structured data needs
  • Limited to JSON-based data formats
  • Not ideal for unstructured or dynamic data

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Genkit logo
Genkit Dart
AI SDK for Dart • LLM Framework • AI Agent Toolkit

Build production-ready AI-powered applications in Dart with a unified interface for text generation, structured output, tool calling, and agentic workflows.

Documentation • Discord


Using a coding agent? Install the skill.

Before you write a line of Genkit Dart with an agent, install the official Genkit Dart Agent Skill:

npx skills add genkit-ai/skills --skill developing-genkit-dart

It teaches your agent the current Genkit Dart APIs (flows, tools, agents, sessions, prompts, plugins, schemantic) and common gotchas. Source, manual install instructions, and skills for JS/TS, Go and Python: github.com/genkit-ai/skills.


See the Genkit package documentation for getting started, guides, and API reference.

Package Description Pub
genkit The Genkit framework: flows, tools, prompts, structured output, agents, and a client for calling deployed flows. Pub
genkit_google_genai Google AI plugin for Genkit Dart. Pub
genkit_vertexai Vertex AI plugin for Genkit Dart. Pub
genkit_anthropic Anthropic plugin for Genkit Dart. Pub
genkit_openai OpenAI plugin for Genkit Dart. Pub
genkit_chrome Chrome Prompt API (Gemini Nano) plugin for Genkit Dart. Pub
genkit_mcp Model Context Protocol (MCP) plugin for Genkit Dart. Pub
genkit_middleware Common middlewares (filesystem, skills, toolApproval) for Genkit Dart. Pub
genkit_a2ui A2UI (Agent-to-UI) streaming UI protocol support for Genkit Dart (experimental). Pub
genkit_shelf Shelf adapter for serving Genkit actions and agents over HTTP. Pub
genkit_otel OpenTelemetry GenAI semantic-conventions instrumentation for Genkit Dart. Pub
genkit_firebase_ai Firebase AI plugin for Genkit Dart. Pub
genkit_google_cloud Google Cloud integration for Genkit Dart (Firestore session store, experimental). Pub
schemantic Type-safe data classes and runtime JSON Schemas, with serialization and validation. Pub
schemantic_builder The code generator for schemantic. Pub

Versioning

Packages at version 1.0 or later follow semantic versioning:

  • 1.0+ packages: Breaking changes only ship in a new major version.
  • 0.x packages and experimental APIs (such as package:genkit/experimental.dart): May change in minor releases.

Each package has its own CHANGELOG.md, also shown on its pub.dev page.


Built by Google with contributions from the Open Source Community

Categories

Dependencies

Dependency list 1 items

  • json_schema_builder^0.1.3

Source repository

Projects using this package

No data available yet.

Rankings