npm.io
0.8.0 • Published 1 week ago

@standardserver/shared

Licence
MIT
Version
0.8.0
Deps
0
Size
32 kB
Vulns
0
Weekly
0
Stars
19

@standardserver/shared

@standardserver/shared contains internal types and utilities shared across the @standardserver 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 @standardserver 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
@standardserver/core The shared contract: types, body parsing rules, validators, and SSE helpers
@standardserver/fetch Fetch API adapter for browsers, workers, and other Fetch-based runtimes
@standardserver/node Node.js HTTP and HTTP/2 adapter
@standardserver/fastify Fastify adapter built on the Node.js adapter
@standardserver/aws-lambda AWS Lambda adapter with response streaming
@standardserver/peer Message-based adapter for WebSocket, MessagePort, and custom transports
@standardserver/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 here: GitHub Sponsors. Every bit helps!

Platinum Sponsor
ScreenshotOne.com
ScreenshotOne.com
Silver Sponsor
村上さん
村上さん
Generous Sponsors
LN Markets
LN Markets
Sponsors
Reece McDonald
Reece McDonald
あわわわとーにゅ
あわわわとーにゅ
nk
nk
supastarter
supastarter
Dexter Miguel
Dexter Miguel
herrfugbaum
herrfugbaum
Ryota Murakami
Ryota Murakami
David Cramer
David Cramer
Valerii Petryniak
Valerii Petryniak
Valerii Strilets
Valerii Strilets
Kyle Mistele
Kyle Mistele
christ12938
christ12938
Ryan Soderberg
Ryan Soderberg
shota
shota
Ellis Driscoll
Ellis Driscoll
Hoang Nguyen
Hoang Nguyen
Backers
David Walsh
David Walsh
Robbe Vaes
Robbe Vaes
Aidan Sunbury
Aidan Sunbury
soonoo
soonoo
Kevin Porten
Kevin Porten
Denis
Denis
Christopher Kapic
Christopher Kapic
Tom Ballinger
Tom Ballinger
Sam
Sam
Titoine
Titoine
Igor Makowski
Igor Makowski
hanayashiki
hanayashiki
Lev Dubinets
Lev Dubinets
Kelly Peilin Chan
Kelly Peilin Chan
Guy Ariely
Guy Ariely
Alex
Alex
Andrey Gubanov
Andrey Gubanov

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

License

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