package
Small, composable ES modules that fill recurring gaps in the Web Platform.
npm install @lsongdev/scriptsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 1 packages.
484.4 kB
Includes dependencies.
Latest published Oct 29, 2026
Small, composable ES modules that fill recurring gaps in the Web Platform without replacing it.
Use the Web. Fill the gaps. Own nothing.
This repository is organized as a capability-based, versioned Web standard library. The first immutable checkpoint is v0.1.0-rc.1; individual leaves remain candidate or experimental until their own promotion evidence is complete. See the module registry, the candidate API contracts, the deleted-module recovery audit, its historical file ledger, and the refactor status.
AbortSignal as the shared lifecycle and cancellation protocol.Development tools may be used to test the repository. Consumers receive ordinary, directly importable ESM.
animation/ timing and Web Animations workflows
async/ asynchronous workflows
browser/ browser-level capabilities
collections/ collection and record workflows
crypto/ Web Crypto workflows
datetime/ date, time-zone, and duration workflows
devices/ device and sensor capabilities
dom/ DOM workflows
encoding/ binary and textual encodings
files/ File and Blob workflows
graphics/ Canvas and color workflows
localization/ locale and plain-text message workflows
media/ media capture workflows
navigation/ URL/history navigation workflows
net/ network protocols beyond native fetch
storage/ storage workflows
streams/ Web Streams workflows
elements/ optional Web Components
adapters/ optional framework adapters
integrations/ provider-specific APIs
labs/ experiments outside the core admission boundary
vendor/ isolated third-party source
examples/ browser examples
docs/ architecture and project decisionsThe allowed dependency direction is:
Web Platform <- capability modules <- elements / adapters / integrations / examplesCapability modules must never depend on optional layers, labs/, or vendor/.
Optional adapters may use pinned bare package specifiers. Browser consumers of those adapters own the corresponding import map; capability modules remain dependency-free.
Use relative paths while developing against this checkout and import the narrowest module that provides the capability:
import { delay } from './async/delay.js';
import { on } from './dom/events.js';
import { $ } from './dom/query.js';
on($('#save'), 'click', save);For an immutable release-candidate URL, replace the relative prefix with https://cdn.jsdelivr.net/gh/lsongdev/scripts@v0.1.0-rc.1/. A floating latest URL is not recommended for production use.
The same files are published to npm unchanged, with no bundle and no entry point; import leaves by path:
npm install @lsongdev/scripts@nextimport { delay } from '@lsongdev/scripts/async/delay.js';Core modules target the standard API directly. Vendor-prefixed APIs, deprecated signatures, forwarding files, and behavior compatibility are not maintained in the core.
When a downstream environment lacks a required capability, the downstream application may choose a separate adapter or polyfill. Such compatibility code must not become a transitive dependency of this library. See the full roadmap and compatibility policy.
The project is currently in the boundary and correctness phases of the roadmap:
No module is stable until those gates are satisfied.
Run the repository gate before committing:
npm run checkOn a new development machine, install the pinned test dependencies and browser engines once:
npm ci
npx playwright installThe local gate checks JavaScript syntax, relative-import resolution, local HTML assets, the absence of root-level JavaScript entry points, core dependency direction, the Node contract suite, core import smoke tests, the browser contract harness, and representative examples in Chromium and WebKit. CI additionally runs the same browser suite in Firefox. Playwright and its browser binaries are development-only; published modules have no runtime dependency on them.
MIT © Lsong
Optional dependencies and isolated vendor licenses are listed in THIRD_PARTY_NOTICES.md.