GitHub - unpkg/unpkg: The CDN for everything on npm | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

unpkg/unpkg

Repository files navigation

UNPKG

Welcome to UNPKG!

UNPKG is a fast, global content delivery network for everything on npm. Use it to quickly and easily load any file from npm using a URL like:

https://unpkg.com/:package@:version/:file

Where :package is the package name, :version is the version range, and :file is the path to the file in the package.

You can learn more about UNPKG on the website.

Development

This repository contains the production source for UNPKG. There are 4 packages:

  • unpkg-app is the UNPKG web app (file browser)
  • unpkg-files is the file server backend that fetches tarballs from npm and extracts their contents
  • unpkg-worker is a shared set of utilites between the web apps (Cloudflare workers)
  • unpkg-www is the main UNPKG app

We use Bun in development, as well as pnpm. Install these first.

Next, install all dependencies and run the tests:

pnpm install
pnpm test

Then start the file server and each worker along with its assets server (you'll need 5 terminal tabs):

cd packages/unpkg-files && pnpm dev
cd packages/unpkg-www && pnpm dev
cd packages/unpkg-www && pnpm dev:assets
cd packages/unpkg-app && pnpm dev
cd packages/unpkg-app && pnpm dev:assets

The dev server will be listening on http://localhost:3000.

Deploying

The unpkg-files backend is deployed on Fly.io. You'll need an account.

Next, adjust the Fly config in packages/unpkg-files/fly.json (you'll need your own app name) and deploy:

cd packages/unpkg-files && pnpm run deploy

To deploy the workers, you'll need a Cloudflare account. You will also need to (1) edit the wrangler.json file in each worker and update its routes to your own domain(s) and (2) adjust each worker's environment vars (in wrangler.json) so they can find one another in production.

Once you've done that, you can deploy each worker with:

cd packages/unpkg-www && pnpm run deploy
cd packages/unpkg-app && pnpm run deploy

License

Please see LICENSE for more information.

About

The CDN for everything on npm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 25

Languages

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.