8000 GitHub - iblai/crm: Open-source CRM for organizations on the ibl.ai platform: people, organizations, deals, activities and tags, with ibl.ai single sign-on and roles. One Next.js codebase for web, macOS, Windows, Linux, iOS and Android through Tauri. MIT. · GitHub
[go: up one dir, main page]

Skip to content
iblaiPublic

About

Open-source CRM for organizations on the ibl.ai platform: people, organizations, deals, activities and tags, with ibl.ai single sign-on and roles. One Next.js codebase for web, macOS, Windows, Linux, iOS and Android through Tauri. MIT.

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ibl.ai

ibl.ai/crm

The open-source CRM for the platforms you run on ibl.ai.

People, organizations, deals, activities and tags, on every ibl.ai platform you belong to, with ibl.ai single sign-on and the platform's own CRM roles. One codebase for the web and the desktop and mobile shells.

Join About Docs License: MIT SOC 2 Type II Next.js Tauri

Live: crm.iblai.me · crm.ibl.ai comes later · no published native builds yet

Watch the intro video

Why ibl.ai/crm · Features · Quick Start · Gates · Deployment · Native apps · Architecture


Why ibl.ai/crm

🔓 Your code, your data MIT-licensed and self-hostable. Every record lives on your ibl.ai platform, in its CRM: no database of the app's own, no second copy.
🏢 Every platform Sign in once with ibl.ai SSO and switch between the platforms you belong to, as in os.ibl.ai. Each platform has its own people, pipelines, deals and roles.
🧭 The Twenty way The information architecture of Twenty: objects in a sidebar, saved views, favorites, record pages with a timeline and a history.
🔐 The platform decides Sign-in, sessions and the four CRM roles (Viewer, User, Manager, Inviter) come from the platform; the app shows each user what their role allows, and the platform checks it.

Features

  • People and organizations: lifecycle stage, owner, job title, emails, phones and tags; invite a person to the platform, link them to a user, or merge duplicates.
  • Deals and pipelines: a board you drag deals across, with each stage's count and value, and a table; a deal page with its stage steps, won and lost (with the reason), reopen, value and currency, expected close, timeline and history; pipelines, stages and lead sources in Settings.
  • Activities: calls, meetings, tasks and notes on every person, organization and deal; Overdue, Today, Upcoming and Done, each answered by the platform with its own count and paging.
  • Home: the state of the business at a glance, with a period picker.
  • Lists that page: search, sort, filters and columns on every list, paged by the platform; saved views; favorites in the sidebar.
  • ⌘K: one search across people, organizations and deals; jump anywhere, create anything.
  • The community platform: on main, everyone browses a sample CRM answered in the browser; a write opens the plan picker instead of reaching the platform.
  • English, one catalog: every string in messages/en.json, and the SDK's own parts pinned to English.

Quick Start

git clone https://github.com/iblai/crm.git
cd crm
pnpm install --frozen-lockfile --ignore-scripts
pnpm dev

Open http://localhost:3000. It sends you to the platform's sign-in app, which brings you back to /platform/<your platform>. No configuration is needed against hosted iblai.app: the addresses default in lib/iblai/config.ts. Node 22 or later and pnpm 12 (corepack enable).

The dev script sets --no-experimental-webstorage, so Node's experimental localStorage doesn't collide with the SDK's storage guards.

Scripts

Command What it does
pnpm dev / pnpm build / pnpm start Dev server on :3000, the production build, and serving it
pnpm typecheck · pnpm lint · pnpm format:check TypeScript, oxlint under its warning budget, oxfmt
pnpm copy:check The one catalog: no missing, empty or unused key, no "tenant" or "company", no copy in components
pnpm test Vitest, then the journey registry check
pnpm test:coverage ≥ 95 % lines on every changed .ts/.tsx file, against BASE_BRANCH
pnpm e2e:accounts · pnpm test:e2e The journey accounts on a throwaway platform, then the journeys (Chrome and a phone)
pnpm screenshots Home, the deals board, People, Settings and a person, from the admin's saved session
pnpm shell:smoke · pnpm shell:touch[:ios|:android|:windows] The desktop shell headless against a local page, and the touch tests

Gates

Nothing is called working until these pass:

pnpm typecheck && pnpm lint && pnpm format:check && pnpm copy:check \
  && pnpm test && BASE_BRANCH=<remote>/main pnpm test:coverage && pnpm build
  • The pre-push hook (husky) runs them, with the registry check's --no-regress, and cargo test when the shell changed. Never push with --no-verify.
  • CI runs them on every pull request. It runs no journeys.
  • The journeys run locally: pnpm build && pnpm start, then pnpm test:e2e against a throwaway platform, as the accounts pnpm e2e:accounts saves in the gitignored e2e/.env.development. A feature is done when that run is green and named.

The journeys live in e2e/; e2e/COVERAGE.md maps every route and checkpoint, and e2e/README.md says how to write one.


Deployment

