Skip to main content

Loading Total Ventures…

Skip to main content
HomeThe LabWritingAboutJoin The Continuum

Expand Beyond. Evolve Within.

A frontier lab at the convergence of technology and the whole human.

Join The Continuum

The community around the lab — people committed to expanding beyond and evolving within. Field notes, tools, and what we learn about what a human can become. No filler.

The LabWritingAboutContactSupport

© 2026 Total Ventures LLC. All rights reserved.

Privacy PolicyTerms of ServiceCookie Policy
← All concepts

Concept · stack · in production

pnpm Workspaces

pnpm Workspaces provides a fast, efficient way to manage shared code and dependencies across Total Ventures' 30+ product workspaces within a single monorepo.

pnpm Workspaces enables Total Ventures to consolidate all product-specific and shared code into a single monorepo, drastically reducing dependency duplication and install times for its growing portfolio.

What it is

pnpm Workspaces is a feature of the pnpm package manager that allows multiple projects (workspaces) to reside within a single repository and share dependencies efficiently. Unlike npm or Yarn Classic, pnpm uses a content-addressable store for `node_modules`, creating hard links to a global store rather than copying packages. This means each dependency is installed only once on the system, and projects within the monorepo that share a dependency version will link to the same instance. This approach significantly reduces disk space usage and speeds up installation times, especially in large monorepos with many interdependent packages.

Why it matters

For a small team operating a portfolio of digital products, managing dependencies across multiple projects can quickly become a bottleneck. pnpm Workspaces addresses this by ensuring consistent dependency versions across all related projects, simplifying upgrades, and minimizing the potential for 'it works on my machine' issues. The performance gains are substantial; installing dependencies for a monorepo with 30+ workspaces can be orders of magnitude faster than with traditional package managers. This efficiency directly impacts developer productivity, reducing wait times during setup, CI/CD runs, and local development cycles. It also fosters a more organized codebase, encouraging the extraction of reusable components and utilities into shared packages, which then benefit from pnpm's efficient linking.

How TV applies it

Total Ventures structures its entire product portfolio within a single monorepo, leveraging pnpm Workspaces to manage the `packages/*` directory. This setup allows for seamless sharing of code between web frontends (e.g., Next.js apps deployed on Vercel), backend services (e.g., Firebase Functions), and internal tooling. For instance, shared UI components, API clients, utility functions, and database schemas (like those used by Seed Script Pattern) reside in common packages. When a new product is spun up, it can immediately access these battle-tested components without re-installing redundant dependencies. Our automated code generation, often powered by Claude Code or Gemini, frequently outputs to these shared packages, ensuring consistency across brands. This monorepo structure, powered by pnpm, is also critical for our CI-Local Gate pre-push hook, where fast dependency resolution is paramount for quick feedback loops.

Common failure modes

While pnpm Workspaces offers significant advantages, it's not without its challenges. One common pitfall is mismanaging dependency versions across workspaces. If two workspaces require different major versions of the same package, pnpm will handle it, but it can lead to confusion or unexpected behavior if not explicitly understood. Another issue can arise with tooling that isn't monorepo-aware; some older build tools or IDE integrations might struggle with the linked `node_modules` structure, requiring specific configuration adjustments. Additionally, incorrect `pnpm-workspace.yaml` configurations can lead to packages not being correctly linked or discovered. Finally, ensuring consistent build processes across diverse workspace types (e.g., TypeScript, Go, Python) within a single monorepo requires careful orchestration, often with a dedicated build tool like Turborepo or Nx, though pnpm handles the package management layer effectively.

Our approach to Content-Hash Idempotency for build artifacts also benefits from pnpm's consistent dependency tree, as changes in shared packages reliably trigger rebuilds only where necessary.

FAQs

How does pnpm compare to Yarn or npm workspaces?
pnpm's key differentiator is its content-addressable store and hard-linking, which drastically reduces disk space and install times by avoiding duplication. Yarn and npm typically use hoisting or full copies, which are less efficient for large monorepos.
Is pnpm suitable for small projects or just large monorepos?
While its benefits are most pronounced in large monorepos, pnpm's speed and efficiency are valuable for any project size. Even a single small project will see faster installs and less disk usage compared to other package managers.
What's the learning curve like for a team new to pnpm?
The core commands are similar to npm/Yarn, so the initial learning curve is low. The main differences are understanding how the `node_modules` structure works and configuring `pnpm-workspace.yaml` for monorepos, which is straightforward.

Want to see this pushed into production?

See the experiments →
Written by Justin Tsugranes, Founder, Total Ventures· Founder, Total Ventures · Solo operator · U.S. Army veteran
Last reviewed July 1, 2026

Related concepts

  • Claude Code in a MonorepoA method to provide AI agents with precise, up-to-date codebase context by embedding package-level `CLAUDE.md` files and a monorepo-wide `AGENT_MAP`.
  • Solo-Operator StackThe core set of tools and services that enables a single operator to build, deploy, and maintain a portfolio of digital products efficiently and cost-effectively.
  • Cron Single Source of TruthConsolidating all scheduled tasks into a single `schedules.ts` file, managed by a custom `cron:apply` script, ensures consistent, auditable cron job deployment across the portfolio.
  • Firebase as BackendFirebase provides Total Ventures with a fully managed, serverless backend suite for each product, abstracting away infrastructure concerns for rapid iteration.
  • Tailwind v4 Theme TokensTailwind v4 Theme Tokens enable dynamic, CSS variable-based theming with per-brand color overrides, compiled to zero runtime cost for all Total Ventures products.
  • Multi-Brand PortfolioA multi-brand portfolio diversifies revenue and market reach by operating distinct products under separate identities, leveraging shared infrastructure and AI-driven operations to maintain efficiency.
pnpm Workspaces | Total Ventures