Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

realtime-chat-supabase-react

> 编程语言
Open source

Full-stack real-time chat - Data: PostgeSQL managed by Supabase @supabaseio (awsome real-time API). - Front-end: React + Vite - UI library:…

796 stars0 likes3 views
WebsiteGitHub

About

Full-stack real-time chat - Data: PostgeSQL managed by Supabase @supabaseio (awsome real-time API). - Front-end: React + Vite - UI library:…

Full-stack real-time chat

  • Data: PostgeSQL managed by Supabase @supabase_io (awsome real-time API).
  • Front-end: React + Vite
  • UI library: chakra-ui @chakra_ui
  • Hosting: Netlify
  • Country flags from Flagpedia

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:

sql
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

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言