The app is a front end only: the platform provides sign-in, platforms, roles, notifications and the CRM API.

  • Vercel: crm.iblai.me builds the regular Next.js output with ENABLE_EXPERIMENTAL_COREPACK=1, so pnpm 12 is used. Any other host sets NEXT_PUBLIC_APP_URL to itself, or checkouts return to crm.iblai.me.
  • Node: pnpm build && pnpm start serves the standalone build (Next warns, and serves it). node .next/standalone/server.js works too, once public/ and .next/static/ are copied beside it, as the Dockerfile does.
  • Docker: docker build -t iblai-crm . && docker run -p 3000:3000 iblai-crm runs as the non-root nextjs user. NEXT_PUBLIC_* values are inlined at build time, so a self-hosted platform passes its addresses as build arguments: NEXT_PUBLIC_API_BASE_URL, NEXT_PUBLIC_AUTH_URL, NEXT_PUBLIC_PLATFORM_BASE_DOMAIN, NEXT_PUBLIC_APP_URL and NEXT_PUBLIC_MAIN_TENANT_KEY.

Every origin the app runs on, the iblai-crm:// scheme included, must be an allowed return origin of the platforms that sign in, or sign-in never comes back.

Configuration

Everything is optional against hosted iblai.app; the defaults live in lib/iblai/config.ts.

Variable Default What it sets
NEXT_PUBLIC_API_BASE_URL https://api.iblai.app The consolidated API; the CRM is under /dm
NEXT_PUBLIC_AUTH_URL https://login.<domain> The sign-in app
NEXT_PUBLIC_PLATFORM_BASE_DOMAIN iblai.app The platform's domain; without an API base, services use its subdomains
NEXT_PUBLIC_MAIN_TENANT_KEY main The community platform, which shows the sample
NEXT_PUBLIC_APP_URL https://crm.iblai.me Where the free checkout and the sign-in app return
NEXT_PUBLIC_IBL_PLATFORM crm The app the sign-in app is asked for
NEXT_PUBLIC_TAURI_CUSTOM_SCHEME iblai-crm The scheme the native shells return on
NEXT_PUBLIC_DEFAULT_CURRENCY USD A new deal's currency, and the board's when the platform names none

Native apps

src-tauri/ is a Tauri 2 shell for macOS, Windows, Linux, iOS and Android. It holds no app logic: every shell loads crm.iblai.me (build.frontendDist), and no pipeline releases native builds yet.

  • Sign-in returns to the app on iblai-crm:// and on the sign-in app's own scheme, keeping the return's path and query. Provider sign-in uses the system's private authentication sheet on iOS and macOS, the system browser on Android, and on Windows and Linux a sign-in window that completes on the sign-in host the shell was built with (NEXT_PUBLIC_AUTH_URL).
  • The desktop guard keeps the window on the app's host, the platform (iblai.app, iblai.org, and NEXT_PUBLIC_PLATFORM_BASE_DOMAIN when the shell is built for a self-hosted platform), Stripe and localhost. Any other host opens in the system browser.
  • Projects: src-tauri/gen/android is committed; gen/apple is generated on a Mac with scripts/mobile-init.sh.
  • Checks: CI runs cargo fmt on Linux, cargo check and cargo test with warnings denied on Linux, macOS and Windows, the iOS target check, an Android debug build and the Linux smoke test on every shell change.

Architecture

app/
├── platform/[tenantKey]/     # one platform: Home, people, organizations, deals, activities, tags, settings, notifications
│                             # (onboarding runs outside the shell; a platform you don't belong to is previewed)
├── sso-login-complete/ · mobile-sso-login/ · join/ · error/[code]/ · api/auth-redirect/
components/crm/ · components/house/ · components/ui/
lib/crm/                      # the CRM API slice, types, views, deal and activity rules, errors, the sample
lib/iblai/                    # config, platform resolution, sign-in helpers
messages/en.json              # the one catalog
proxy.ts                      # the per-request content policy
src-tauri/                    # the native shell
e2e/ · __tests__/             # journeys · unit tests
specs/ · .specify/            # the feature specs and constitution (Spec Kit)

The app reads and writes through the platform's CRM API (/dm/api/crm/…) with the SDK's session; the platform scopes every request to the platform in the URL. What the app may change, and what waits on the platform, is in specs/001-bootstrap-crm/spec.md and the constitution.


Contributing

See CONTRIBUTING.md. Every change goes through Spec Kit (/speckit-specify to /speckit-implement), passes the gates above, and proves itself in the journeys.

Releases: every push to main with commits cuts one with release-it, at least a patch; feat bumps the minor and a breaking change the major.

Resources

License

MIT License. See LICENSE for details.

ibl.ai · Your platform's AI, under your control.

About

Open-source CRM for organizations on the ibl.ai platform: people, organizations, deals, activities and tags, with ibl.ai single sign-on and roles. One Next.js codebase for web, macOS, Windows, Linux, iOS and Android through Tauri. MIT.

Topics

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0