Community-maintained TypeScript and JavaScript gRPC client for TrogonEventStore.
| Package | Purpose |
|---|---|
@trogonstack/trogon-eventstore-client |
Database client |
@trogonstack/trogon-eventstore-opentelemetry |
OpenTelemetry instrumentation |
Packages are published to GitHub Packages. Configure the @trogonstack npm scope before installing:
@trogonstack:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}npm install @trogonstack/trogon-eventstore-clientDo not commit registry credentials or tokens.
import {
jsonEvent,
NO_STREAM,
TrogonEventStoreClient,
} from "@trogonstack/trogon-eventstore-client";
const client = TrogonEventStoreClient.connectionString(
"esdb://localhost:2113?tls=false"
);
await client.appendToStream(
"orders-1",
jsonEvent({ type: "OrderCreated", data: { orderId: "1" } }),
{ streamState: NO_STREAM }
);corepack enable
yarn install --immutable
yarn build
yarn lintIntegration tests use ghcr.io/trogonstack/trogoneventstore:ci by default. Override it with TROGON_EVENTSTORE_IMAGE.
Licensed under Apache-2.0. This derivative preserves the original copyright notice and identifies modifications by Straw Hat, LLC in LICENSE.