Case studySoftware & Security
Connect. Talk. Disappear.
WaneTemporary Two-Person Messaging
Connect with a temporary code, talk in real time, and leave nothing in a database.
- Status
- Prototype
Working software, not production-deployed.
- Discipline
- Software & Security
- Role
- Creator & Sole Developer
- Year
- 2026
01
Project Overview
Wane is a real-time web application for temporary one-to-one conversations. Each person receives a short-lived six-digit code; one enters the other's code, the other accepts, and a private room opens between exactly those two people.
There are no accounts and no database. Conversation state lives only in the memory of a single Node.js process, and the room is destroyed when either person leaves, the connection drops, the conversation goes idle or a maximum lifetime is reached.
- Accounts
- None — a temporary display name per browser tab
- Storage
- Server memory only, no database
- Pairing
- Single-use six-digit codes, 10-minute expiry by default
- Room lifetime
- Ends on leave · 15 min idle · 60 min maximum (defaults)
- Encryption
- Not end-to-end encrypted
- File sharing
- Implemented behind a flag, off by default
02
The Problem
Many conversations between two people only need to exist for a few minutes. The usual tools still ask for an account or a phone number, keep a searchable history and sync it across devices by default.
The aim was a deliberately small alternative: a conversation that exists only while both people are present — and an interface that is honest about what “temporary” does and does not mean.
03
The Solution
01
Codes instead of contacts
Each tab receives a temporary code. Sharing it is the only way to be reached — there is no directory, search or contact list.
02
Consent before connection
Entering a code sends a request. Nothing opens until the other person explicitly accepts it.
03
Relay, don't record
Messages are forwarded to the other participant over a WebSocket connection and are not written to a database or kept in a server-side message buffer.
04
Ending is the default
Leaving, closing the tab, losing the connection or reaching a timeout destroys the room for both people.
04
How It Works
Get a temporary code
After choosing a display name, the server issues a six-digit code from a cryptographic random generator, checked against active codes and valid for 10 minutes by default.
Enter the other person's code
The request is schema-validated and rate-limited per connection and per IP address, with a stricter limit on failed attempts.
Accept or reject
The recipient sees the requester's display name and decides. Unanswered requests expire after two minutes.
Talk in a private room
Accepting creates a room with a random identifier and a 256-bit capability token. Both codes are consumed so they cannot be reused.
Leave, and the room is gone
Ending, closing the page, disconnecting, inactivity or the maximum lifetime destroys the room. The remaining person is notified and receives a fresh code.
05
Application Experience
Authentic screenshots from a local production build, using fictional names. Temporary codes are blurred. Select any screenshot to enlarge it and browse the rest.
Landing and introduction
The landing page explains the product before anyone enters a name: how a temporary connection works, what the privacy model is, and where its limits are.
How it works: five numbered moments, from receiving a code to the session being deleted. Security stepper, step one: messages are relayed, not stored in a database. The last step states the limits plainly and points to the security documentation. The app's own creator section, as it appears in the product.
Onboarding
Entering takes one field. The display name lives only in the current tab, and the server issues a temporary code immediately.
A temporary display name — no email, phone number or password. The temporary code (blurred here) and the field for the other person's code.
Consent before connection
Entering a code only sends a request. The recipient sees the requester's display name and must accept before any room exists.
Incoming request with explicit Accept and Reject.
The conversation
Messages appear in real time on both sides with delivery receipts. The header keeps the connection state and a reminder that nothing is saved in view.
Demo conversation from the first participant's side. The same conversation from the second participant's side.
Ending the session
Either person can end the room. After confirmation it is destroyed for both, and the other person is told the session has ended.
Ending asks for confirmation — the room cannot be recovered. What the other participant sees when the room is destroyed.
Privacy notice
The in-app privacy page says what the product cannot promise, including the absence of end-to-end encryption.
The privacy page: no accounts or database, and no end-to-end encryption.
Mobile
The same flow on a 390-pixel phone viewport, verified without horizontal overflow.
Landing on a phone-sized viewport. Temporary code on mobile (blurred). Chat on mobile.
06
System Architecture
One Node.js process serves the web app, the health checks and the real-time relay. There is no database, cache or message queue — every piece of session state is an in-memory map that disappears with the process.
Browser A
- React single-page app
- Socket.IO client
- Display name in tab session storage
- Conversation in page memory only
Browser B
- React single-page app
- Socket.IO client
- Display name in tab session storage
- Conversation in page memory only
Node.js process
Single instance · no database
Express
Serves the built app and health checks; hosts the file endpoints only when the flag is on.
Socket.IO relay
Typed events, same-origin check, every payload validated with Zod.
In-memory store
Users, codes, requests, rooms and transfers held in JavaScript maps.
Guards
Sliding-window rate limits, a connection cap and Helmet security headers.
Cleanup sweep
Every 15 seconds: expired codes, idle rooms and rooms past their lifetime.
Temporary files
Off by default. When on: per-room folder, deleted after download, rejection or timeout.
- Because state is per process, the app must run as a single instance; a restart ends every session.
- Transport security depends on deploying behind HTTPS — the app adds HSTS only when it is.
07
Privacy and Security Model
What the application does
- No accounts, phone numbers or email addresses; the self-chosen display name is kept in the tab's session storage and in server memory while connected
- No database: rooms, codes and requests exist only in server memory
- Messages are relayed to the other participant and are not stored in a server-side buffer
- Codes are single-use and expire; rooms are destroyed by the triggers below
- Application logs record lifecycle events only — never message text, display names, codes or tokens
- Strict Content Security Policy, no-referrer policy, frame blocking, payload validation and rate limits
What it does not guarantee
- Not end-to-end encrypted: the relay server processes message text while a session is active
- Removing data from memory is not a forensic guarantee — swap, crash dumps and the host are outside the app's control
- Hosting providers, proxies and networks can observe and may log connection metadata such as IP addresses and timing
- The other participant can always copy or screenshot what they see
- A six-digit code is a short secret protected by expiry and rate limits, not a strong credential
- Web fonts are loaded from Google Fonts, a third-party request
When a room is destroyed
- Either person ends the session
- Room destroyed for both; the other person gets a fresh code
- Tab closed or refreshed
- The client ends the session; the disconnect also destroys the room
- Connection lost
- Detected by the WebSocket heartbeat; room destroyed
- No activity
- Idle timeout after 15 minutes (configurable)
- Maximum lifetime
- Room closed 60 minutes after creation (configurable)
- Server shutdown
- Clients notified; all rooms and temporary files cleared
08
Technical Implementation
Frontend
- React 18
- TypeScript
- Vite 6
- Tailwind CSS
- Framer Motion
- GSAP
- React Three Fiber (lazy-loaded background)
Real-time
- Socket.IO 4
- Typed client/server event maps
- Acknowledgements
- Delivery receipts
- Typing indicators
Backend
- Node.js 20+
- Express 4
- Zod (environment and payloads)
- compression
- Multer (file sharing, flag-gated)
Security
- Helmet CSP and HSTS
- Permissions-Policy
- Same-origin socket check
- Sliding-window rate limiter
- Connection cap
Delivery & testing
- npm workspaces
- Multi-stage Dockerfile, non-root user
- Health and readiness endpoints
- Backend socket tests
09
Challenges and Engineering Decisions
- 01
Memory instead of a database
Keeping every session in process memory removes a whole class of retention problems — but it also means a restart ends all conversations and the app cannot be scaled across instances without adding the shared storage it was designed to avoid. The trade-off is accepted and documented.
- 02
Short codes, layered defences
A six-digit code is easy to share and easy to guess. It is made usable by single use, a 10-minute expiry, a consent step, and rate limits per connection, per IP address and on failed attempts — and the remaining risk is stated rather than hidden.
- 03
Capabilities, not query strings
Each room carries a 256-bit capability. When file sharing is enabled, downloads require it as a request header; tokens in URLs are rejected so they cannot end up in browser history or access logs.
- 04
Logging without content
The logger records that rooms open and close, never what was said, who said it, or which code was used. Logs from the hosting platform remain outside the application's control, which the privacy notice says.
- 05
Risky features off by default
File sharing touches the disk, so it ships disabled. When enabled it requires the recipient's consent, a sender-bound upload ticket and a size limit, and files are deleted after download, rejection, cancellation, a five-minute timeout or the end of the room.
10
Current Status
A working prototype, verified on a local production build. It has not been deployed publicly. The source includes a Dockerfile and notes for a single-service host; a public launch would need a production review first.
Verified in this review
- Typecheck, backend socket tests (7 of 7) and production build pass
- Two-person flow in a browser: code, request, accept, chat, end session
- Phone-sized layout without horizontal overflow
- File-sharing controls hidden when the feature flag is off
Not yet done
- Public deployment behind HTTPS
- End-to-end encryption
- Multi-instance hosting
- File sharing tested on a deployed instance
- Self-hosted fonts instead of Google Fonts
- Independent security review
Related projects
Next project
Forenzo — AI Forensics Assistant