addyosmani/basket.js
A script and resource loader for caching & loading files with localStorage observed · 2026-08-28
Health v2 · maintenance only
27/100
- Activity 9
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5299
- days_rel: n/a
- days_push: 549
- n_releases_24m: 0
Adoption not part of the score
3350 stars · 273 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Basket.js is a JavaScript script loader that caches scripts and resources in localStorage to improve page load times. It provides a Promise-based API with support for versioning, expiration, and custom content-type handlers.
Use cases
- cache javascript scripts in localstorage
- load scripts faster on repeat page visits
- script loader with expiration control
- version cached javascript assets
- preload scripts with promise-based api
- cache css and other resources in the browser
When to choose
- you want to skip the HTTP cache and store scripts in localStorage for faster repeat loads
- you need fine-grained control over script caching with versioning and expiration
- you want a small, promise-based script loader
When to avoid
- you rely on modern HTTP caching headers and service workers instead
- your scripts exceed localStorage size limits (~5MB)
- you need to cache assets for non-browser environments
Facets
library · maturity maintenance
caching http-client web-development frontend performance browser script-loader localstorage asset-loading promise-based javascript
2 sources
- readme: https://github.com/addyosmani/basket.js · fetched 2026-08-28 · 660a2dcac3d4
- registry_npm: https://registry.npmjs.org/basket.js · fetched 2026-08-29 · 5e6a6909a0c2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| addyosmani/basket.js | main | 27 |
For agents
markdown · JSON · MCP: product_card(name="addyosmani/basket.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem