diel-sa/nokhbah-crm Project Structure and Technical Components
The diel-sa/nokhbah-crm project uses a modular architecture with distinct components for the research agent, front end, and API, along with setup instructions and security constraints.
Project Structure and Technical Components
The diel-sa/nokhbah-crm project is structured around a modular architecture, with distinct components for the research agent, front end, and API. The apps/agent directory houses the research agent, which includes tools, skills, and schedules, while apps/app contains the Next.js front end, accessible at port 3000. The apps/api directory implements a NestJS API, handling HTTP, authentication, and mailbox synchronization at port 3001. Supporting infrastructure includes packages/db for Prisma schema and Postgres client, packages/auth for authentication configuration, and packages/ui for Tailwind CSS components. The project also includes setup instructions, such as cloning the repository, configuring the .env file, and running docker compose up -d to start Postgres. The codebase adheres to three rules, including keeping intelligence out of the API, as documented in docs/api.md.
Configuration and Setup Requirements
The Configuration and Setup Requirements section of the nokhbah-crm project outlines essential steps for initializing the application. A BETTER_AUTH_SECRET should be generated using openssl rand -base64 32 for secure authentication. The ALLOWED_SIGN_IN variable must be set to an email domain, such as example.com, to restrict sign-in access. For Google OAuth integration, developers must create a client ID and secret, then configure the Authorized redirect URIs to include http://localhost:3001/api/auth/callback/google. If the application is limited to a specific organizational directory, the Supported account types should be set to Accounts in this organizational directory only. For Microsoft OAuth, the Redirect URI must be set to http://localhost:3001/api/auth/callback/microsoft. If admin consent is required, it should be granted in advance to avoid repeated prompts for users.
Mailbox Integration and Security Constraints
The Mailbox Integration and Security Constraints section of the diel-sa/nokhbah-crm project outlines key limitations and security measures. The CRM uses the Mail.Read permission, which is read-only — it can list and read messages but cannot send, reply, move, or delete them. Reading is also forward-only, meaning the first check records the current time and imports nothing, preventing the CRM from importing historical emails from an old mailbox. Microsoft client secrets used for authentication expire after 24 months at most, with a default of 6 months, adding a time-bound security layer. The project also integrates with the PERPLEXITY_API_KEY, allowing the agent to search the open web with citations. Security issues are handled privately through SECURITY.md, not via public issue tracking.
Open Source CRM Landscape on GitHub
The open source CRM landscape on GitHub continues to evolve, with over 8,128 repositories tagged as CRM as of November 2026, according to the GitHub CRM Index. Among these, 24 have been verified as active CRM projects, with a median of 3,766 stars and 1,167 forks. The top language used in these repositories is PHP, though Python also holds a significant presence, as seen in projects like twentyhq/twenty, which has garnered 55,463 stars and is described as an open alternative to Salesforce designed for AI. Other notable projects include frappe/erpnext, a free and open source ERP solution, and chatwoot/chatwoot, an open-source live-chat and omni-channel support platform. These projects highlight the growing interest in open source CRM solutions, though the number of newly created verified repositories this month remains at zero.
Commercial CRM Market Context and Comparison
The commercial CRM market offers a range of solutions, including Salesforce, HubSpot, and Zoho, which are often compared to open-source alternatives like SuiteCRM, Odoo, and Twenty. According to allgreatthings.io, these commercial platforms are not included in open-source counts on GitHub. Open-source CRM projects typically provide more control and code visibility, but they require hosting, maintenance, and implementation efforts, as noted in allgreatthings.io. Commercial CRMs, on the other hand, often include managed onboarding, packaged automation, and broader app ecosystems, as stated in allgreatthings.io. While open-source options may appeal to teams seeking customization and ownership, the right choice depends on implementation needs, hosting capacity, and integration requirements, as highlighted in allgreatthings.io.
Sources and reporting notes
Based on published source material. No independent hands-on testing is claimed.