This guide will walk you through installing, configuring, and running HoloBridge.
Navigation: Home | Getting Started | API Reference | WebSocket | Plugins | Security | Network
git clone https://github.com/coder-soft/holobridge.git
cd holobridge
npm install
Copy .env.example to .env and fill in your values:
# Discord Bot Token (required)
# Get this from https://discord.com/developers/applications
DISCORD_TOKEN=your_discord_bot_token_here
# API Configuration
PORT=3000
HOST=0.0.0.0
API_KEY=your_secure_api_key_here
# Optional: Enable debug logging
DEBUG=false
# Optional: Plugin configuration
PLUGINS_ENABLED=true
PLUGINS_DIR=plugins
# Optional: Rate limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_WINDOW_MS=60000
RATE_LIMIT_MAX=100
| Variable | Required | Default | Description |
|---|---|---|---|
DISCORD_TOKEN |
Yes | - | Your Discord bot token |
API_KEY |
Yes | - | API key for authenticating requests |
PORT |
No | 3000 |
Server port |
HOST |
No | 0.0.0.0 |
Host to bind to (see Network Configuration) |
DEBUG |
No | false |
Enable debug logging |
PLUGINS_ENABLED |
No | true |
Enable/disable the plugin system |
PLUGINS_DIR |
No | plugins |
Directory for plugins |
RATE_LIMIT_ENABLED |
No | true |
Enable rate limiting |
RATE_LIMIT_WINDOW_MS |
No | 60000 |
Rate limit window in milliseconds |
RATE_LIMIT_MAX |
No | 100 |
Max requests per window |
npm run dev
npm run build
npm start
docker-compose up -d
Follow these steps to create a Discord bot and invite it to your server:
.env filebotapplications.commands⚠️ Important: Keep your bot token and API key secret. Never commit them to version control
Once the server is running, you can test the API with curl:
# Health check (no auth required)
curl http://localhost:3000/health
# List all guilds
curl -H "X-API-Key: your_api_key" http://localhost:3000/api/guilds
When the server starts, it will display all available endpoints:
🌐 API server listening on 0.0.0.0:3000
Local: http://localhost:3000/api
Network: http://192.168.1.100:3000/api
API Docs: http://192.168.1.100:3000/api/docs
Plugin API: http://192.168.1.100:3000/api/plugins
WebSocket: ws://192.168.1.100:3000
Health: http://192.168.1.100:3000/health