Chainguard Libraries for JavaScript

Course 3 of 4 in Getting Started with Chainguard Libraries

Build a JavaScript app using Chainguard Libraries with npm, Yarn, and Bun, and see our secure dependency sourcing in action.

rate limit

Code not recognized.

About this course

In this hands-on demo course, you’ll walk through building a simple JavaScript application using Chainguard Libraries as your dependency source. Starting with a baseline build from upstream, you’ll then configure secure access to Chainguard’s JavaScript repository and rebuild the app using npm, Yarn, and Bun.

Along the way, you’ll learn how to authenticate with chainctl, configure build tool–specific registry files, mount secrets securely with Docker BuildKit, and validate that your application runs successfully — all while consuming trusted, signed dependencies.

At the end of the course, you will be able to:

  • Build a baseline JavaScript app using upstream dependencies
  • Authenticate to Chainguard Libraries using chainctl
  • Configure npm, Yarn, and Bun to consume dependencies from Chainguard Libraries
  • Mount registry credentials securely using Docker BuildKit secrets
  • Build and run containerized JavaScript applications using Chainguard Libraries

Curriculum

  • Welcome to Chainguard Libraries for JavaScript
  • Baseline build: Upstream dependencies
  • Switching to Chainguard Libraries with npm
  • Using Yarn with Chainguard Libraries
  • Using Bun with Chainguard Libraries
  • Wrap-up: Same app, more trustworthy dependencies

About this course

In this hands-on demo course, you’ll walk through building a simple JavaScript application using Chainguard Libraries as your dependency source. Starting with a baseline build from upstream, you’ll then configure secure access to Chainguard’s JavaScript repository and rebuild the app using npm, Yarn, and Bun.

Along the way, you’ll learn how to authenticate with chainctl, configure build tool–specific registry files, mount secrets securely with Docker BuildKit, and validate that your application runs successfully — all while consuming trusted, signed dependencies.

At the end of the course, you will be able to:

  • Build a baseline JavaScript app using upstream dependencies
  • Authenticate to Chainguard Libraries using chainctl
  • Configure npm, Yarn, and Bun to consume dependencies from Chainguard Libraries
  • Mount registry credentials securely using Docker BuildKit secrets
  • Build and run containerized JavaScript applications using Chainguard Libraries

Curriculum

  • Welcome to Chainguard Libraries for JavaScript
  • Baseline build: Upstream dependencies
  • Switching to Chainguard Libraries with npm
  • Using Yarn with Chainguard Libraries
  • Using Bun with Chainguard Libraries
  • Wrap-up: Same app, more trustworthy dependencies