Create an automation platform.
The goal of this project is to implement a software suite that functions similarly to IFTTT and Zapier. It allows users to interconnect services (like Gmail, GitHub, Spotify) by creating AREAs (Action-REAction).
An AREA consists of:
- Action: A trigger (e.g., "A new email is received").
- REaction: A consequence (e.g., "Create a GitHub issue").
The project is organized as a Monorepo managed by Bun Workspaces and consists of three main components:
-
Application Server (Backend):
- REST API powered by ElysiaJS.
- Handles business logic, user management, and the execution of AREA triggers (Hooks).
- Exposes
about.jsonfor service discovery.
-
Web Client:
- Frontend powered by SvelteKit (Svelte 5).
- Allows users to register, login, and configure their widgets and areas via a Node-based editor.
-
Mobile Client:
- Native app powered by React Native (Expo SDK 54).
- Provides the same functionality as the web client, optimized for mobile devices with native animations.
- Runtime/Manager: Bun
- Backend: ElysiaJS, Prisma (PostgreSQL), TypeBox
- Frontend: SvelteKit (Svelte 5), TailwindCSS v4, Shadcn-Svelte
- Mobile: Expo (React Native 0.81), NativeWind
- Type Safety: Eden Treaty (End-to-End type safety between Backend, Web, and Mobile)
- DevOps: Docker, Docker Compose
- User Management:
- Registration/Login via Email & Password.
- Services Integration:
- OAuth2 authentication (Gmail, GitHub, Spotify).
- API Key management (Discord, Trello).
- Automation:
- Trigger/Action: Automatic polling via
HookManager. - Reaction: Asynchronous execution.
- Interpolation: Dynamic variable injection (e.g., use the Issue Title in a Discord message).
- Trigger/Action: Automatic polling via
- Accessibility:
- Fully accessible Web and Mobile interfaces.
git clone https://github.com/Area-Organization/main-area.git
cd main-areaSince this is a Bun workspace, installing at the root installs for all packages.
bun installWe use a centralized .env file at the root of the monorepo.
- Rename
.env.exampleto.envat the root. - Add your database URL, OAuth Credentials (GitHub, Google, Spotify), and API configurations (Trello).
- Crucial: For the mobile app to connect to the backend, define
PUBLIC_BACKEND_API_URL.
# Mobile Connection (Use http://0.0.0.0:8080 for emulators, or ngrok for physical devices)
PUBLIC_BACKEND_API_URL=https://your-generated-id.ngrok-free.app
FRONTEND_URL=http://localhost:8081Start the local database and push the schema:
bun run db:pushTo run the project locally for development:
Terminal 1: Infrastructure (Backend + Web)
bun run dev- Server runs at:
http://localhost:8080 - Web runs at:
http://localhost:8081
Terminal 2: Mobile (Expo)
To run the mobile app, you have two options:
Option A: Emulators (iOS/Android)
If you are using a computer emulator, localhost works fine.
cd apps/mobile
bun start --android # or --iosOption B: Physical Device (Recommended) To run the app on your real phone, your phone needs to access the backend. We use ngrok for this.
- Start ngrok on port 8080:
ngrok http 8080
- Update
PUBLIC_BACKEND_API_URLin your root.envwith the ngrok HTTPS URL. - Start the mobile app with
bun run startand scan the QR code.
Per the project requirements, the entire suite can be orchestrated via Docker Compose.
1. Pre-build Mobile APK (Optional) If you want the mobile APK to be served by the container:
bun run --filter mobile build:preview
# Renames the output to client.apk automatically handled by script if configured,
# otherwise rename manually to apps/mobile/client.apk2. Build and Run
docker-compose up --buildServices:
- Server: Accessible at
http://localhost:8080 - Web Client: Accessible at
http://localhost:8081 - Mobile Download: The APK is accessible via a shared volume (implementation dependent).
The server exposes a strictly formatted about.json at the root to describe available services.
GET http://localhost:8080/about.json
Response Example:
{
"client": {
"host": "127.0.0.1"
},
"server": {
"current_time": 1709210000,
"services": [
{
"name": "github",
"actions": [
{ "name": "new_issue", "description": "..." },
{ "name": "new_star", "description": "..." }
],
"reactions": [{ "name": "create_issue", "description": "..." }]
},
{
"name": "discord",
"actions": [{ "name": "on_message", "description": "..." }],
"reactions": [{ "name": "send_message", "description": "..." }]
}
]
}
}area-monorepo/
├── apps/
│ ├── backend/ # ElysiaJS API Server
│ ├── mobile/ # Expo React Native App
│ └── web/ # SvelteKit Web App
├── packages/
│ └── types/ # Shared Types & DTOs (Eden Treaty)
├── docs/ # Docusaurus Documentation
├── docker-compose.yml
├── package.json
└── README.mdWe welcome contributions! Please read our HOWTOCONTRIBUTE.md for details on our code of conduct, and the process for submitting pull requests.
| Name | GitHub | Role |
|---|---|---|
| Thibaud Wimmer | @BonesFR | Frontend Web |
| Mateo Cabrera | @novaepitech | Mobile App |
| Alexandre Bacha | @Aurelien744 | Backend |
| Aurélien Lamberger | @bachaalexandre | Backend |