Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
NEXT_PUBLIC_SUPABASE_URL=https://xsnmteskpdguamrofsfx.supabase.co
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_supabase_publishable_key
# Optional fallback for projects still using the legacy anon key.
NEXT_PUBLIC_SUPABASE_ANON_KEY=
# Server-only secret. Never prefix this with NEXT_PUBLIC_ or expose it to the browser.
SUPABASE_SECRET_KEY=
AI_PROVIDER=
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PHANTOM quality checks

on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read

concurrency:
group: phantom-ci-${{ github.ref }}
cancel-in-progress: true

jobs:
validate:
name: Typecheck and production build
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Check out source
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: TypeScript validation
run: npm run typecheck

- name: Production build
run: npm run build
93 changes: 63 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,85 @@
# PHANTOM
### The internet never really dies.
### A little less feed. A lot more signal.

PHANTOM is a modern resurrection of Bulletin Board Systems (BBS): a community-first digital space with terminal-inspired rooms, live conversations, and a shared knowledge archive.
**PHANTOM resurrects the spirit of Bulletin Board Systems for the modern web.** It is a community-first network built around intentional rooms, live conversations, and a shared knowledge archive—not an endless algorithmic feed.

## What works in the current core build
## Try PHANTOM

- Public room directory backed by Supabase
- Email magic-link sign-in foundation and auth-aware UI
- Authenticated join/leave for public rooms
- Persistent room messages with Supabase Realtime updates
- Public knowledge archive: publish, browse, and search entries
- Content report intake for messages and archive entries
- Responsive terminal-inspired dashboard
- **Interactive demo:** https://phantom-gkn8.onrender.com/demo
- **Main application:** https://phantom-gkn8.onrender.com
- **Source code:** https://github.com/devshieldhq/phantom

**Still in progress:** moderator review/removal tools, server-enforced rate limits, offline archive and draft sync, AI summaries, multiplayer game, and full end-to-end QA.
The demo is open to everyone. No account or setup is needed. Explore sample rooms, send local demo messages, search the knowledge archive, and discover the network. Demo activity is temporary, runs entirely in the browser, and resets when you leave.

## Stack
The main application is the live Supabase-backed experience. Sign-in is required for joining rooms, posting persistent messages, publishing archive entries, and reporting content.

- Next.js App Router + TypeScript
- Tailwind CSS + Lucide
## Product experience

- **Community rooms:** public spaces for introductions, building, discovery, and conversation.
- **Live transmissions:** persistent room messages with Supabase Realtime updates.
- **Knowledge archive:** publish, browse, and search public entries worth preserving.
- **Community safety:** report messages and archive entries for moderation review.
- **Open entry:** try the interactive demo without creating an account.
- **Responsive interface:** a terminal-inspired workspace designed for desktop and mobile.

## Built with

- Next.js App Router, React, and TypeScript
- Tailwind CSS and Lucide icons
- Supabase Auth, Postgres, Row Level Security, and Realtime
- Render web service
- Render

## Local development

## Local setup
1. Install Node.js 20 or newer.
2. Clone this repository and install dependencies:

```bash
npm install
```

1. Install Node.js 20+.
2. Run `npm install`.
3. Copy `.env.example` to `.env.local`.
4. Set the Supabase project URL and publishable key:
- `NEXT_PUBLIC_SUPABASE_URL`
- `NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY`
5. Run `npm run dev`.
4. Configure the public Supabase project values:

```env
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your_publishable_key
# Optional legacy fallback when the publishable key is not set:
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
```

5. Start the development server:

Apply the SQL migrations in `supabase/migrations` to a fresh Supabase project in order. Configure the Supabase Auth email provider and add your local/deployed callback URLs to the allowed redirect URLs.
```bash
npm run dev
```

## Security principles
The interactive demo at `/demo` runs independently of Supabase configuration. The main application requires a configured Supabase project for its persistent features.

- Enforce authorization with Supabase RLS, not UI checks alone.
Apply the SQL migrations in `supabase/migrations` to a fresh Supabase project in order. Configure the Supabase Auth email provider and add local and deployed callback URLs to the allowed redirect URLs.

## Security

- Authorization is enforced through Supabase Row Level Security, not UI checks alone.
- Never expose service-role or secret keys in browser code.
- `SUPABASE_SECRET_KEY` is server-only.
- The public publishable key is preferred; the anon key is supported as a fallback.
- Public rooms and public archive entries are readable without signing in.
- Joining rooms, posting messages, publishing archive entries, and submitting reports require authentication.
- Users can only view their own report submissions.
- Keep private content out of public caches and offline storage.

## Build plan
## Current development status

The interactive demo is available without authentication. The main application includes the room directory, authentication foundation, room membership, persistent messages, realtime updates, public archive, and report intake.

Further work includes moderator review and removal tools, server-enforced rate limits, offline archive and draft sync, AI-assisted summaries, multiplayer experiences, and full end-to-end QA.

## Competition build notes

PHANTOM is a modern resurrection of the Bulletin Board System: a place where people intentionally gather, exchange knowledge, and preserve useful information. The project keeps the social intimacy of early online communities while using a modern web stack.

See [project tasks](.kiro/specs/phantom-platform/tasks.md) for current implementation status and remaining work.
See `.kiro/specs/phantom-platform` for product requirements and implementation notes.

## Deployment
## License

PHANTOM is deployed on Render: https://phantom-gkn8.onrender.com
MIT. See [LICENSE](LICENSE).
Loading
Loading