1000+ packages · Instant CDN loading

Use any NPM package directly from CDN.

Load popular packages like lodash, axios, moment, and thousands more. No build steps, no bundling — just import and use.

Getting Started

How to use packages

Loading packages from CDN is simple. Just use the npm() function and await the result.

// Load a package from CDN
const
_ = await npm('lodash');

// Now use it!
console
.log(_.capitalize('hello world'));
// → Hello world
✓ Pro Tip: The first time you load a package, it gets cached in your browser. Subsequent loads are instant!
Popular Packages

1000+ packages available

Here are some of the most popular packages you can use in LiveJS.

Lodash

Utility library with functions for working with arrays, objects, and more.

const _ = await npm('lodash') Utilities

Axios

Promise-based HTTP client. Perfect for API requests and data fetching.

const axios = await npm('axios') HTTP

Moment.js

Parse, validate, manipulate, and display dates and times.

const moment = await npm('moment') Dates

Chart.js

Simple yet flexible charting for designers & developers.

const Chart = await npm('chart.js') Charts

Joi

Data validation library making data validation simple, powerful, and explicit.

const Joi = await npm('joi') Validation

Color.js

Work with colors in JavaScript. Parse, convert, and manipulate color values.

const Color = await npm('colorjs.io') Colors

UUID

Generate RFC-compliant UUIDs. Perfect for generating unique identifiers.

const { v4 } = await npm('uuid') ID Generation

Marked

Fast markdown parser and compiler. Convert markdown to HTML instantly.

const marked = await npm('marked') Markdown
Real Examples

Code samples you can try now

Copy these examples, paste them in the editor, and run them instantly.

🔧 Lodash Example

const _ = await npm('lodash');

const numbers = [1, 2, 2, 3, 4, 4, 4, 5];
const unique = _.uniq(numbers);

console.log(unique); 
// → [1, 2, 3, 4, 5]

🌐 Axios Example

const axios = await npm('axios');

const response = await axios.get(
  'https://jsonplaceholder.typicode.com/posts/1'
);

console.log(response.data.title);

📅 Moment.js Example

const moment = await npm('moment');

const today = moment();
const future = today.add(1, 'month');

console.log(future.format('MMMM D, YYYY'));
// → June 10, 2026
Important

What packages work?

Not all packages work in the browser. Here's what you need to know.

✓ Works in Browser

  • ✓ Pure JavaScript libraries (lodash, moment, uuid, etc.)
  • ✓ HTTP clients (axios, fetch)
  • ✓ Data validation (joi, yup)
  • ✓ Visualization (chart.js, d3.js, plotly.js)
  • ✓ Utilities & helpers (color, date-fns, qs)
  • ✓ Format parsers (xml2js, csv-parse)

✗ Does NOT work in Browser

  • ✗ Node.js-only packages (express, fs, path, etc.)
  • ✗ Module bundlers (webpack, rollup, parcel)
  • ✗ Backend frameworks (next.js, nuxt, fastify)
  • ✗ Packages with native bindings (sharp, bcrypt)
  • ✗ Database drivers (mongodb, postgres, mysql)

Ready to code with packages?

Open the editor and start using any browser-compatible package from npm.

1000+ packages available · Zero configuration · Instant loading