Skip to content

AnixLabs/AnixLabWorkspace

Repository files navigation

Anix Lab Workspace

πŸš€ Anix Lab (formerly Anix7) β€” Unified Monorepo Architecture


πŸ“¦ Overview

This is the official monorepo for Anix Lab (formerly Anix7), powered by Turborepo and PNPM Workspaces.

It serves as the centralized codebase for the entire Anix Lab ecosystem β€” including:

  • 🌐 Web applications
  • πŸ” Authentication services
  • ⚑ API servers
  • πŸ“š Shared libraries & configurations

🧩 Projects

πŸš€ Applications (Apps)

  • Admin Dashboard β†’ apps/admin
  • Anipic (Image Platform) β†’ apps/anipic
  • Main Website β†’ apps/www-website
  • Tools Platform β†’ apps/tools
  • Short URL Redirect Service β†’ apps/i-used-for-short-url
  • Core Backend Server (API + Socket.IO) β†’ apps/core-server

πŸ“¦ Shared Packages

  • Auth Module β†’ shared/auth Shared authentication UI components, logic, and client utilities

  • UI Components β†’ shared/components Reusable React components (UI, navigation, loaders, error handling, etc.)

  • Configuration β†’ shared/config Centralized configs for:

    • ESLint (Flat Config)
    • TypeScript
    • Next.js
    • PostCSS
  • Core Libraries β†’ shared/lib

    • Database layer (MongoDB + multi-connection support)
    • Mongoose models (ImageUpload, ShortUrl, etc.)
    • Email utilities (Nodemailer)
    • Zod validation & helpers
  • Head & SEO Utilities β†’ shared/head Metadata, analytics, and theme-related utilities

  • Providers β†’ shared/providers Global React providers (e.g., Toast System, context wrappers)

  • Styles β†’ shared/styles Global styles, themes, and utility CSS

  • Utilities β†’ shared/utils General-purpose helper functions (clipboard, client info, classNames, etc.)


πŸ“ Project Structure

AnixLabWorkspace/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ admin/                # Admin dashboard (Next.js)
β”‚   β”œβ”€β”€ anipic/               # Image platform (Next.js)
β”‚   β”œβ”€β”€ core-server/          # Backend server (Fastify + Socket.IO)
β”‚   β”œβ”€β”€ i-used-for-short-url/ # Public short URL redirect service
β”‚   β”œβ”€β”€ tools/                # Tools platform (calculators, utilities, etc.)
β”‚   └── www-website/          # Main website (landing + pages)
β”‚
β”œβ”€β”€ shared/                   # Shared packages across apps
β”‚   β”œβ”€β”€ auth/                 # Shared auth UI & logic
β”‚   β”œβ”€β”€ components/           # Reusable UI components
β”‚   β”œβ”€β”€ config/               # ESLint, TS, Next, PostCSS configs
β”‚   β”œβ”€β”€ head/                 # SEO, analytics, meta handlers
β”‚   β”œβ”€β”€ lib/                  # Core libraries
β”‚   β”‚   β”œβ”€β”€ db/               # Multi-DB connections + models
β”‚   β”‚   β”œβ”€β”€ mail/             # Email utilities
β”‚   β”‚   └── utils/            # Core helpers
β”‚   β”œβ”€β”€ providers/            # React providers (Toast, etc.)
β”‚   β”œβ”€β”€ styles/               # Global styles
β”‚   └── utils/                # General utilities
β”‚
β”œβ”€β”€ .github/workflows/        # CI/CD pipelines
β”œβ”€β”€ ecosystem.config.cjs      # PM2 ecosystem config
β”œβ”€β”€ turbo.json                # Turborepo pipeline config
β”œβ”€β”€ pnpm-workspace.yaml       # Workspace definition
β”œβ”€β”€ package.json              # Root config
└── tsconfig.json             # Root TypeScript config

βš™οΈ Tech Stack

  • Next.js 16 (App Router)
  • BetterAuth
  • MongoDB + Mongoose
  • Fastify
  • Socket.IO
  • Turborepo
  • PNPM Workspaces
  • Tailwind CSS v4
  • ESLint (Flat Config)
  • PostCSS

πŸš€ Getting Started

Install dependencies

pnpm install

Run all apps (dev mode)

pnpm dev

Run specific apps

pnpm --filter www-website dev
pnpm --filter anipic dev
pnpm --filter core-server dev

Run multiple apps

pnpm dev --filter tools --filter anipic
pnpm dev --filter www-website --filter core-server

Build all

pnpm build

Lint

pnpm lint

Type Check

pnpm typecheck

Lint + Type Check

pnpm check

🌐 Environment Setup

Each application can maintain its own environment configuration:

apps/www-website/.env.local
apps/core-server/.env

🎯 Why Monorepo?

  • βœ… Unified development workflow
  • βœ… Shared models, auth, utilities, and configs
  • βœ… Faster builds with Turborepo caching
  • βœ… Centralized tooling (ESLint, Tailwind, PostCSS)
  • βœ… Scalable and maintainable architecture
  • βœ… Seamless cross-project integration within Anix Lab ecosystem

πŸ—οΈ Features

  • ⚑ Turborepo task pipeline & caching
  • 🎨 Shared Tailwind configuration
  • πŸ”— Multi-database MongoDB support
  • πŸ” Centralized BetterAuth setup
  • πŸ“¦ Reusable Mongoose models

πŸ“„ License

Licensed under the Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0) License.

⚠️ This project is intended for educational and personal use only. Commercial or production usage requires explicit permission.

See LICENSE for full details.


🀝 Contribution

Contributions, suggestions, and improvements are welcome.


πŸ‘¨β€πŸ’» Author

Β© 2026 CodesWithSubham β€” All rights reserved.


About

Resources

License

Stars

Watchers

Forks

Contributors