Current collected state Current
Observed since 20 Oct, 22:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
@021.is/spine-jobs
NATS JetStream publisher + consumer wrapper. Async fan-out + cron triggers + work queues, all going through your NATS instance.
Wrapper around NATS JetStream (your NATS instance).
Three uses:
event.published; independent consumers (audit, analytics, push) each handle it. No HTTP, no waiting, no fragile orchestration.spine.cron.daily-billing-run published by a tiny scheduler pod; the billing service consumes.import { connectJobs } from "@021.is/spine-jobs";
const jobs = await connectJobs({ servers: env.NATS_URL });
// Publish
await jobs.publish("event.published", { eventId: "e_1", organizerId: "o_1" });
// Consume (one consumer per concern; durable so it survives restarts)
await jobs.consume("event.published", "audit-consumer", async (payload) => {
await db.audit.create({ data: { action: "event.published", ...payload } });
});
JetStream-dependent — gated by a Testcontainers NATS image when added to the test suite. For now, integration tests live in the consuming repos.
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
@021.is/spine-errorsEnvironment{
"local_name": "@021.is/spine-errors",
"alias": false,
"peer_metadata": null
} | ^0.4.3 | runtime |
natsEnvironment{
"local_name": "nats",
"alias": false,
"peer_metadata": null
} | ^2.28.2 | runtime |
Source distribution
{
"integrity": "sha512-IBToAP4zRthYS9RvYgch+EHFEnysVuEh2zF+9LJXbihRoBQ+oKePu2yjhjKjgBlyG5F1/P/y2lqeu5hkvhPejA==",
"shasum": "b054591c92658d487b2ac69a2a2cbc7607159ab4",
"tarball": "https://registry.npmjs.org/@021.is/spine-jobs/-/spine-jobs-0.4.3.tgz",
"fileCount": 5,
"unpackedSize": 6401,
"signatures": [
{
"keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
"sig": "MEUCIQDppuyPYqDs57OmCflWl5B5DgGXQBECgsALmigAD5BLagIgE8AHGVWyXHpvkUPAX0Gq//ahdpg6VyT92JcRvJNjJro="
}
]
}Observed since 20 Oct, 22:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:e725cd7bac71b6f24a9a1c131afb645f04784d0683e899e482ec630474bef1bc