supabase_client_gen 0.2.0 copy "supabase_client_gen: ^0.2.0" to clipboard
supabase_client_gen: ^0.2.0 copied to clipboard

Contract-driven code generator that reads a supabase.yaml specification and produces typed Dart client code — data models, enums, repositories with CRUD and realtime streams, edge function clients, an [...]

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate supabase_client_gen

Use it

The package has the following executables:

$ generate
$ validate

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add supabase_client_gen

With Flutter:

 $ flutter pub add supabase_client_gen

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  supabase_client_gen: ^0.2.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:supabase_client_gen/supabase_client_gen.dart';
0
likes
120
points
122
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Contract-driven code generator that reads a supabase.yaml specification and produces typed Dart client code — data models, enums, repositories with CRUD and realtime streams, edge function clients, and storage buckets.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

postgres, yaml, yaml_edit

More

Packages that depend on supabase_client_gen