erxes XOS: a self-hosted platform behind a GraphQL federation gateway
Experience Operating System (XOS) that unifies marketing, sales, operations, and support — run your core business seamlessly while replacing HubSpot, Zendesk, Linear, Wix and more.
At a glance
- What is it?
- erxes is an Nx monorepo that bundles CRM, ticketing, project management and CMS into one self-hosted stack. The install is heavier than a single Node app, and the licence is split between AGPLv3 core and EE-only plugins.
- Who is it for?
- erxes fits teams that already run MongoDB and Redis, have a Node engineer who can keep a pnpm workspace and several long-running services alive, and want to avoid paying per-seat SaaS pricing for CRM, ticketing and internal operations. It does not fit a small team with no Node or container experience: the repository expects pnpm 8 or newer, a gateway on port 4000, a core API on 3300, and a separate logs-service before the undo journal persists anything.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- erxes/erxes4,111 ★ · +27
| Repository | 2026-09-23 | 2026-11-25 |
|---|---|---|
| erxes/erxes | 4.1k | 4.1k |
27 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What erxes replaces, and who ends up running it
erxes describes itself as an Experience Operating System, abbreviated XOS, and the README positions it against HubSpot, Zendesk, Linear and Wix by name. The pitch is consolidation: instead of stitching a CRM, a helpdesk, a project tracker and a website builder together through integrations, you run one self-hosted platform whose modules share the same contacts, products and segments. The topics list on the repository repeats the same framing with entries such as hubspot-alternative, zendesk-alternative and linear-alternative.
The intended audience is not the solo developer. The README says the project is for SaaS providers and digital marketing agencies or developers who want to create "unique experiences that work for all types of business", and it is explicit that the platform is self-hosted and that data stays under your control with no third-party monitoring. That is the real selling point: a company with a data residency requirement, or one that has outgrown per-seat pricing, can run the whole thing on its own infrastructure. The cost of that control is operational. You are the one who keeps MongoDB, Redis, the gateway and every plugin API running.
The core ships with six modules that are present regardless of which plugins you install: My inbox, Contacts, Products, Segments, Automation and Documents. Everything else is a plugin chosen from the marketplace after installation, which means a fresh install is a CRM skeleton rather than a finished product.
How the Nx monorepo and GraphQL federation actually fit together
The repository is a pnpm workspace managed by Nx, and the architecture section of the README describes a microservices layout. An API gateway listens on port 4000 and runs Apollo Router with service discovery. Behind it sit a core API on port 3300 and a set of plugin APIs. The backend stack is GraphQL Federation plus tRPC microservices on Node.js and TypeScript, with MongoDB for storage, Redis and BullMQ for queues.
The frontend is split the same way. Module Federation loads micro-frontends built with React 18, Rspack and TailwindCSS, and there are standalone apps including a Next.js customer portal, a POS client and widgets. The practical consequence of this layout is that a plugin is not a folder you drop in. Adding one means a backend service that registers itself as a GraphQL subgraph, plus a frontend remote that the host application loads at runtime. The repository ships a create-plugin script for that scaffolding, which is the honest signal that the maintainers expect third parties to extend the platform rather than only configure it.
The gateway is also where the security middleware lives. The dependency list includes @escape.tech/graphql-armor with separate packages for character limits, maximum aliases and maximum query depth, so query-cost controls are applied in front of the subgraphs rather than inside each one.
Installing erxes locally with pnpm and starting the core API
The README lists four prerequisites: Node.js 18 or newer, pnpm version 8 or higher, MongoDB on port 27017 and Redis on port 6379. The package.json enforces the package manager: the engines block maps npm and yarn to the string "please-use-pnpm", so an npm install will not be treated as supported.
The first step is cloning and installing dependencies, then copying the environment sample. The .env.sample file is commented out line by line, so you are expected to uncomment and edit rather than fill in blanks.
git clone https://github.com/erxes/erxes.git
cd erxes
pnpm install
cp .env.example .envAfter editing .env, the README gives a script that starts only the gateway and the core API together. Note that the sample file is named .env.sample while the README's copy command references .env.example; check which one is present in the checkout you cloned.
pnpm dev:core-apiThe README states that the application is then reachable at http://localhost:3001. For the full set of backend services there is a second script, pnpm dev:apis, and the user interfaces start separately in another terminal with pnpm dev:uis. Individual services can be served through Nx directly, for example pnpm nx serve sales_api.
The environment variables that matter most at this stage are the ones the sample file names: MONGO_URL, which defaults to mongodb://localhost:27017/erxes, and REDIS_HOST. There is also ENABLED_PLUGINS, shown with the value operation, and DISABLE_CHANGE_STREAM, which is relevant if your MongoDB deployment does not support change streams.
The undo journal is always on, and that has a cost
The most interesting detail in the environment sample is the point-in-time revert feature, documented under the heading "Point-in-time revert (undo) - auto-capture journal". Every update and delete made through any model is written to a log collection named with a subdomain prefix, so it can be reverted later from System Logs, Undo. Creates are deliberately excluded, on the reasoning that reverting a new record is just deleting it.
Two constraints follow. First, the sample states plainly that capture is always on and there is no enable flag; it runs from boot on every service that writes through erxes-api-shared, which the comment lists as core-api and plugins. Second, the logs-service must be running for the journal entries to be persisted at all. If you start the core API alone and skip the logs service, you get an application that looks fine and an undo feature that silently has nothing to undo.
The only tunable is REVERT_AUTO_JOURNAL_MAX, documented with a default of 1000 as the maximum number of documents snapshotted per bulk delete or update. Beyond that cap, the comment says the ids are still audited but the overflow is not auto-revertable. For a large import cleanup or a bulk field migration, that is the boundary to know about before you press the button, not after.
Licensing is split, and the plugin list shows where
The repository's licence field reads NOASSERTION, and the README's badge points at AGPLv3, with a link to LICENSE.md. The package.json for the monorepo declares MIT, which is worth understanding as covering the build tooling rather than the whole product. This is not a single-licence project, and the README makes the split visible in the plugin list itself.
Frontline, Operation and Sales carry no licence marker. Content, Accounting, Tourism, Property, Team and Finance each carry an "EE License Only" badge in the README. That is the practical decision point: several of the modules that make erxes look like a HubSpot or Wix replacement, including the headless website and help centre tools, are the ones marked EE. The README also markets the project as "100% free & sustainable" and describes it as source available software, which is a different claim from open source and is consistent with an enterprise-licence tier.
I am not giving legal advice here. The concrete step is to read LICENSE.md and the licence terms attached to each plugin you intend to deploy, and to confirm with whoever handles compliance whether AGPLv3 obligations are acceptable for the way you plan to expose the software to users.
Where erxes is the wrong choice
The honest limitation is operational weight. A working erxes install is a gateway, a core API, a logs service, at least one plugin API, a frontend host with Module Federation remotes, MongoDB and Redis. The README's own quick start acknowledges this by giving you one script for the core pair and separate scripts for everything else. A two-person team that wants a hosted helpdesk will spend more time on Postgres-style operational chores than on customers.
The second limitation is that the documentation surface is thin in the repository itself. The README links out to erxes.io/docs, a roadmap and a changelog, and the repository carries a docs directory, but the quick start stops at "access the application at http://localhost:3001". There is no rollback procedure documented in the README, and the environment sample's undo section is the only place the journal is explained. Production concerns such as backup, upgrade order across services, and multi-tenant subdomain provisioning are not covered in the README or the sample environment file.
The third is the plugin gap. If the module you need is EE-only, the free core will not get you there, and the marketplace is where the README sends you to choose plugins after installation.
Alternatives differ in kind rather than degree. A hosted suite such as HubSpot or Zendesk removes the operational burden entirely and charges per seat; you trade data control for someone else running MongoDB for you. A narrower self-hosted tool such as a standalone ticketing system gives you one service to operate instead of a federation of them, at the cost of the shared contacts, products and segments that erxes uses to tie modules together. erxes is the right shape only when the consolidation itself is the point.
Editorial conclusion
erxes fits teams that already run MongoDB and Redis, have a Node engineer who can keep a pnpm workspace and several long-running services alive, and want to avoid paying per-seat SaaS pricing for CRM, ticketing and internal operations. It does not fit a small team with no Node or container experience: the repository expects pnpm 8 or newer, a gateway on port 4000, a core API on 3300, and a separate logs-service before the undo journal persists anything. Before committing, verify two things in your own environment: whether the plugins you actually need are listed as EE-only in the README, and whether the REVERT_AUTO_JOURNAL_MAX default of 1000 documents per bulk operation covers your largest import or cleanup job. The last push to the repository was on 2026-09-23, so the codebase is moving; pin to a release tag rather than main.
Frequently asked questions
What are the prerequisites for running erxes self hosted?
The README lists Node.js 18 or newer, pnpm version 8 or higher, MongoDB on port 27017 and Redis on port 6379. The package.json engines block rejects npm and yarn, so pnpm is required rather than preferred.
How do I install erxes and start it locally?
Clone the repository, run pnpm install, copy the environment sample to .env and edit it, then run pnpm dev:core-api to start the gateway and core API. The README states the application is then available at http://localhost:3001, with pnpm dev:apis and pnpm dev:uis for the remaining services and interfaces.
Is erxes free to use, or do some plugins require a different licence?
The README badge points to AGPLv3 and the repository licence field reads NOASSERTION, while several plugins including Content, Accounting and Team are marked EE License Only. Frontline, Operation and Sales carry no such marker in the plugin list.
Why is the undo feature in erxes not reverting anything?
The environment sample states that the auto-capture journal runs from boot with no enable flag, but that the logs-service must also be running for entries to be persisted. Bulk operations beyond REVERT_AUTO_JOURNAL_MAX, which defaults to 1000 documents, are audited but not auto-revertable.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/erxes-erxes)Star history chart for your README
[](https://hysenlabs.com/projects/erxes-erxes)Was this useful?