Home TechnologyReducing our monorepo size to improve developer ve...
Technology⭐ Featured

Reducing our monorepo size to improve developer velocity

Monorepos will continue to grow as products evolve, but growth doesn’t have to mean friction.

7 April 2026 at 11:35 am
1 views
Reducing our monorepo size to improve developer velocity

At Dropbox, the monorepo has been a cornerstone of our development process, enabling seamless collaboration and cross-service development. However, as our products evolved and the repository grew, we faced challenges that threatened our developer velocity. The monorepo, initially a powerful tool, had become a hindrance, with its size reaching 87GB and cloning time exceeding an hour. This not only slowed down our engineering loop but also posed operational risks as we neared GitHub's 100GB repository size limit.

To address these issues, Dropbox embarked on a mission to reduce the monorepo size while maintaining its benefits. The goal was to make the repository more manageable, improve clone times, and ensure long-term sustainability. Through a systematic approach, we managed to shrink the repository from 87GB to just 20GB, a staggering 77% reduction. This transformation not only cut the cloning time to under 15 minutes but also alleviated pressure on our CI infrastructure.

The growth of the monorepo was driven by several factors. Over time, we had accumulated a vast amount of code, including legacy systems, unused libraries, and outdated documentation. Additionally, the integration of new features and services had led to code duplication and bloat. To tackle these issues, we implemented a multi-step strategy that focused on refactoring, archiving, and optimizing the repository structure.

First, we conducted a thorough audit of the monorepo's contents. This involved identifying and categorizing files based on their usage patterns, age, and relevance. We prioritized active projects and services, while flagging those that were obsolete or rarely used. This step helped us pinpoint the sources of bloat and understand which components could be safely removed or archived.

Next, we embarked on a massive cleanup effort. We removed redundant code, outdated documentation, and unnecessary artifacts. This included pruning large binary files, such as old build artifacts and test datasets, which had no place in a version-controlled repository. We also refactored our codebase to eliminate duplication and improve modularity, ensuring that each component served a clear purpose and was easily maintainable.

In addition to these internal optimizations, we explored external solutions to further streamline our workflows. We implemented Git LFS (Large File Storage) to offload large binary assets, such as images and videos, from the main repository. This not only reduced the repository size but also improved the efficiency of our CI pipelines, which no longer had to handle these cumbersome files.

Another critical aspect of our strategy was enhancing our documentation and knowledge management practices. We recognized that the monorepo's growth was partly fueled by inadequate documentation, leading to repeated efforts and confusion among developers. To address this, we invested in creating comprehensive, up-to-date documentation and established a robust knowledge-sharing culture within the organization. This not only reduced the need for redundant code but also empowered developers to work more efficiently.

Throughout this process, we learned valuable lessons about maintaining a large monorepo at scale. The key takeaway was the importance of proactive maintenance and a culture of code quality. Regular audits, strict adherence to best practices, and a commitment to refactoring and optimization are essential for sustaining a healthy monorepo. We also emphasized the need for clear communication and collaboration among teams, as the monorepo is a shared resource that requires collective ownership and stewardship.

In conclusion, reducing the size of our monorepo was a critical step in improving developer velocity and ensuring the long-term sustainability of our development processes. By systematically addressing the root causes of repository bloat and implementing strategic optimizations, we have transformed a potential bottleneck into a high-performing asset. This experience underscores the importance of continuous evaluation and adaptation in managing large-scale code repositories, particularly in dynamic environments like ours. As we continue to innovate and evolve, our monorepo will remain a central component of our infrastructure, but now it is leaner, more efficient, and better positioned to support the growth of Dropbox's products and services.

📰 Related News
Ekaya Banaras Founder Palak Shah’s ₹40 Lakh Billboard Mistake Became a Masterclass in Startup Marketing
Ekaya Banaras Founder Palak Shah’s ₹40 Lakh Billboard Mistake Became a Masterclass in Startup Marketing
Ekaya Banaras founder Palak Shah recently opened up about one of the most expensive mistakes she made while building her luxury textile brand. During the early years of the company, Shah rented a premium billboard near Delhi’s DLF Emporio to increase brand visibility. However, after forgetting to cancel the campaign, the hoarding reportedly continued running for months — resulting in losses of nearly ₹40 lakh. The incident has now become a viral example of how small operational oversights can turn into costly business lessons for startups and entrepreneurs.
28 May
Betting On AI: Jensen Huang And NVIDIA’s Rise To The Top
Betting On AI: Jensen Huang And NVIDIA’s Rise To The Top
Before AI was inevitable, it was a gamble—and Jensen Huang went all in.
14 Apr
Red Hat OpenShift sandboxed containers 1.12 and Red Hat build of Trustee 1.1 bring confidential computing to bare metal and AI workloads
Red Hat OpenShift sandboxed containers 1.12 and Red Hat build of Trustee 1.1 bring confidential computing to bare metal and AI workloads
Red Hat is excited to announce the release of Red Hat OpenShift sandboxed containers 1.12 and Red Hat build of Trustee 1.1, marking a major leap forward in our confidential computing journey. These releases graduate confidential containers on bare metal from …
14 Apr
Large AI firms hoovering maximum funding, not enough for smaller startups: Y Combinator’s Ankit Gupta
Large AI firms hoovering maximum funding, not enough for smaller startups: Y Combinator’s Ankit Gupta
YC Startup School: India’s talent pool across colleges and universities are key for building next-gen startups, which is what YC is looking to tap into. It wants to target entrepreneurs building for global markets, focussed on fintech, consumer, B2B, and ecom…
14 Apr
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
TSMC-RESULTS/ (PREVIEW, PIX):PREVIEW-TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
14 Apr
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
Any profit result ‌above T$505.7 billion would mark the company's highest-ever quarterly net income ​and its ninth consecutive quarter of profit growth
14 Apr
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
TSMC likely to book fourth straight quarter of record profit on insatiable AI demand
On Thursday, ​TSMC is expected to report a net profit of $17.1 billion for the quarter, according to an LSEG SmartEstimate compiled from 19 analysts. The war in the Middle East threatens to disrupt the supply of production materials for semiconductors such as…
14 Apr
If we can’t kick the habit, how do we manage AI’s energy needs?
If we can’t kick the habit, how do we manage AI’s energy needs?
One can only hope that OpenAI’s Sam Altman was joking when he sought to justify the immense energy consumption of artificial intelligence
14 Apr
What caused Nvidia Blackwell GPU prices to spike? #tech
What caused Nvidia Blackwell GPU prices to spike? #tech
Blackwell GPU hourly “rent” surges on agentic AI demand A compute pricing index tracking hourly costs for Nvidia Blackwell GPUs shows a sharp climb: hourly rental hit $4.08 , up 48% from $2.75 just two months earlier. The reported driver is rising demand tied…
14 Apr
Anthropic Releases Claude Mythos Preview with Cybersecurity Capabilities but Withholds Public Access
Anthropic Releases Claude Mythos Preview with Cybersecurity Capabilities but Withholds Public Access
Anthropic has introduced Claude Mythos Preview, its most advanced AI model, improving significantly in reasoning, coding, and cybersecurity. Unlike previous releases, it will not be publicly available. Access is limited to a consortium of tech companies throu…
14 Apr