This project is a full-stack Bun.js application featuring:
- Multi-platform bot support (Telegram, Discord, Slack)
- Backend API built with Elysia.js
- Frontend Svelte application with TypeScript
- Supabase integration for database and authentication
/api/*- REST API endpoints/ui/*- SPA Svelte/swagger- Documentation
-
Clone the repository:
git clone https://github.com/pashaydev/unborn cd unborn -
Install dependencies:
bun install
You must have bun installed: For more information, refer to the Bun documentation.
-
Set up environment variables:
# Bot Tokens export TELEGRAM_BOT_TOKEN=your-telegram-bot-token export DISCORD_BOT_TOKEN=your-discord-bot-token export SLACK_BOT_ID=your-slack-app-id export SLACK_APP_TOKEN=your-slack-app-token export SLACK_BOT_OAUTH_TOKEN=your-slack-ouath export SLACK_SIGNING_SECRET=your-slack-signing-secret export DISCORD_APP_ID=your-discord-app-id # API Keys export ANTHROPIC_API_KEY=your-anthropic-api-key export OPENAI_API_KEY=your-openai-api-key export STABLE_DIFFUSION_API_KEY=your-api-key # Database export SUPABASE_URL=your-supabase-url export SUPABASE_SERVICE_ROLE=your-supabase-service-role-token # Other Configuration export REDDIT_API_URL=reddit-api-url export PORT=your-port-default-3000 export SECRET_PATH=your-secret-path-or-empty export JWT_SECRET=your-jwt-secret
Start the backend and bots in development mode with inspector:
# backend app & bots
npm run dev
# frontend
vite build --watchStart the backend and bots in production mode:
npm run startBuild the frontend:
npm run build:client*Backend will not require build, run as it.
The application will be available at:
- Backend API:
http://localhost:3000/api - Frontend:
http://localhost:3000/ui - Bot's working via web sockets throw 3000 port
Build the frontend:
npm run buildFeel free to submit issues and pull requests. Contributions are welcome!
This project is licensed under the MIT License.
To run tests, use the following command:
npm testBuild the Docker image:
npm run docker:build-
Backend:
- Bun.js
- Elysia.js
- TypeScript
- Supabase
-
Frontend:
- Svelte
- TypeScript
- Vite
- TailwindCSS
-
Bot Platforms:
- Telegram
- Discord
- Slack
-
AI Integration:
- OpenAI
- Anthropic
- Stable Diffusion