npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

domo-tactical-storage

v0.2.0

Published

Persistent storage backends for DomoTactical-TS - PostgreSQL, KurrentDB/EventStoreDB, and Cloudflare D1

Readme

DomoTacticalStorage-TS

License: RPL-1.5 TypeScript npm version V8 Runtimes npm downloads KurrentDB PostgreSQL Cloudflare D1 GitHub stars

Persistent storage backends for DomoTactical-TS - providing production-ready Journal and DocumentStore implementations for KurrentDB/EventStoreDB, PostgreSQL, and Cloudflare D1.

Overview

DomoTacticalStorage-TS extends DomoTactical with pluggable persistence backends:

| Backend | Journal | DocumentStore | Best For | |---------|---------|---------------|----------| | KurrentDB | Yes | - | Event-first architectures, native event streaming | | PostgreSQL | Yes | Yes | Traditional deployments, ACID compliance | | Cloudflare D1 | Yes | Yes | Edge computing, serverless, global distribution |

All implementations are actor-based, async-first, and fully compatible with DomoTactical's event sourcing and CQRS patterns.

Installation

npm install domo-tactical-storage domo-tactical domo-actors

Quick Start

QS for KurrentDB

import { stage } from 'domo-actors'
import { KurrentDBConfig, KurrentDBJournal } from 'domo-tactical-storage/kurrentdb'

// Create configuration from connection string
const config = KurrentDBConfig.fromConnectionString('esdb://localhost:2113?tls=false')

// Create journal as an actor
const journal = stage().actorFor({
  type: () => 'Journal',
  instantiator: () => ({ instantiate: () => new KurrentDBJournal(config) })
})

// Register for your context
stage().registerValue('domo-tactical:myapp.journal', journal)

// Now your EventSourcedEntity classes will automatically use this journal

QS for Postgres

import { stage } from 'domo-actors'
import { PostgresConfig, PostgresJournal } from 'domo-tactical-storage/postgres'

// Create configuration from connection string
const config = PostgresConfig.fromConnectionString(process.env.DATABASE_URL!)

// Create journal as an actor
const journal = stage().actorFor({
  type: () => 'Journal',
  instantiator: () => ({ instantiate: () => new PostgresJournal(config) })
})

// Register for your context
stage().registerValue('domo-tactical:myapp.journal', journal)

// Now your EventSourcedEntity classes will automatically use this journal

Documentation

Features

  • KurrentDB Backend

    • Native event store integration
    • UUID v7 for time-ordered event IDs
    • Stream lifecycle management (tombstone, soft-delete)
    • Subscription support for projections
  • PostgreSQL Backend

    • Full Journal implementation with optimistic concurrency
    • DocumentStore for query models
    • JSONB storage for efficient querying
    • Connection pooling support
  • Cloudflare D1 Backend

    • Edge-native SQLite storage
    • Journal and DocumentStore implementations
    • Optimized for Workers runtime
    • ULID for k-sortable event IDs

Requirements

  • Node.js >= 18.0.0
  • domo-tactical >= 0.3.0
  • domo-actors >= 1.2.0

Backend-Specific Requirements

  • KurrentDB: KurrentDB 26.0+
  • PostgreSQL: PostgreSQL 12+ with JSONB support
  • D1: Cloudflare Workers with D1 binding

License

Licensed under the Reciprocal Public License 1.5 (RPL-1.5)

See LICENSE.md for details.

Credits

  • VLINGO/XOOM Platform - Original Java implementation
  • DomoTactical-TS - Core tactical patterns
  • DomoActors-TS - Actor model foundation
  • Authored by Vaughn Vernon