Quantic is an AI-powered chatbot project built around conversational AI, retrieval-augmented generation (RAG), long-term memory, and document understanding. Its web interface uses React and Vite, while the API is built with Node.js and Express.
The repository is organized into separate frontend and backend applications.
| Capability | What it provides |
|---|---|
| AI conversations | Conversational responses using the Groq SDK |
| Retrieval-augmented generation | RAG components using ChromaDB and local embedding support |
| Long-term memory | Dedicated memory functionality |
| Document understanding | PDF and Office document processing, with OCR support through Tesseract.js |
| Authentication | JWT-based authentication and optional two-factor authentication support |
| Files and images | Upload-related functionality in the chat experience |
| Administration | Admin routes and public announcements |
| Modern interface | React 19, Vite, React Router, and TipTap-based editing components |
Feature availability may depend on configuration and external services. See the application code and deployment environment for the current implementation details.
| Frontend | React 19, Vite, React Router, TipTap, Axios |
| Backend | Node.js, Express 5, MongoDB, Mongoose |
| AI and retrieval | Groq SDK, ChromaDB, @xenova/transformers |
| Authentication and security | JSON Web Tokens, bcrypt, Speakeasy, Helmet, express-rate-limit |
| Documents and media | pdf-parse, Mammoth, officeparser, Tesseract.js, Sharp |
| Operations | Nodemailer, Winston, Morgan |
Quantic/
├── front-end/ # React + Vite web application
│ └── package.json
├── back-end/ # Express API and backend services
│ ├── server.js
│ └── package.json
├── README.md
├── CONTRIBUTING.md
└── SECURITY.md
- A supported Node.js release and npm
- Access to the external services required by the features you want to run
- MongoDB configured for the backend
cd back-end
npm installCreate a local .env file inside back-end/ and configure the environment variables required by the backend and its service integrations. The server reads this file at startup. Keep real credentials out of Git.
Start the API:
npm startThe server defaults to port 8000 when PORT is not set. The backend CORS configuration uses FRONTEND_URL for allowed frontend origins and includes the published Quantic frontend origin in its current configuration.
Open a second terminal:
cd front-end
npm install
npm run devVite prints the local development URL in the terminal (typically http://localhost:5173). Keep the frontend origin aligned with the backend's CORS configuration.
From front-end/:
npm run buildTo preview a production build locally:
npm run preview- Use the environment variable names expected by the current backend code and service integrations; do not copy production credentials into local files or commit them.
- Store deployment secrets in the hosting provider's environment-variable settings.
- The exact configuration needed depends on which integrations and features you enable.
- Do not publish API keys, database connection strings, session/JWT secrets, mail credentials, or private tokens in issues, screenshots, logs, or commits.
- Create a branch for your change.
- Keep changes focused and preserve existing application behavior unless a feature change is intentional.
- Run the frontend build after frontend or documentation-adjacent UI changes.
- Test the backend and affected flows in your environment; the backend package currently contains a placeholder test script rather than a configured automated test suite.
- Review the diff for accidental secrets before opening a pull request.
See CONTRIBUTING.md for contribution guidance and SECURITY.md for responsible vulnerability reporting.
Quantic includes authentication and security-related middleware, but no application should be assumed secure solely because it uses these components. Keep dependencies updated, configure secrets outside source control, and verify production settings before deployment.
If you believe you have found a vulnerability, please follow SECURITY.md. Do not publish exploit details or credentials in a public issue.
Quantic is actively represented by the source in this repository. Features, configuration requirements, and deployment behavior may evolve. For the most accurate details, use the current code and the live demo rather than assuming every integration is enabled in every environment.
Built with curiosity. Designed for useful conversations.