{"id":23616901,"url":"https://github.com/woueziou/sup_gen","last_synced_at":"2026-02-10T08:31:59.023Z","repository":{"id":263881671,"uuid":"891682725","full_name":"woueziou/sup_gen","owner":"woueziou","description":"Package to generate supabase tables views functions and edge functions","archived":false,"fork":false,"pushed_at":"2025-09-10T21:18:35.000Z","size":572,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-11T01:16:09.388Z","etag":null,"topics":["dart","database","flutter","postgresql-database","supabase"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sup_gen_runner","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woueziou.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-20T19:09:25.000Z","updated_at":"2025-09-04T09:38:35.000Z","dependencies_parsed_at":"2024-11-20T20:19:55.097Z","dependency_job_id":"3b30ff4b-b62d-4dd9-b97e-9909a37fa76b","html_url":"https://github.com/woueziou/sup_gen","commit_stats":null,"previous_names":["woueziou/sup_gen_project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/woueziou/sup_gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woueziou%2Fsup_gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woueziou%2Fsup_gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woueziou%2Fsup_gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woueziou%2Fsup_gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woueziou","download_url":"https://codeload.github.com/woueziou/sup_gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woueziou%2Fsup_gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29294592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T03:42:42.660Z","status":"ssl_error","status_checked_at":"2026-02-10T03:42:41.897Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","database","flutter","postgresql-database","supabase"],"created_at":"2024-12-27T18:14:56.374Z","updated_at":"2026-02-10T08:31:59.002Z","avatar_url":"https://github.com/woueziou.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SupGen (Supabase Dart Class Generator)\n\nA Dart package for generating classes, enums, and views directly from a Supabase PostgreSQL server. Simplify the process of integrating your database schema into your Dart/Flutter projects.\n\n## Features\n\n- Automatically generate Dart classes from PostgreSQL tables.\n- Replicate enum types and views from the `public` schema or a specified schema.\n- Easy configuration and seamless integration.\n\n## Installation\n\n### 1. Add the package to your project\n\nAdd the following to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  supabase_dart_generator: ^\u003clatest_version\u003e\ndev_dependencies:\n  build_runner: ^2.3.3\n```\n\nReplace **\u003clatest_version\u003e** with the latest version of the package.\n\nRun the following command to fetch the pacakge\n```bash\nflutter pub get\n# or\ndart pub get\n```\n\n### 2. Configure your project\n##### Add configration to pubspec.yml\n#\n```yaml\nsup_gen_option:\n  output: lib/supabase_models #the desired output folder \n  enable: true # Enable or disable the package \n  schema: 'public' #The schema that will be used\n  useSsl: false # control if the ssl is required for the server or no\n```\n##### Add .env file\n#\ninclude you Supabase database credential\n\n```env\n# .env file\nSUPABASE_DB_USER=postgres\nSUPABASE_DB_HOST=DB_HOST\nSUPABASE_DB_PORT=DB_PORT\nSUPABASE_DB_PASSWORD=YOUR_DB_PASSWORD\nSUPABASE_DB_SCHEMA=public\nSUPABASE_DB=YOUR_DATABASE_NAME\n```\n⚠️ Important: Keep your .env file secure. Do not commit it to version control. You don't want to give the key of you home to the world\n\n\n### 3. Generate classes\n\n```bash\ndart run build_runner build\n```\nYou will see in your output folder some files:\n-  supabase_enums.gen.dart  // for enums\n-  supabase_tables.gen.dart // for tables\n\n\n\n\n## Roadmap\n\n[x] Setup project \n\n[x] Write SQL Queries\n\n[x] Write Colum type adapters \n\n[x] handle Table mapping\n\n[x] handle Enums mapping\n\n[x] Handle views mapping\n\n[x] handle Enum reverse target : get enum value string name\n\n[ ] Handle Edge functions mapping\n\n[ ] Setup test cases\n\n[ ] Handle RPC mapping\n\n[ ]  Add  [freezed](https://pub.dev/packages/freezed) support to classes\n\n[ ] Add json_annotation\n## License\n\nMIT License\n\nCopyright (c) 2024 Taas Ekpaye\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoueziou%2Fsup_gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoueziou%2Fsup_gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoueziou%2Fsup_gen/lists"}