logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

realtime-chat-supabase-react

Facilitates real-time chat experiences using React and Supabase, allowing users to send and receive messages instantly. The application supports seamless communication through a user-friendly interface, underpinned by a PostgreSQL database.

Author

realtime-chat-supabase-react logo

Mimo-Inverse

Apache License 2.0

Quick Info

GitHub GitHub Stars 0
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

chatsupabasereactchat supabasesupabase reactrealtime chat

Full-stack real-time chat

Netlify Status

Install

npm install to setup dependencies

Supabase variables

Create a .env file with VITE_SUPABASE_URL and VITE_SUPABASE_KEY (see env.example)

Setup your Supabase project

The following database table is required:

Field Type
id BIGINT
username VARCHAR
text TEXT
country VARCHAR
is_authenticated BOOLEAN
timestamp timestamp

SQL query if not using the Supabase interface:

CREATE TABLE messages (
  id bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,
  username VARCHAR NOT NULL,
  text TEXT NOT NULL,
  country VARCHAR,
  is_authenticated BOOLEAN DEFAULT FALSE,
  timestamp timestamp default now() NOT NULL
);

Note: If you're using Supabase interface, don't forget to tick Enable Realtime setting after you created the table.

Setup GitHub authentication (optional)

Follow instrunction here

Dev

npm run dev to run server on port 3000

Build

npm run build to build the react client

Demo

https://random-chat.netlify.app

'demo'

See Also

`