Work · Innovation Lab
The Island (this portfolio)
A multiplayer 3D portfolio on its own backend. It runs on about $3.40 a month of AWS at portfolio traffic and is designed for 1,000 people at once.
- Role
- Solo. Architecture, backend, infrastructure and 3D
- Period
- 2026 – present
- Status
- Status: In progress
In numbers
1,000
concurrent visitors: the design target, tested locally with bots
$3.40
a month on AWS at portfolio traffic
0
public ports on the game server
The problem
Most portfolios describe backend skills. This one runs on them. Every visitor is a live avatar on a small coastal island, under the real sky over their own city:
- chat appears as speech bubbles, and every page shows how many people are on it right now;
- an arcade of six live games (one is a shared Pixel Wall) and a visitor garden, all refereed and saved by the server;
- a bonfire on the beach that anyone can light for everyone;
- the board by the lighthouse shows the real server's telemetry, live.
Constraints
- ≤ $5/month on AWS at portfolio traffic. Separately, the design target is 1,000 concurrent visitors.
- Shared AWS account: nothing outside this project may be touched.
- Recruiter-friendly: a fast, crawlable classic mode next to the 3D world.
Architecture
Browser ── CloudFront ─┬─ /* → S3 static Next.js export + 3D assets
├─ /api/* → Lambda URLs contact, garden, stats
└─ /rt → VPC origin EC2 t4g.nano, private subnet
Node.js + uWebSockets.js
└─ DynamoDB · S3 snapshots
Key decisions
- One stateful real-time node, not serverless WebSockets. At 10 Hz movement, API Gateway would cost over $150/month for just five visitors. One t4g.nano (Graviton) instance costs about $2 a month.
- Interest management. A spatial grid with uWebSockets pub/sub topics. Each changed cell is encoded once per tick, so cost grows with active cells, not players².
- No public ingress. CloudFront reaches the server through a VPC origin. IPv6 egress and gateway endpoints replace a NAT gateway ($33/month).
- Static export. The classic pages are prebuilt HTML on CloudFront's free tier.
Results so far
Measured locally with bots; numbers from the real server come next.
- 1,000 bots in the 3D world, 70% of them walking at 10 updates a second: all connected, zero errors, world tick about 10 ms at p99, about 1.9 KB/s per player, 71 MB of memory.
- Chaos test with 1,000 bots through a restart, a crash and a database outage: everyone back within about 4 seconds under the same name, and the Pixel Wall restored pixel for pixel.
- Classic pages ship about 210–255 KB of compressed JavaScript. On a desktop that can take it, a live view of the island loads after the page is ready; phones and slower machines get photographs of it instead, and the full 3D world loads only when you choose it.
Read more
- Why my portfolio runs on a $2 server: the cost model.
- I broke my own server on purpose: what the chaos test found.
- Ghosts: replaying how earlier visitors walked the island.
- Under the hood: the live architecture, with the server's own numbers.
Built with
Node.js · TypeScript · uWebSockets.js · DynamoDB · AWS Lambda · CloudFront · EC2 Graviton · AWS CDK · Next.js · Three.js
Open for enhancement
What should The Island (this portfolio) do next?
Suggest a feature, an improvement or an integration, and vote for the ideas you like. Kenil reads every one, and approves each before it goes up.
Loading…