@xaccefy/pi-shared

Shared utilities for XPI packages — bounded TTL/LRU cache with singleflight, abortable sleep

Packages

Package details

package

Install @xaccefy/pi-shared from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@xaccefy/pi-shared
Package
@xaccefy/pi-shared
Version
0.8.0
Published
Aug 4, 2026
Downloads
1,494/mo · 1,494/wk
Author
xaccefy
License
MIT
Types
package
Size
4.6 KB
Dependencies
0 dependencies · 0 peers

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-shared

Internal shared utilities for XPI packages. Not intended for direct consumption.

Exports

  • TtlLruCache<T> — bounded TTL + LRU cache with singleflight coalescing.
  • abortableSleep(ms, signal?) — sleep that rejects on abort.

Usage

import { TtlLruCache } from "@xaccefy/pi-shared";