Open Sourcing Your Stuff

How to create an Open Source JavaScript Library

Kent C. Dodds


wife, 4 kids, & a dog

PayPal, Inc.

Please Stand...

if you are able ❤️ ♿️

Thanks Azure Advocates!

Diversity Scholarship Sponsors

What this talk is

  • Identifying a good candidate in a project for open sourcing
  • Extracting it to a solid open source project
  • Pushing the library to a GitHub org
  • Publishing the library on npm
  • Replacing the custom project code with a library dependency

What this talk is not

  • An explanation of all of the benefits of open sourcing
  • Everything you need to know to maintain an open source project


Let's get started...

Identify the component

for open sourcing

Create the new Project

npm init

create your package.json

Copy the needed files

from your project

npm publish

npm install

and add the module dep

Create the GitHub repo

Create the git repo

git init && git remote


You are not an island

ESLint & Jest

setup your project's tests


Write modern JS!


Run tests, linting, and build for every PR



Thank you!

Open Sourcing Your Stuff

By Kent C. Dodds

Open Sourcing Your Stuff

How to write an Open Source JavaScript Library

  • 5,449