0.0.11 β’ Published 5 months ago
@httpx/xcache v0.0.11
@httpx/xcache
In memory cache utility
## Install
```bash
$ npm install @httpx/xcache
$ yarn add @httpx/xcache
$ pnpm add @httpx/xcache
Features
- πΒ Lightweight (starts at ~550B)
- π‘οΈΒ Tested on node 18-22, browser, cloudflare workers and runtime/edge.
- ποΈΒ Available in ESM and CJS formats.
Documentation
Benchmarks
Performance is continuously monitored thanks to codspeed.io.
See benchmark file for details.
Bundle size
Bundle size is tracked by a size-limit configuration
Scenario (esm) | Size (compressed) |
---|---|
import { xcache } from '@httpx/xcache | ~ 557B |
For CJS usage (not recommended) track the size on bundlephobia.
Compatibility
Level | CI | Description |
---|---|---|
Node | β | CI for 18.x, 20.x & 22.x. |
Browser | β | Tested with latest chrome (vitest/playwright) |
Browserslist | β | > 95% on 01/2025. defaults, chrome >= 96, firefox >= 105, edge >= 113, safari >= 15, ios >= 15, opera >= 103, not dead |
Edge | β | Ensured on CI with @vercel/edge-runtime. |
Cloudflare | β | Ensured with @cloudflare/vitest-pool-workers (see wrangler.toml |
Typescript | β | TS 5.0 + / are-the-type-wrong checks on CI. |
ES2022 | β | Dist files checked with es-check |
Performance | β | Monitored with codspeed.io |
For older browsers: most frontend frameworks can transpile the library (ie: nextjs...)
Comparison with other libraries
Contributors
Contributions are welcome. Have a look to the CONTRIBUTING document.
Sponsors
If my OSS work brightens your day, let's take it to new heights together! Sponsor, coffee, or star β any gesture of support fuels my passion to improve. Thanks for being awesome! πβ€οΈ
Special thanks to
License
MIT Β© SΓ©bastien Vanvelthem and contributors.