This repository was archived by the owner on Jul 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 181
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
feat: Refactor Cortex Monorepo #550
Copy link
Copy link
Closed
Labels
type: feature requestA new featureA new feature
Description
Problem
💡 We agreed that a single monorepo could offer the following benefits:- Maintainability - Every Cortex engineer would be able to perform code reviews on every PR. Easy to test, cortex-cpp binaries are always being updated.
- Single submodule - Jan's users would only need to know one Cortex, reducing confusion caused by separate repositories. Even if we were to create two separate repositories, Jan's repository would simply add one CortexJS submodule. CortexJS would still exclusively reference Cortex CPP binaries.
janhq/cortex
│
├── cortex-js/ # Nest.js backend (NestJS)
│ ├── package.json # Backend project dependencies
│ ├── README.md
│ ├── Dockerfile
│ ├── docker-compose.yml
│ ├── src/ # Backend source code
│ │ ├── controllers/ # Nest.js controllers
│ │ ├── modules/ # Nest.js modules
│ │ ├── services/ # Nest.js services
│ │ └── ... # Other Nest.js backend-related files
│ └── ... # Other Nest.js backend-related files
│
├── cortex-cpp/ # C++ backend with DrogonFramework
│ ├── app/ # Backend source code
│ │ ├── controllers/ # Drogon controllers
│ │ ├── models/ # Data models
│ │ ├── services/ # Business logic services
│ │ ├── ?engines/ # Inference Engine submodules
│ │ | ├──llama.cpp
│ │ | ├──tensorrt-llm
│ │ | └── ...
│ │ └── ... # Other Drogon backend-related files
│ │
│ ├── CMakeLists.txt # CMake build configuration
│ ├── config.json # Drogon configuration
│ ├── Dockerfile
│ ├── docker-compose.yml
│ ├── README.md
│ └── ... # Other Drogon backend-related files
│
├── scripts/ # Utility scripts
│ └── ...
├── README.md
├── package.json
├── Dockerfile # Dockerfile to deploy both
├── docker-compose.yml # Docker compose file
└── docs/ # Documentation files
└── ...
Success Criteria
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.
Metadata
Metadata
Labels
type: feature requestA new featureA new feature