{"id":18886685,"url":"https://github.com/supabase-community/flutter-chat","last_synced_at":"2025-09-07T23:45:57.815Z","repository":{"id":37301631,"uuid":"484249423","full_name":"supabase-community/flutter-chat","owner":"supabase-community","description":"Simple chat application built with Flutter and Supabase. ","archived":false,"fork":false,"pushed_at":"2024-05-23T01:24:19.000Z","size":234,"stargazers_count":188,"open_issues_count":6,"forks_count":76,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-08-30T06:28:29.402Z","etag":null,"topics":["chat","chat-application","flutter","realtime","supabase"],"latest_commit_sha":null,"homepage":"https://supabase.com","language":"Dart","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/supabase-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2022-04-22T00:52:35.000Z","updated_at":"2025-08-28T11:07:46.000Z","dependencies_parsed_at":"2024-10-27T17:22:35.699Z","dependency_job_id":null,"html_url":"https://github.com/supabase-community/flutter-chat","commit_stats":{"total_commits":87,"total_committers":2,"mean_commits":43.5,"dds":"0.011494252873563204","last_synced_commit":"4764e6c45a60b954a4e2a4462a4d97a70352b573"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supabase-community/flutter-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fflutter-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fflutter-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fflutter-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fflutter-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supabase-community","download_url":"https://codeload.github.com/supabase-community/flutter-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supabase-community%2Fflutter-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274113000,"owners_count":25224332,"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-07T02:00:09.463Z","response_time":67,"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":["chat","chat-application","flutter","realtime","supabase"],"created_at":"2024-11-08T07:29:58.741Z","updated_at":"2025-09-07T23:45:57.784Z","avatar_url":"https://github.com/supabase-community.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Chat Example\n\nSimple chat app to demonstrate the realtime capability of Supabase with Flutter. You can follow along on how to build this app on [this article](https://supabase.com/blog/flutter-tutorial-building-a-chat-app).\n\nYou can also find an example using [row level security](https://supabase.com/docs/guides/auth/row-level-security) to provide chat rooms to enable 1 to 1 chats on the [`with-auth` branch](https://github.com/supabase-community/flutter-chat/tree/with_auth). \n\n## SQL\n\n```sql\n-- *** Table definitions ***\n\ncreate table if not exists public.profiles (\n    id uuid references auth.users on delete cascade not null primary key,\n    username varchar(24) not null unique,\n    created_at timestamp with time zone default timezone('utc' :: text, now()) not null,\n\n    -- username should be 3 to 24 characters long containing alphabets, numbers and underscores\n    constraint username_validation check (username ~* '^[A-Za-z0-9_]{3,24}$')\n);\ncomment on table public.profiles is 'Holds all of users profile information';\n\ncreate table if not exists public.messages (\n    id uuid not null primary key default uuid_generate_v4(),\n    profile_id uuid default auth.uid() references public.profiles(id) on delete cascade not null,\n    content varchar(500) not null,\n    created_at timestamp with time zone default timezone('utc' :: text, now()) not null\n);\ncomment on table public.messages is 'Holds individual messages within a chat room.';\n\n-- *** Add tables to the publication to enable realtime ***\nalter publication supabase_realtime add table public.messages;\n\n\n-- Function to create a new row in profiles table upon signup\n-- Also copies the username value from metadata\ncreate or replace function handle_new_user() returns trigger as $$\n    begin\n        insert into public.profiles(id, username)\n        values(new.id, new.raw_user_meta_data-\u003e\u003e'username');\n\n        return new;\n    end;\n$$ language plpgsql security definer;\n\n-- Trigger to call `handle_new_user` when new user signs up\ncreate trigger on_auth_user_created\n    after insert on auth.users\n    for each row\n    execute function handle_new_user();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fflutter-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupabase-community%2Fflutter-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupabase-community%2Fflutter-chat/lists"}