@standard-server/shared

v0.9.2

Published

Internal types and utilities shared across the Standard Server ecosystem

Readme

@standard-server/shared

@standard-server/shared contains internal types and utilities shared across the @standard-server ecosystem β€” small helpers for arrays, objects, JSON, iterators, promises, queues, IDs, URIs, and more.

It has no runtime dependencies and works in any JavaScript environment. The package exists so the other @standard-server packages can share these building blocks without duplication; its API follows their needs and is not designed for direct use in applications.

Standard Server ships as a small ecosystem of packages:

| Package | Description | | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | @standard-server/core | The shared contract: types, body parsing rules, validators, and SSE helpers | | @standard-server/fetch | Fetch API adapter for browsers, workers, and other Fetch-based runtimes | | @standard-server/node | Node.js HTTP and HTTP/2 adapter | | @standard-server/fastify | Fastify adapter built on the Node.js adapter | | @standard-server/aws-lambda | AWS Lambda adapter with response streaming | | @standard-server/peer | Message-based adapter for WebSocket, MessagePort, and custom transports | | @standard-server/shared | Internal utilities shared across the ecosystem |

Learn more

For the project overview and the public contract of the ecosystem, see the core documentation.

Sponsors

Like what we build over at middleapi? You can help keep it going through GitHub Sponsors or Open Collective. Every bit helps! πŸš€

Special Sponsors

Organization Sponsors

Sponsors

Backers

With thanks to 36 past sponsors who helped get us here.

License

Distributed under the MIT License. See LICENCE for more information.