https://github.com/montte-erp/montte-nx
Open source erp
https://github.com/montte-erp/montte-nx
better-auth bun business-finance drizzle-orm elysiajs finance finance-tracker fullstack monorepo nx ofx open-source personal-finance postgresql react shadcn-ui tailwindcss tanstack-router trpc typescript
Last synced: about 2 months ago
JSON representation
Open source erp
- Host: GitHub
- URL: https://github.com/montte-erp/montte-nx
- Owner: Montte-erp
- License: apache-2.0
- Created: 2025-11-01T19:54:33.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2026-04-13T16:05:55.000Z (2 months ago)
- Last Synced: 2026-04-13T16:08:03.243Z (2 months ago)
- Topics: better-auth, bun, business-finance, drizzle-orm, elysiajs, finance, finance-tracker, fullstack, monorepo, nx, ofx, open-source, personal-finance, postgresql, react, shadcn-ui, tailwindcss, tanstack-router, trpc, typescript
- Language: TypeScript
- Homepage: https://montte.co
- Size: 20.7 MB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Agents: AGENTS.md
Awesome Lists containing this project
README
# Montte
[](https://opensource.org/licenses/Apache-2.0)
[](CONTRIBUTING.md)
**Montte** is an AI-first ERP built to solve the financial management pain points of SaaS companies and coworking spaces. It combines traditional financial controls — bank accounts, transactions, bills, credit cards, budgets — with AI-powered analytics and an intelligent assistant (Rubi) that helps you understand your finances through natural language.
---
## Getting Started
### Prerequisites
- [Bun](https://bun.sh/) ≥ 1.0
- [Docker](https://docs.docker.com/get-docker/) or [Podman](https://podman.io/) with Compose
### Setup
```bash
git clone https://github.com/Montte-erp/montte-nx.git
cd montte-nx
bun install
bun dev
```
`bun dev` handles everything on first run — creates `apps/web/.env.local`, starts containers, pushes the DB schema, seeds the event catalog, and starts the app at `http://localhost:3000`.
See [CONTRIBUTING.md](CONTRIBUTING.md) for staging setup and all available commands.
---
## Key Features
### Financial Management
- **Bank Accounts**: Connect and manage multiple bank accounts in one place
- **Transactions**: Import, categorize, and track all financial transactions with bulk operations and smart filters
- **Bills (Contas a Pagar)**: Manage payables, create bills from transactions, and track due dates
- **Credit Cards**: Track credit card spending and statements
- **Categories & Tags**: Organize finances with custom categories, subcategories, and cost centers (centros de custo)
- **Contacts**: Manage suppliers, clients, and service providers
### Budget & Goals
- **Budget Goals**: Set spending limits by category and track progress in real-time
- **Budget Alerts**: Automated notifications when spending approaches or exceeds thresholds (powered by durable background workflows)
### Services & Inventory
- **Services**: Manage recurring and one-time services with analytics
- **Inventory**: Basic inventory tracking
### Analytics & Dashboards
- **Custom Dashboards**: Build dashboards with flexible insight tiles
- **Analytics Engine**: Breakdown and trend analysis across financial data
- **Event Catalog**: Track and analyze platform events with property definitions
- **Data Management**: Define and manage event definitions and properties
### AI Assistant (Rubi)
- **Chat Interface**: Natural language financial assistant accessible from any screen
- **Agent Network**: Multi-agent system powered by Mastra for intelligent routing and specialized tasks
- **Context-Aware**: Understands your financial data and provides relevant insights
### Integrations & Webhooks
- **Webhooks**: Configure outgoing webhooks for real-time event notifications
- **API Keys**: Programmatic access for external integrations
### Team Collaboration
- **Multi-tenant Organizations**: Isolated workspaces for each company
- **Teams**: Create teams within organizations with scoped access
- **Role-Based Access**: Owner, Admin, and Member roles with granular permissions
- **Invitations**: Invite members via email with pending invitation management
### Billing
Usage-based billing powered by Stripe meter events. Each billable event (AI chat, transactions, webhooks, etc.) has a free tier — usage above the free tier is metered and billed automatically. Optional addon subscriptions (Boost, Scale, Enterprise) unlock additional features.
### Security & Authentication
- Email/password, Google OAuth, Magic Link, Email OTP
- Two-factor authentication (2FA)
- Session management with device tracking
- Rate limiting and bot detection via Arcjet
---
## Tech Stack
Built as an **Nx** monorepo with **Bun**.
| Category | Technology |
| :------------ | :----------------------------------------------------------------------------------- |
| **Frontend** | React 19, TanStack Start (SSR), TanStack Router, TanStack Query, shadcn/ui, Tailwind CSS, TypeScript |
| **AI** | Mastra (Agent orchestration) |
| **Backend** | oRPC (type-safe API), DBOS (durable workflows), Drizzle ORM, PostgreSQL |
| **Auth** | Better Auth |
| **Jobs** | DBOS (durable workflows, cron, retries), Redis (rate limiting, credit counters) |
| **Storage** | MinIO (S3-compatible) |
| **Security** | Arcjet (Rate limiting & bot detection) |
| **Analytics** | PostHog |
| **Email** | Resend (React Email templates) |
| **Payments** | Stripe |
| **Tooling** | Nx, oxlint, oxfmt |
---
## Project Structure
```
montte-nx/
├── apps/
│ └── web/ # TanStack Start (SSR) — dashboard + oRPC routers + DBOS workflows
├── core/
│ ├── database/ # Drizzle ORM schemas & repositories
│ ├── agents/ # AI agents
│ ├── authentication/ # Better Auth setup
│ ├── environment/ # Zod-validated env vars
│ ├── redis/ # Redis singleton
│ ├── logging/ # Pino logger + error classes
│ ├── files/ # MinIO file storage
│ ├── posthog/ # PostHog server/client + config
│ ├── stripe/ # Stripe singleton
│ ├── transactional/ # Resend + email templates
│ └── utils/ # Shared utilities
├── packages/
│ ├── analytics/ # Analytics engine
│ ├── events/ # Event catalog, schemas, credits
│ └── ui/ # Radix + Tailwind component library
├── libraries/
│ ├── cli/ # @montte/cli — TanStack Intent skills + CLI tooling
│ └── hyprpay/ # @montte/hyprpay — HyprPay SDK
└── tooling/
├── oxc/ # oxlint + oxfmt configs
└── typescript/ # Shared TypeScript configs
```
---
## Contributing
Contributions are welcome. Please read our [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct and the process for submitting pull requests.
## License
This project is licensed under the Apache-2.0 License. See the [LICENSE.md](LICENSE.md) file for details.