About this software
About Space Worm 3D
Space Worm 3D is a Next.js 16 / React 19 / TypeScript web game in which players steer glowing segmented worms around a canvas-rendered arena, eat food, collect power-ups and compete against AI bots. The code includes a game engine with spatial-grid collisions, a utility-based bot controller, a Web Audio engine, a skin system and HUD components. Accounts use either a built-in JWT login with user and admin roles or optional Clerk sign-in, and data is held in a built-in transactional store. The package ships with a Dockerfile, docker-compose, setup docs and API reference. It is web-only: the README states no mobile app is included, and the digest shows no payment integration.
Why Space Worm 3D
What makes it better
than the alternatives
- 01
Utility-based bot AI
Bots are driven by an evaluator that picks between forage, hunt, evade and upgrade intents, with anti-stuck logic and named archetypes.
- 02
Full game feature set in code
Entities for food, power-ups, crystals, gravity wells, hazard gates and celestial bodies sit alongside dedicated arena, worm, food and FX renderers.
- 03
Skin hangar
Skin palettes and a Skin Hangar modal let players choose from a large catalogue (README claims 43 skins).
- 04
Dual authentication
Built-in JWT auth with user/admin roles that re-checks the live DB on each request, plus optional Clerk cloud sign-in.
- 05
Deployment-ready packaging
Multi-stage Docker build running as non-root, compose file requiring JWT and admin secrets, env example, and setup/architecture/API docs.
Game Engine
- Main game engine with collision handling
- Spatial grid for neighbour lookups
- Camera and input manager
- Touch controls and boost button
Bot AI
- Bot manager with staggered decision ticks
- Utility evaluator with forage
- hunt
- evade and upgrade intents
- Bot roster
- archetypes and tuning config
- Stuck detection steering bots to arena centre
Entities and Rendering
- Worm
- food
- power-up
- crystal
- gravity well
- hazard gate and celestial body entities
- Canvas renderers for arena
- worms
- food and effects
- Skin palettes
- Web Audio engine
HUD and Menus
- Game HUD
- minimap radar
- leaderboard card
- length stats
- live event feed
- crown banner
- Pause and game-over modals
- Main menu
- how-to-play
- records
- settings and skin hangar modals
Authentication
- Register and login API routes issuing JWT session tokens
- Bearer-token middleware with requireAuth and requireAdmin
- Optional Clerk sign-in with display-name sync
- Guest name entry
Progression and Leaderboards
- Pilot profile and progress API routes
- XP-to-level calculation and progression config
- Leaderboard API route
- Zustand game and pilot stores
Admin Tools
- Admin API routes for broadcast
- reset-scores and user listing
- Admin-role enforcement with 403 for non-admins
- Bootstrap admin account from environment password or generated session password
Multiplayer Scaffolding
- Room manager module
- Voice chat module
- Multiplayer modal in the UI
Data and Deployment
- In-memory/built-in store with schema.sql and seed.sql
- Dockerfile and docker-compose with healthcheck and data volume
- Setup
- architecture
- API and deployment docs
| Language | Version | Framework | Used for | Share of code |
|---|---|---|---|---|
| TypeScript | — | — | Front-end | 76.9% |
| TypeScript (React) | — | — | Front-end | 20.8% |
| SQL | — | — | Database | 1.9% |
| CSS | — | — | Styling | 0.4% |
- Primary language
- TypeScript 5.7.3 on Node.js 24 LTS (engines >=24.0.0 <25.0.0)
- Framework
- Next.js 16.4.3 with React 19.2.8
- Database
- PostgreSQL
- Authentication
- Email/password login and registration issuing signed JWT Bearer tokens (JWT_SECRET), with role checks (user/admin); optional Clerk integration for cloud pilot sync
- Licence
- Single-site
- Screens
- 1
- Database tables
- 3
- Supported languages
- English only; no i18n library found in the digest; no RTL support
- Browser support
- Modern evergreen browsers with HTML5 Canvas and Web Audio API support (no tested browser matrix in the digest)
| Minimum | Recommended | |
|---|---|---|
| CPU | 1 vCPU | 2 vCPU |
| RAM | 1 GB RAM | 2 GB RAM |
| OS | Linux with Node.js 24 LTS (node:24-alpine in the Dockerfile); Docker Compose optional | Linux with Node.js 24 LTS (node:24-alpine in the Dockerfile); Docker Compose optional |
| Est. monthly hosting | $10 | $10 |
```bash cp .env.example .env # Set JWT_SECRET, ADMIN_BOOTSTRAP_PASSWORD (and optionally PILOT_BOOTSTRAP_PASSWORD) in .env docker compose up -d --build ``` The app listens on port 3000. Data persists in ./data.
```bash nvm install 24 npm ci npm run build npm start ``` Set JWT_SECRET and ADMIN_BOOTSTRAP_PASSWORD in the environment before starting. Put a reverse proxy with TLS in front of port 3000.
Quality report
Manually reviewedHow to read the quality report
What this is. Every project on Vibe96 goes through an automated audit of its source code before a reviewer in Dubai checks it by hand. The score is out of 100; 75 is the minimum to be listed, and any single failing check blocks a listing regardless of the score.
- Security
- No real credentials in the code, every data-changing route protected, admin areas role-gated, no SQL built from user input.
- Code structure
- A developer can navigate and extend it: clear module boundaries, no giant files, little copy-paste.
- Docs & completeness
- The setup guide, example config, schema and required files the builder committed to are actually in the archive.
- Dependency health
- Packages pinned, no known critical vulnerabilities, no abandoned libraries in production paths.
- Build & deploy
- A clean machine can restore, build and start it by following the shipped instructions.
Warnings are problems that didn't block the listing; they stay visible here until a later version clears them. The audit reads the code — it does not run it — so always try the live demo before you buy. Lines of code are counted from the same audited archive.
Reviewer notes (4 minor)
Small improvements the developer has been told about. None of them stop the software from working.
Versions & updates
No updates yet. New versions appear here with a changelog.
Buyers receive updates free for 1 year.
What you get
- </>Full source codeThe complete audited source, delivered as a download from your account. No obfuscation.
- ▤DocumentationSetup guide, architecture notes, CLAUDE.md and AGENTS.md.
- ↻One year of updatesEvery new version the builder publishes, free for 12 months.
- ♧30 days of supportInstallation and defect support through Vibe96 tickets.