Basket.js is a script and resource loader that uses localStorage to cache JavaScript files in the browser for faster subsequent page loads. Instead of fetching the same scripts from the network on every visit, Basket.js downloads them once, stores them locally under a configurable key, and reuses the cached version until you decide to invalidate or expire it. The library provides a higher-level API where you describe which scripts to load, along with metadata like expiration time, a unique version string, or whether to execute the script immediately. Modern versions expose a Promise-based interface and support modular usage via ES Modules or CommonJS, so you can integrate it into contemporary build setups and bundlers. It also offers options like skipCache (force bypassing cache), live (always fetch fresh), and custom handlers for different content types beyond JavaScript.

Features

  • Script loader that caches JavaScript files in localStorage to reduce repeated network requests
  • Declarative API for loading one or many scripts with options for keys, expiration times, and versioning (unique)
  • Promise-based interface for chaining loads and reacting when resources are ready
  • Support for flags like skipCache, execute, and live to tune caching and execution behavior
  • Modular distribution with ES Module and CommonJS builds for modern bundlers and Node-based workflows
  • Extensible via custom handlers to support additional resource types beyond plain scripts

Project Samples

Project Activity

See All Activity >

Categories

Data Formats

License

MIT License

Follow Basket.js

Basket.js Web Site

Other Useful Business Software
PRTG Catches Network Issues Before They Cause Downtime Icon
PRTG Catches Network Issues Before They Cause Downtime

Threshold-based alerts flag problems early, so your team can act before users notice, not after.

Reactive troubleshooting usually means hearing about a problem from frustrated users, not your monitoring tool. PRTG sets threshold-based alerts across devices, servers and applications, notifying your team by email, SMS or push the moment a metric crosses a set limit. That means catching a failing disk or overloaded server before it becomes an outage and getting time back from firefighting. Start a free trial and set your first alerts today.
Download 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Basket.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Data Formats Software

Registered

2025-11-21