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

@soapjs/soap

v0.7.2

Published

Lightweight, clean architecture-based framework designed to streamline the development of modular and maintainable web applications

Readme

SoapJS

Enterprise-ready Clean Architecture framework for TypeScript

⚠️ Work in Progress - Currently in development towards v1.0.0. API is stable and won't change, only additions will be made.

SoapJS brings enterprise architecture patterns to TypeScript applications. Build scalable, maintainable systems with Clean Architecture, DDD, CQRS, and Event Sourcing - framework and database agnostic.

Why SoapJS?

  • Clean Architecture - DDD, CQRS, Event Sourcing out of the box
  • Framework Agnostic - Works with Express, NestJS, Fastify, and more
  • Database Agnostic - MongoDB, PostgreSQL, MySQL, Redis support
  • Type-Safe - Full TypeScript support with generics
  • Real-Time Ready - WebSocket and event-driven patterns
  • Plugin System - Security, metrics, monitoring plugins
  • Enterprise Features - Security, audit logging, transaction management

Quick Start

npm install @soapjs/soap
import { Entity, ReadWriteRepository, UseCase, Result, Where } from '@soapjs/soap';

// Define your domain entity
interface User extends Entity {
  readonly name: string;
  readonly email: string;
  readonly age: number;
}

// Create a use case
@Injectable()
class CreateUserUseCase extends UseCase<User> {
  constructor(
    @Inject('UserRepository')
    private userRepo: ReadWriteRepository<User>
  ) {
    super();
  }

  async execute(data: { name: string; email: string; age: number }): Promise<Result<User>> {
    const user: User = {
      id: generateId(),
      name: data.name,
      email: data.email,
      age: data.age
    };
    return this.userRepo.add(user);
  }
}

// Type-safe queries work with any database
const activeUsers = await userRepo.find(
  Where.valueOf('status').isEq('active')
    .and.valueOf('age').isGte(18)
);

Documentation

Core Concepts

HTTP & Real-time

Plugins & Monitoring

Query Building

Perfect For

  • Enterprise Applications - Complex business logic with multiple domains
  • Microservices - Consistent architecture across services
  • Real-Time Applications - WebSocket-based features and event-driven interactions
  • Legacy Modernization - Gradual migration to Clean Architecture

Current Status

Ready to Use:

  • Core Clean Architecture implementation
  • Domain, Data, and API layers
  • CQRS, Event Sourcing, Repository patterns
  • Type-safe query builder
  • HTTP plugins (Security, Metrics, Memory Monitoring)
  • Dependency injection and validation

In Development (v1.0.0):

  • Framework integrations (Express, NestJS, Fastify)
  • Database adapters (MongoDB, PostgreSQL, MySQL, Redis)
  • Event bus adapters (RabbitMQ, Kafka, AWS SQS)
  • CLI tools and boilerplates

Example Usage

// HTTP Plugin System
import { HttpApp, SecurityPlugin, MetricsPlugin } from '@soapjs/soap';

const app = new SoapExpress();

app.usePlugin(new SecurityPlugin({
  enableCSRF: true,
  enableSecurityHeaders: true,
  exposeEndpoints: true
}));

app.usePlugin(new MetricsPlugin({
  exposeEndpoint: true,
  metricsPath: '/metrics'
}));
// Custom Repository
class UserRepository extends ReadWriteRepository<User, UserDocument> {
  async findByEmail(email: string): Promise<Result<User | null>> {
    return this.find(Where.valueOf('email').isEq(email));
  }
}

Community

License

MIT License - see LICENSE for details.

Enterprise Support

Need enterprise support, consulting, or custom integrations?

  • Enterprise Support - Priority support and SLAs
  • Architecture Consulting - Clean Architecture implementation
  • Migration Services - From legacy to Clean Architecture
  • Training Programs - Team training and workshops

Contact: [email protected]


SoapJS - Enterprise-ready Clean Architecture framework for scalable, maintainable applications.