Skip to content

Repository files navigation

Supatools

A monorepo containing Dart packages for Supabase code generation.

Packages

Package Description pub.dev
supabase_schema_core Internal package for schema fetching and type mapping pub
supafreeze Generate Freezed or dart_mappable models from Supabase schema pub
suparepo Generate repositories, RPC clients, and Edge Function clients pub

Quick Start

Generate Models (Freezed or dart_mappable)

dart pub add supafreeze

Generates Freezed models by default; set model_format: dart_mappable in supafreeze.yaml to generate dart_mappable models instead. See the supafreeze README for details.

Generate Repositories, RPC & Edge Function Clients

dart pub add suparepo

suparepo generates:

  • Table repositories — CRUD operations, pagination, relation queries
  • RPC clients — Type-safe methods for Supabase SQL functions
  • Edge Function clients — Typed or untyped clients for Edge Functions

See suparepo README for details.

Development

This repository uses melos for managing the monorepo.

Setup

dart pub global activate melos
melos bootstrap

Common Commands

# Analyze all packages
melos exec -- dart analyze .

# Format all packages
melos exec -- dart format .

# Run tests in all packages
melos exec -- dart test

License

MIT

About

Generate Freezed models from Supabase database schema automatically. CLI tool with smart caching and incremental generation.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages