I was paying $600+/month for Trello + Notion + Gmail + Zapier + a chatbot tool.
Five tabs open at all times. Five subscriptions bleeding money. Five places where context went to die. ๐ฉ
One day I asked myself: what if one app did all of this โ and I actually owned it?
So I built HiveOps ๐ โ an open-source company operating system with AI agents that execute real work, not just chat.
Here's why it's different from everything else out there. ๐
๐จ The Problem Nobody Talks About
Every SaaS tool solves ONE problem:
- Trello โ tasks
- Notion โ docs
- Gmail โ email
- Zapier โ automation
- Chatbot โ AI
But your work doesn't live in silos. A customer email becomes a task. A task triggers a workflow. A workflow notifies your team. It's all connected โ except your tools aren't.
You end up copy-pasting between 5 tabs and paying for the privilege. ๐ธ
๐ค Meet the AI Agents (This Changes Everything)
Here's what most "AI tools" actually are: a chatbot in a fancy wrapper. You ask a question. It gives an answer. You still do the work.
HiveOps agents are different. They execute tasks like real workers:
pending โ execute โ retry (10s) โ retry (20s) โ retry (40s) โ dead letter queue โ notify creator
That's the same retry + backoff + DLQ pattern you'd use in a production message queue. Except it's running your business operations. ๐
The killer feature? Agents delegate to each other.
// Marketing agent needs a landing page?
// Delegate to the Engineering agent.
await agentDelegate(
marketingAgentId,
engineeringAgentId,
"We need a landing page for Q2 campaign",
taskId
);
Each agent has:
- โ๏ธ Custom system prompt (personality + instructions)
- ๐ข Department assignment
- โถ๏ธ Auto-execution loop (picks up pending tasks automatically)
- ๐ Retry logic with exponential backoff
- ๐ Dead letter queue after 3 failures
You assign a task to an agent โ it picks it up โ runs it โ handles errors โ notifies you if it fails. No human babysitting required.
๐ Task Management โ Built for Teams AND Agents
Every task has:
- ๐ด๐ก๐ ๐ข Priority levels (urgent โ low)
- ๐ Status tracking (pending โ in progress โ review โ completed โ blocked)
- ๐ค Assign to humans OR ๐ค AI agents
- ๐ฌ Comments and file attachments
- ๐ Retry tracking with error history
๐ Workflow Automation โ No Zapier Tax
The rule engine follows a dead-simple pattern:
Trigger โ Condition โ Action
Example workflow:
- ๐ When: Task is created
- โ If: priority = urgent
- โก Then: Notify manager โ Auto-assign to ops agent โ Post in #urgent channel
Three pre-built workflows come out of the box. Create your own in seconds.
๐ง Real Email โ Not a Mock
Inbox. Sent. Drafts. Starred. Labels. Search.
- ๐ฅ IMAP polling for inbound mail
- ๐ค SMTP for outbound
- ๐ค AI drafts replies based on context
- ๐ Auto-notifications for new mail
Not a demo. Not a mock. Real email inside your OS.
๐ฌ Real-Time Chat โ Socket.IO
- ๐ข Department channels
- โ๏ธ Direct messaging
- ๐ค Agent chat (talk to your AI workers)
- โจ๏ธ Typing indicators
- ๐ Real-time notifications
๐ Under the Hood (Architecture)
hiveops/
โโโ server/ # Node.js + Express
โ โโโ src/
โ โ โโโ services/
โ โ โ โโโ ai-engine.js # LLM integration
โ โ โ โโโ execution-loop.js # Retry + backoff + DLQ
โ โ โ โโโ workflows.js # Rule engine
โ โ โ โโโ scheduler.js # DB-persisted cron
โ โ โ โโโ email-real.js # SMTP + IMAP
โ โ โโโ routes/ # 12 API modules
โ โโโ __tests__/ # 58 tests โ
โโโ web/ # Next.js 14 + Tailwind
โโโ docker-compose.yml # Postgres + API + Web
Tech stack:
- ๐ฅ๏ธ Backend: Node.js + Express
- ๐จ Frontend: Next.js 14 (App Router) + React 18 + Tailwind
- ๐พ Database: SQLite (dev) OR PostgreSQL (production) โ same API, one env var switch
- โก Real-time: Socket.IO
- ๐ Auth: JWT + bcrypt + role-based access
- ๐ง AI: Any OpenAI-compatible API (OpenAI, Ollama, local models)
The dual-database adapter I'm most proud of โ same code, both backends:
// Works on SQLite AND PostgreSQL โ zero changes
const user = await db.prepare('SELECT * FROM users WHERE id = ?').get(id);
const tasks = await db.prepare('SELECT * FROM tasks WHERE status = ?').all('pending');
๐ Self-Host = Your Data, Your Rules
| SaaS Stack | HiveOps | |
|---|---|---|
| ๐ฐ Cost | $50-500/tool/month | Free forever |
| ๐ Data | Their servers | Your servers |
| ๐ค AI | Separate subscription | Built-in |
| โก Automation | Zapier $30+/mo | Included |
| ๐ณ Setup | Sign up + configure | docker-compose up |
Your tasks, emails, chat messages, and knowledge base never leave your infrastructure. ๐
๐ Run It in 60 Seconds
git clone https://github.com/mamoor123/hiveops.git && cd hiveops
cp .env.example .env
openssl rand -base64 32 # paste into .env as JWT_SECRET
docker-compose up --build
Open http://localhost:3000 โ create account โ done. ๐ฏ
No Docker? No problem. SQLite mode works standalone:
cd server && npm install && npm run migrate
JWT_SECRET=your-secret npm run dev
๐งช It's Actually Tested
58 tests. Not "vibes-based" development:
- ๐ Auth โ 14 tests (register, login, profile, tokens)
- ๐ Tasks โ 13 tests (CRUD, filters, comments)
- ๐ Workflows โ 8 tests (triggers, conditions, actions)
- ๐ค AI โ 11 tests (chat, execution, delegation)
- ๐ข Departments โ 12 tests (knowledge, email)
๐งฉ Full Feature List
- โ Task Management (priorities, statuses, assignments, comments, attachments)
- ๐ค AI Agents (auto-execution, retries, DLQ, agent-to-agent delegation)
- ๐ Workflow Automation (trigger โ condition โ action rules)
- ๐ง Real Email (SMTP + IMAP, AI draft replies)
- ๐ฌ Real-Time Chat (Socket.IO, channels, typing indicators)
- ๐ Knowledge Base (full-text search, categories)
- โฐ Scheduler (DB-persisted cron, auto-creates tasks)
- ๐ JWT Auth + Role-Based Access (admin/member)
- ๐ Dashboard (live stats)
๐ฎ What's Coming
- ๐ฑ Mobile-friendly responsive UI
- ๐ Calendar view for tasks
- ๐ Webhook integrations
- ๐ข Multi-tenant support
- ๐ SSO (SAML/OIDC)
๐ฌ The Real Question
What SaaS tools are you paying for that could be one self-hosted app?
I'm genuinely curious. Drop a comment ๐ โ especially if you've tried replacing a SaaS stack with something you own.
โญ Star the repo if this was useful: github.com/mamoor123/hiveops
Built with โค๏ธ and a stubborn refusal to pay $600/month for things that should be free.
P.S. โ If you want to contribute, all PRs welcome. Check out CONTRIBUTING.md.





Top comments (0)