# How GitHub Refactored Its JavaScript SDK Around Modular Packages

DevFeed: [How GitHub Refactored Its JavaScript SDK Around Modular Packages](<https://devfeed.tech/articles/from-48k-lines-of-code-to-10-the-story-of-github-s-javascript-sdk-68885.md>)

Original publisher: [Read original article](<https://github.blog/engineering/architecture-optimization/from-48k-lines-of-code-to-10-the-story-of-githubs-javascript-sdk/>)

Author: Gregor Martynus

Published: 2020-04-09T17:52:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [SDK](<https://devfeed.tech/topics/sdk.md>), [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [architecture-optimization](<https://devfeed.tech/tags/architecture-optimization.md>), [code](<https://devfeed.tech/tags/code.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github](<https://devfeed.tech/tags/github.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [sdk](<https://devfeed.tech/tags/sdk.md>)

## AI overview

The article traces the evolution of GitHub's `@octokit/rest` JavaScript SDK, from a large, manually maintained codebase to a modular design built from reusable packages and plugins. It describes automating REST API route updates, extracting core and authentication modules, and using integration tests and fixtures to support the migration.

## Source excerpt

Learn about the legacy, architecture, and methods used to reduce 48k lines of code to 10 as we take a deep dive into GitHub's Javascript SDK.