{"id":13812134,"url":"https://github.com/supabase/supabase-dart","last_synced_at":"2025-10-01T10:31:24.997Z","repository":{"id":36956163,"uuid":"334550286","full_name":"supabase/supabase-dart","owner":"supabase","description":"A Dart client for Supabase","archived":true,"fork":false,"pushed_at":"2023-05-13T01:24:56.000Z","size":246,"stargazers_count":397,"open_issues_count":0,"forks_count":70,"subscribers_count":45,"default_branch":"main","last_synced_at":"2025-08-27T20:08:43.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/supabase.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["supabase"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-01-31T01:41:47.000Z","updated_at":"2025-08-16T07:11:14.000Z","dependencies_parsed_at":"2023-09-23T05:11:39.453Z","dependency_job_id":"52a11068-f0f6-41e1-9197-fbbe6a9a430f","html_url":"https://github.com/supabase/supabase-dart","commit_stats":{"total_commits":265,"total_committers":25,"mean_commits":10.6,"dds":0.4716981132075472,"last_synced_commit":"4f5416171cf459eb25f25494a9eead5dba9bfd9a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supabase/supabase-dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fsupabase-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fsupabase-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fsupabase-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fsupabase-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase","download_url":"https://codeload.github.com/supabase/supabase-dart/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase%2Fsupabase-dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276573572,"owners_count":25666244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-04T04:00:47.638Z","updated_at":"2025-10-01T10:31:24.737Z","avatar_url":"https://github.com/supabase.png","language":"Dart","funding_links":["https://github.com/sponsors/supabase"],"categories":["SDKs"],"sub_categories":[],"readme":"# `supabase-dart`\n\n\u003e **Warning**\n\u003e This repository has been moved to the [supabase-flutter repo](https://github.com/supabase/supabase-flutter/tree/main/packages/supabase).\n\nA Dart client for [Supabase](https://supabase.io/).\n\n\u003e **Note**\n\u003e\n\u003e If you are developing a Flutter application, use [supabase_flutter](https://pub.dev/packages/supabase_flutter) instead. `supabase` package is for non-Flutter Dart environments.\n\n---\n\n## What is Supabase\n\n[Supabase](https://supabase.io/docs/) is an open source Firebase alternative. We are a service to:\n\n- listen to database changes\n- query your tables, including filtering, pagination, and deeply nested relationships (like GraphQL)\n- create, update, and delete rows\n- manage your users and their permissions\n- interact with your database using a simple UI\n\n## Status\n\nPublic Beta: Stable. No breaking changes expected in this version but possible bugs.\n\n## Docs\n\nFind the documentation [here](https://supabase.com/docs/reference/dart/initializing).\n\n## Usage example\n\n### [Database](https://supabase.io/docs/guides/database)\n\n```dart\nimport 'package:supabase/supabase.dart';\n\nmain() {\n  final supabase = SupabaseClient('supabaseUrl', 'supabaseKey');\n\n  // Select from table `countries` ordering by `name`\n  final data = await supabase\n      .from('countries')\n      .select()\n      .order('name', ascending: true);\n}\n```\n\n### [Realtime](https://supabase.io/docs/guides/database#realtime)\n\n```dart\nimport 'package:supabase/supabase.dart';\n\nmain() {\n  final supabase = SupabaseClient('supabaseUrl', 'supabaseKey');\n\n  // Set up a listener to listen to changes in `countries` table\n  supabase.channel('my_channel').on(RealtimeListenTypes.postgresChanges, ChannelFilter(\n      event: '*',\n      schema: 'public',\n      table: 'countries'\n    ), (payload, [ref]) {\n      // Do something when there is an update\n    }).subscribe();\n\n  // remember to remove the channels when you're done\n  supabase.removeAllChannels();\n}\n```\n\n### Realtime data as `Stream`\n\nTo receive realtime updates, you have to first enable Realtime on from your Supabase console. You can read more [here](https://supabase.io/docs/guides/api#managing-realtime) on how to enable it.\n\n```dart\nimport 'package:supabase/supabase.dart';\n\nmain() {\n  final supabase = SupabaseClient('supabaseUrl', 'supabaseKey');\n\n  // Set up a listener to listen to changes in `countries` table\n  final subscription = supabase\n      .from('countries')\n      .stream(primaryKey: ['id']) // Pass list of primary key column names\n      .order('name')\n      .limit(30)\n      .listen(_handleCountriesStream);\n\n  // remember to remove subscription when you're done\n  subscription.cancel();\n}\n```\n\n### [Authentication](https://supabase.io/docs/guides/auth)\n\nThis package does not persist auth state automatically. Use [supabase_flutter](https://pub.dev/packages/supabase_flutter) for Flutter apps to persist auth state instead of this package.\n\n```dart\nimport 'package:supabase/supabase.dart';\n\nmain() {\n  final supabase = SupabaseClient('supabaseUrl', 'supabaseKey');\n\n  // Sign up user with email and password\n  final response = await supabase\n    .auth\n    .signUp(email: 'sample@email.com', password: 'password');\n}\n```\n\n### [Storage](https://supabase.io/docs/guides/storage)\n\n```dart\nimport 'package:supabase/supabase.dart';\n\nmain() {\n  final supabase = SupabaseClient('supabaseUrl', 'supabaseKey');\n\n  // Create file `example.txt` and upload it in `public` bucket\n  final file = File('example.txt');\n  file.writeAsStringSync('File content');\n  final storageResponse = await supabase\n      .storage\n      .from('public')\n      .upload('example.txt', file);\n}\n```\n\nCheck out the [**Official Documentation**](https://supabase.com/docs/reference/dart/) to learn all the other available methods.\n\n\n## Contributing\n\n- Fork the repo on [GitHub](https://github.com/supabase/supabase-dart)\n- Clone the project to your own machine\n- Commit changes to your own branch\n- Push your work back up to your fork\n- Submit a Pull request so that we can review your changes and merge\n\n## License\n\nThis repo is licenced under MIT.\n\n## Credits\n\n- https://github.com/supabase/supabase-js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fsupabase-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase%2Fsupabase-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase%2Fsupabase-dart/lists"}