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
40 changes: 40 additions & 0 deletions .kiro/specs/phantom-platform/design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# PHANTOM Platform Design

## Product intent

PHANTOM brings the social pattern of Bulletin Board Systems into a modern community network. People choose focused rooms, contribute to conversations, and preserve useful knowledge in a searchable archive. The product deliberately avoids an algorithmic infinite feed.

## Main application

- Next.js App Router renders the landing page, authentication routes, and community workspace.
- Supabase Auth provides member identity.
- Supabase Postgres stores profiles, rooms, memberships, messages, archive entries, and content reports.
- Row Level Security is the authorization boundary for database access.
- Supabase Realtime streams new room messages to connected members.
- Render hosts the public application.

The browser UI is not the security boundary. Membership and content permissions must remain enforced by database policies. Secret credentials stay on the server.

## Guest demonstration

The `/demo` route is an isolated, browser-only preview. It uses clearly identified sample rooms, sample conversations, and sample field notes. Guest messages, memberships, and saved notes are temporary local state. They are not written to Supabase and must never be presented as live community activity.

The guided tour demonstrates three product ideas:
1. Join a focused room.
2. Contribute a message to that room.
3. Open and save a useful field note.

The preview must not claim that messages are encrypted, that sample member counts are live, or that local guest actions are persistent.

## Interaction principles

- Every primary demo action should produce a visible state change.
- A guest must join a room before sending a message in it.
- Archive search should filter the sample notes.
- Field notes should be readable and savable within the guest session.
- The demo should explain how to enter the authenticated main network.
- Controls should remain keyboard accessible and usable on narrow screens.

## Known boundaries

The guest preview is not a substitute for end-to-end verification of authentication, database permissions, realtime delivery, moderation, or persistence. Those require testing against the deployed Supabase-backed application.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

[View the source code](https://github.com/devshieldhq/phantom)

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.
The demo is open to everyone. No account or setup is needed. Follow the guided tour to join a sample room, send a local message, and save a field note. Search the knowledge archive and explore the room directory. Demo activity is temporary, runs entirely in the browser, and is not stored in the main community database.

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.

Expand Down Expand Up @@ -71,11 +71,15 @@ Apply the SQL migrations in `supabase/migrations` to a fresh Supabase project in
- Joining rooms, posting messages, publishing archive entries, and submitting reports require authentication.
- Keep private content out of public caches and offline storage.

## Kiro and project specifications

The root `.kiro` directory contains PHANTOM product steering, platform requirements, and the implementation task plan. See [the Kiro usage write-up](docs/kiro-usage.md) for an honest summary of the Kiro workflow and its limits. The [submission checklist](docs/submission-checklist.md) tracks remaining competition work.

## 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.
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. The guest demo is a local preview; authentication, database permissions, realtime delivery, and moderation still require end to end verification.

## Competition build notes

Expand Down
Loading
Loading