Understanding ZeroStarter’s monorepo architecture and directory organization
ZeroStarter follows a clean monorepo architecture powered by Turborepo and Bun workspaces. This structure provides separation of concerns, code reusability, and efficient build orchestration.
Avoid circular dependencies: Packages should not depend on each other in a circular manner. The dependency flow should be:api/web → packages/auth → packages/db → packages/env
Workspace protocol: Always use workspace:* for internal dependencies to ensure proper linking.
Catalog versions: Use catalog: in dependencies to share versions across the monorepo. Version definitions are in the root package.json under catalog.