artwork278

Standalone CQRS primitives for TypeScript applications.

10
0
89% credibility
Found Jun 01, 2026 at 10 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

@artworkdev/cqrs is a TypeScript library that helps developers build applications using the CQRS pattern—a way to cleanly separate operations that change data from operations that read data. It provides buses that route commands, queries, and events; building blocks for domain objects; and an outbox system that ensures events are stored reliably before being processed. The library works with any database and includes a SQLite adapter for production use.

How It Works

1
💡 You discover a cleaner way to organize your app

You've been building an application and heard about CQRS—a pattern that separates the parts that change data from the parts that read data.

2
📦 You add the tools to your project

You bring in the library and it gives you everything you need: buses to route work, helpers to build your pieces, and error messages that actually make sense.

3
✏️ You create commands for every action

For each thing your app does—like registering a new user or placing an order—you write a small command that describes the intent.

4
🔍 You create queries for every question

For each piece of information your app needs—like a user profile or a list of orders—you write a query that knows how to fetch it.

5
🔔 You set up events to notify the rest of your app

When something important happens, your app can fire an event, and any part of your system that cares can listen and react—like sending a welcome email when someone signs up.

6
You choose how to keep your data safe
🧪
Start with the built-in memory store

Use the temporary memory version while building and testing—no setup required.

🗄️
Connect to SQLite for real storage

Link to a SQLite database that will reliably hold your events so nothing gets lost.

🎉 Your app runs smoothly with a clear structure

Every action has a home, every question has an answer, and when things happen, everyone who needs to know will find out—reliably.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 10 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is artwork-cqrs?

This is a standalone CQRS library for TypeScript that gives you command, query, and event buses without dragging in a full framework. It handles the plumbing for domain-driven design: you get aggregates that collect domain events, an outbox pattern for reliable messaging, and explicit transaction boundaries you control. The library ships with a SQLite adapter for production use and an in-memory option for testing. Think of it as the building blocks for a well-structured TypeScript application without the NestJS overhead.

Why is it gaining traction?

The pitch is simple: you want CQRS and DDD patterns but do not want NestJS, decorators, or RxJS cluttering your codebase. Registration is explicit and type-safe, which makes the code predictable. The outbox implementation is thorough, handling serialization, versioning, and metadata like correlation IDs. The README is unusually detailed for a small project, explaining the design philosophy behind every decision.

Who should use this?

Backend TypeScript developers building domain-driven applications who want CQRS primitives without committing to NestJS. Teams implementing the outbox pattern for reliable event publishing will find a complete, production-ready solution here. If you are starting fresh and want to keep transactions explicit rather than hidden inside a bus, this fits well.

Verdict

The design is solid and the documentation is excellent for its scope, but the project has only 10 stars and a credibility score of 0.899%, signaling early-stage maturity. Test coverage and real-world battle-testing are unknowns. Worth evaluating for greenfield projects or as a learning resource for CQRS patterns, but factor in the risk of a small, single-maintainer library before betting on it for critical production systems.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.