diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a8b1485
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+dist/
+node_modules/
+.env
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d23f973
--- /dev/null
+++ b/README.md
@@ -0,0 +1,25 @@
+# Beachwave
+
+Beachwave is an open reference implementation for live audio on ATProto. It defines protocol primitives for decentralized live audio rooms and demonstrates them in a small browser client with a beach-inspired demo brand.
+
+## Components
+
+* `lexicons/` contains the ATProto record definitions. The initial protocol ships `community.beachwave.room`.
+* `src/sdk/` contains a TypeScript SDK that hides raw repository operations behind a stable API.
+* `src/client/` contains a browser reference client that consumes the SDK and uses the Beachwave palette.
+* `docs/protocol.md` documents protocol objects independently from the UI.
+
+## Development
+
+```sh
+npm install
+npm run build
+npm test
+npm run dev
+```
+
+The current browser demo uses the Beachwave palette (`#007dc3`, `#b7d5d4`, `#37393a`, `#f7c1bb`, `#dc136c`) and the local `beachwave.svg` icon. Run `npm run dev` and open `http://localhost:4173` after building.
+
+## Deployment
+
+Beachwave can be deployed as a static site on Vercel or Netlify. The build command is `npm run build`, and the publish/output directory is the repository root (`.`) because `index.html` loads the compiled browser bundle from `dist/client/main.js`. See `docs/deployment.md` for step-by-step instructions.
diff --git a/beachwave.svg b/beachwave.svg
new file mode 100644
index 0000000..180fa6b
--- /dev/null
+++ b/beachwave.svg
@@ -0,0 +1,19 @@
+
diff --git a/docs/aar.md b/docs/aar.md
new file mode 100644
index 0000000..73f7349
--- /dev/null
+++ b/docs/aar.md
@@ -0,0 +1,91 @@
+# Beachwave After Action Report
+
+## Summary
+
+The initial Beachwave scaffold was added to the repository. It creates the first protocol artifact, a small SDK, a local demonstration client, protocol documentation, and lifecycle tests.
+
+This work establishes a baseline for the project, but it is not yet a production-ready live audio application. The largest remaining gaps are real ATProto authentication, a concrete ATProto repository adapter, and LiveKit media integration.
+
+## What was done
+
+### Repository structure
+
+Added the initial project layout:
+
+* `lexicons/community/beachwave/room.json` for the Room lexicon.
+* `src/sdk/` for protocol-facing TypeScript helpers.
+* `src/client/` for a small browser reference client.
+* `docs/protocol.md` for implementation-independent protocol notes.
+* `test/sdk.test.js` for lifecycle coverage.
+* `package.json` and `tsconfig.json` for build and test commands.
+
+### Protocol and lexicon
+
+Defined the initial `community.beachwave.room` record with fields for title, optional description, LiveKit room name, lifecycle status, timestamps, and host DIDs.
+
+Documented Room semantics in `docs/protocol.md`, including purpose, lifecycle, ownership, storage location, and interoperability expectations.
+
+### SDK
+
+Implemented the initial SDK API:
+
+* `createRoom()`
+* `endRoom()`
+* `getRoom()`
+* `listRooms()`
+* `joinRoom()`
+* `leaveRoom()`
+
+The SDK currently targets a generic `RepositoryClient` interface rather than binding directly to a specific ATProto library. This keeps the public API stable while allowing a real ATProto adapter to be added later.
+
+### Reference client
+
+Added a small browser client that consumes the SDK and an in-memory repository adapter. The client can create, discover, and end local demo rooms.
+
+The client intentionally does not perform raw repository operations. This preserves the separation between reference UI and protocol behavior.
+
+### Tests
+
+Added a Node test that exercises the room lifecycle:
+
+1. create a room;
+2. list live rooms;
+3. join a live room;
+4. end the room;
+5. verify ended rooms are no longer listed or joinable.
+
+## Validation performed
+
+The previous implementation was validated with:
+
+* `npm run build`
+* `npm test`
+
+Both commands completed successfully at the time of the initial scaffold.
+
+## Known limitations
+
+* The reference client uses `MemoryRepositoryClient`; it is not yet connected to a real ATProto PDS.
+* There is no ATProto login flow yet.
+* LiveKit is represented by the `livekitRoom` field, but actual LiveKit token retrieval and audio connection are not implemented yet.
+* Speaker requests, host controls beyond ending a room, participant records, invitations, recordings, transcripts, and moderation events are not implemented yet.
+* The SDK update path should eventually preserve unknown fields from fetched records more deliberately and may need compare-and-swap or revision handling depending on the chosen ATProto adapter.
+* Discovery currently depends on explicitly provided repositories. A production client will need a broader discovery strategy.
+
+## Notes for a future agent
+
+1. Preserve the separation between protocol, SDK, and reference UI. The client should continue to consume the SDK like any third-party app.
+2. Add a real ATProto adapter behind `RepositoryClient` before expanding UI complexity.
+3. Do not make the Room lexicon reference-client-specific. Any new fields should be justified by interoperability needs.
+4. Before adding future lexicons, document their purpose, lifecycle, ownership, storage location, and interoperability expectations.
+5. Add LiveKit through a narrow boundary that returns credentials or connection metadata from a resolved Room record. Avoid storing secrets in ATProto records.
+6. Keep tests focused on protocol behavior. UI tests can be added later, but SDK lifecycle tests should remain fast and deterministic.
+7. If package dependencies are introduced, update the development docs and commit the lockfile generated by the chosen package manager.
+
+## Recommended next steps
+
+1. Implement an ATProto-backed `RepositoryClient` adapter.
+2. Add ATProto login to the reference client.
+3. Add LiveKit token service documentation and client connection flow.
+4. Expand discovery beyond explicitly listed repositories.
+5. Draft Participant and Speaker lexicons once room lifecycle behavior is stable.
diff --git a/docs/deployment.md b/docs/deployment.md
new file mode 100644
index 0000000..239b7ef
--- /dev/null
+++ b/docs/deployment.md
@@ -0,0 +1,59 @@
+# Deploying Beachwave
+
+Beachwave is currently a static proof-of-concept web app. It can be deployed to Vercel, Netlify, GitHub Pages, or any static host that can run `npm run build` and serve this repository root.
+
+## What the host needs to serve
+
+The demo entry point is `index.html`. The TypeScript build emits the browser JavaScript into `dist/client/main.js`, and the page loads styles from `src/client/styles.css` plus the local `beachwave.svg` favicon/logo.
+
+Because of that layout, the current static publish directory is the repository root (`.`), not only `dist/`.
+
+## Vercel
+
+1. Import the GitHub repository into Vercel.
+2. Use the default framework preset or select **Other**.
+3. Set the build command to:
+
+ ```sh
+ npm run build
+ ```
+
+4. Set the output directory to:
+
+ ```text
+ .
+ ```
+
+The included `vercel.json` stores those settings for the project.
+
+## Netlify
+
+1. Import the GitHub repository into Netlify.
+2. Set the build command to:
+
+ ```sh
+ npm run build
+ ```
+
+3. Set the publish directory to:
+
+ ```text
+ .
+ ```
+
+The included `netlify.toml` stores those settings for the project.
+
+## Local preview
+
+Run the same build locally, then serve the repository root:
+
+```sh
+npm run build
+python3 -m http.server 4173
+```
+
+Then open `http://localhost:4173`.
+
+## Current limitations
+
+This deployment is enough to view and demo the browser proof of concept. The app still uses local browser storage instead of a real ATProto PDS and simulates the LiveKit handoff rather than joining live audio.
diff --git a/docs/pdr.md b/docs/pdr.md
new file mode 100644
index 0000000..722895a
--- /dev/null
+++ b/docs/pdr.md
@@ -0,0 +1,178 @@
+# Beachwave Product Design Requirements
+
+## 1. Overview
+
+Beachwave is an open reference implementation for live audio on ATProto. It defines the protocol primitives needed for decentralized live audio applications and validates them with a small working web client.
+
+The reference client is not the protocol. It exists to prove that the lexicons, SDK, discovery model, and room lifecycle are sufficient for another developer to build a different interoperable live audio client.
+
+## 2. Goals
+
+1. Define an interoperable protocol for creating, discovering, joining, and ending live audio rooms using ATProto records.
+2. Provide a complete reference application that exercises every part of that protocol in a real implementation.
+3. Keep the protocol implementation-agnostic so multiple clients can interoperate using the same room records.
+4. Keep the reference implementation intentionally small, understandable, and easy to extend.
+
+## 3. Non-goals
+
+* Beachwave does not define a new identity system; ATProto remains the source of identity.
+* Beachwave does not store live audio media in ATProto repositories.
+* Beachwave does not require third-party clients to copy the reference UI.
+* The initial implementation does not need every future lexicon; only the Room record is required for the first milestone.
+* The reference SDK should hide raw repository operations, but it should not prevent advanced clients from using repository APIs directly.
+
+## 4. Design principles
+
+* ATProto is the source of identity.
+* Room metadata is stored as ATProto records.
+* Media transport is handled by LiveKit.
+* The protocol is implementation-agnostic.
+* Multiple clients should be able to interoperate using the same room records.
+* All protocol components are open source.
+* The reference client should remain intentionally small, understandable, and easy to extend.
+
+## 5. Primary users
+
+### Protocol implementer
+
+A developer building a separate live audio application that needs to create, discover, join, and end Beachwave-compatible rooms without depending on the reference UI.
+
+### Reference client user
+
+A user who signs in with ATProto, creates or discovers a room, participates in live audio through LiveKit, and leaves or ends the room according to their role.
+
+### Protocol maintainer
+
+A contributor who evolves lexicons, SDK behavior, and documentation while preserving interoperability expectations.
+
+## 6. Product requirements
+
+### 6.1 Lexicons
+
+The initial milestone must define `community.beachwave.room`.
+
+The Room record must include:
+
+* `title`: human-readable room title.
+* `description`: optional room summary or agenda.
+* `livekitRoom`: media transport room identifier.
+* `status`: lifecycle state, initially `live` and eventually `ended`.
+* `createdAt`: creation timestamp.
+* `endedAt`: optional end timestamp.
+* `hosts`: optional list of host DIDs allowed to administer the room.
+
+Future lexicons may include Speaker, Invitation, Participant, Recording, Transcript, and Moderation Event records. These should be added only when their ownership, lifecycle, and interoperability expectations are documented.
+
+### 6.2 SDK
+
+The TypeScript SDK must expose a small stable API:
+
+* `createRoom()` creates a live Room record.
+* `endRoom()` marks a Room record as ended.
+* `getRoom()` resolves a Room record by AT URI.
+* `listRooms()` lists live Room records from one or more repositories.
+* `joinRoom()` validates that a room is live and returns media connection metadata.
+* `leaveRoom()` handles local session departure without mutating Room records until a Participant lexicon exists.
+
+Applications should not need to understand raw repository operations to perform these operations.
+
+### 6.3 Reference client
+
+The browser client must demonstrate the protocol by consuming the SDK as a third-party application would.
+
+The target feature set is:
+
+* ATProto login.
+* Room creation.
+* Room discovery.
+* LiveKit audio.
+* Speaker requests.
+* Host controls.
+* Room lifecycle.
+
+The current first milestone may use local adapters and mocked transport boundaries while the lexicon and SDK stabilize, but those seams must remain explicit.
+
+### 6.4 Documentation
+
+Documentation must describe protocol behavior independently of the reference implementation.
+
+Every protocol object should explain:
+
+* purpose;
+* lifecycle;
+* ownership;
+* storage location;
+* interoperability expectations.
+
+A developer should be able to build a compatible client from the documentation without copying the reference application.
+
+## 7. Functional flows
+
+### 7.1 Create room
+
+1. Authenticated host requests room creation.
+2. Client validates user input.
+3. SDK creates a `community.beachwave.room` record in the host repository.
+4. Record stores metadata and LiveKit room identifier.
+5. Discovering clients can list or resolve the record.
+
+### 7.2 Discover room
+
+1. Client selects repositories or feeds to inspect.
+2. SDK lists `community.beachwave.room` records.
+3. Client filters for `status: "live"`.
+4. UI displays room metadata and host identity.
+
+### 7.3 Join room
+
+1. User selects a live Room record.
+2. SDK resolves the record and rejects ended rooms.
+3. Client uses the `livekitRoom` value and its LiveKit credentials to join media.
+4. Participant state remains local until the Participant lexicon is introduced.
+
+### 7.4 End room
+
+1. Host requests room end.
+2. SDK resolves the current Room record.
+3. SDK updates the record to `status: "ended"` and sets `endedAt`.
+4. Discovering clients stop presenting the room as joinable.
+
+## 8. Interoperability requirements
+
+* Clients must treat ATProto records as authoritative for room metadata and lifecycle state.
+* Clients must not require reference-client-only fields to join or display rooms.
+* Clients must preserve unknown compatible fields when updating records whenever possible.
+* Ended rooms must not be presented as joinable.
+* Media transport details must remain decoupled from ATProto storage.
+
+## 9. Milestones
+
+### Milestone 1: Protocol skeleton
+
+* Define Room lexicon.
+* Document protocol object semantics.
+* Implement SDK room lifecycle helpers.
+* Add a small reference client using the SDK.
+* Add automated tests for create, list, join, and end flows.
+
+### Milestone 2: Real ATProto integration
+
+* Add a concrete ATProto repository adapter.
+* Add ATProto login flow to the reference client.
+* Confirm record creation, update, and discovery against a real PDS.
+
+### Milestone 3: LiveKit media integration
+
+* Add LiveKit token retrieval boundary.
+* Join LiveKit audio rooms from resolved Room records.
+* Document deployment expectations for the media service.
+
+### Milestone 4: Moderated live audio
+
+* Add speaker request flow.
+* Add host controls.
+* Evaluate Participant, Speaker, Invitation, and Moderation Event lexicons.
+
+## 10. Success criteria
+
+Beachwave succeeds when another developer can build a completely different live audio application that interoperates with the same ATProto room records without depending on the reference UI.
diff --git a/docs/protocol.md b/docs/protocol.md
new file mode 100644
index 0000000..111b5b5
--- /dev/null
+++ b/docs/protocol.md
@@ -0,0 +1,29 @@
+# Beachwave Protocol
+
+Beachwave uses ATProto repositories as the source of identity and room metadata. Media bytes are not stored in ATProto; live audio is transported by LiveKit or any compatible media layer that clients agree to join from the room metadata.
+
+## Room record
+
+* **Lexicon:** `community.beachwave.room`
+* **Storage:** host user's ATProto repository collection `community.beachwave.room`
+* **Owner:** the DID that creates the record; additional host DIDs may be listed in `hosts`
+* **Purpose:** advertise a live audio room and provide the LiveKit room name needed to join media
+* **Lifecycle:** created with `status: "live"`, updated to `status: "ended"` with `endedAt` when closed
+* **Interoperability:** clients should treat ATProto as authoritative for title, lifecycle state, host identity, and discovery; clients should not require reference-client-specific fields
+
+Required fields are `title`, `livekitRoom`, `createdAt`, and `status`. Optional fields include `description`, `endedAt`, and `hosts`.
+
+## SDK contract
+
+Compatible clients can use raw repository operations or the SDK functions:
+
+* `createRoom()` creates a Room record in the signed-in user's repository.
+* `endRoom()` marks a Room record as ended.
+* `getRoom()` resolves a Room record by AT URI.
+* `listRooms()` lists discoverable live Room records for configured repositories.
+* `joinRoom()` returns media connection information for a room.
+* `leaveRoom()` is a local media-session operation and does not mutate the Room record.
+
+## Reference client boundaries
+
+The browser client demonstrates one possible UI. It intentionally consumes the SDK instead of embedding repository operations so protocol behavior remains independent from the reference application.
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..53fe70c
--- /dev/null
+++ b/index.html
@@ -0,0 +1,14 @@
+
+
+
+ A sunny, ATProto-native proof of concept for creating beachside live audio rooms,
+ discovering them locally, and walking through the host/listener lifecycle before
+ the real ATProto and LiveKit adapters are connected.
+