Skip to content

Build Your Own Package Manager

Build a complete package manager from scratch — semver parsing, constraint matching, dependency tree expansion, deduplication, backtracking SAT-style resolution, lockfile generation, hash verification, lifecycle scripts, and vulnerability auditing. By the end you'll deeply understand what npm, yarn, pnpm, cargo, and pip actually do.

intermediate12 lessons4 chapters12 graded exercisesPython

No sign-up needed for lesson 1 · certificate on completion · sign up to save progress

What you’ll have built

Chapter by chapter. Every step is a graded exercise.

  • Versioning & Constraints
  • The Dependency Graph
  • Solving the Resolution Problem
  • Lockfiles & Production
Starts in Python — solve in the language you choose in the editor, same tests either way.

Curriculum

4 chapters, 12 lessons. Each lesson is a short read, one graded exercise, and a quiz.

  1. 1Semantic VersioningRead · exercise · quiz
  2. 2Constraint OperatorsRead · exercise · quiz
  3. 3Registries & ManifestsRead · exercise · quiz
Loading reference solution…