System Requirements
Development Environment
To develop with Mercury Core, you’ll need:- Bun - Latest version (expected as
bun) - Docker - Latest version (optional, expected as
docker)- Alternative container managers like Podman are supported
- Terminal - Command line access
- Modern web browser - Early 2024 onwards for most major browsers
- Code editor - Visual Studio Code recommended
The Mercury Core development extension pack is recommended for VS Code users, as it includes all necessary extensions plus quality-of-life improvements.
Production Environment
For hosting Mercury Core in production, you’ll need:- Bun - Latest version (expected as
bun) - Docker - Latest version or another container manager (expected as
docker) - Caddy - Latest version for reverse proxy (expected as
caddy) - Terminal - Command line access
- Server hardware - Physical or virtual server
Installation Options
Mercury Core can be set up in two primary ways:Development Setup
Ideal for local development, testing, and customization. This setup includes:- Hot-reload development server
- Database and economy services via Docker
- Inspector tools for debugging
- Fast iteration with Vite
Production Setup
Optimized for hosting and serving your platform to users. This setup includes:- Production-optimized builds
- Caddy reverse proxy with automatic HTTPS
- Container orchestration
- Background process management options
Technology Stack
Mercury Core is built with modern, performant technologies:- Frontend: Svelte & SvelteKit for reactive UI and full-stack capabilities
- Language: TypeScript throughout for type safety and intellisense
- Database: SurrealDB for multi-model, relational data storage
- Build Tool: Vite for fast development and zero-downtime deployments
- Reverse Proxy: Caddy for automatic HTTPS and URL rewriting
- Runtime: Bun for fast JavaScript/TypeScript execution
Data Directory Structure
Mercury Core stores runtime data in adata/ directory that should be kept private:
data/assets- Binary files for assets (images, meshes, etc.)data/economy- Transaction ledger and economy datadata/icons- Place iconsdata/surreal- Database filesdata/thumbnails- Asset thumbnails
Next Steps
Choose your installation path:Development Setup
Set up a local development environment
Production Setup
Deploy Mercury Core to production