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
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free 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