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

@rueda.dev/gems-sardius

v1.2.0

Published

Sardius - DDD NestJS Backend Template by Rueda.dev

Readme

@rueda.dev/gems-sardius


What is Sardius?

Sardius is a production-ready backend template that puts your business logic first. Unlike typical NestJS projects where everything depends on the framework, Sardius keeps your core domain 100% pure TypeScript with zero external dependencies.

The result? Your business logic can be tested in milliseconds, migrated to any framework, and maintained without framework expertise.

Quick Start

npx "@rueda.dev/gems-sardius" my-project
cd my-project
npm install
cp .env.example .env
docker-compose up -d
npm run prisma:migrate
npm run start:dev

Your API is now running at http://localhost:3333

What's Included

| Feature | Description | |---------|-------------| | User Management | Complete CRUD with email/username authentication | | Google OAuth | Sign in with Google out of the box | | Role-Based Access | @Admin(), @Public(), @Roles() decorators | | File Storage | GCP Cloud Storage with auto image optimization | | RS256 JWT | Asymmetric encryption for secure tokens | | Either Pattern | Type-safe error handling without try-catch |

Why Sardius?

Traditional Approach

// Business logic mixed with framework code
@Injectable()
export class UserService {
  constructor(private prisma: PrismaService) {}

  async createUser(dto: CreateUserDto) {
    // What if you need to change ORMs?
    // What if NestJS changes its patterns?
  }
}

Sardius Approach

// Pure TypeScript - no framework, no dependencies
export class CreateUserUseCase {
  constructor(private usersRepository: UsersRepository) {}

  async execute(request: CreateUserRequest): Promise<Either<Error, User>> {
    // Your business logic stays the same forever
    // NestJS is just the HTTP adapter
  }
}

Project Structure

src/
├── domain/           # Pure business logic (no imports from http/ or infra/)
│   ├── @shared/      # Entity, ValueObject, Either pattern
│   ├── identity/     # User management bounded context
│   └── storage/      # File storage bounded context
│
├── http/             # NestJS (just an HTTP adapter)
│   ├── auth/         # POST /auth/login, GET /auth/google
│   ├── users/        # CRUD endpoints
│   └── storage/      # File upload/download
│
└── infra/            # External implementations
    ├── database/     # Prisma repositories
    ├── cryptography/ # Bcrypt, JWT
    └── storage/      # GCP Storage, Sharp

Available Commands

npm run start:dev      # Development server with hot reload
npm run build          # Build for production
npm run test:unit      # Fast unit tests (domain only)
npm run test:e2e       # Integration tests
npm run prisma:studio  # Visual database editor

Learn More

See the full documentation at the Sardius GitHub repository.

License

MIT - Rueda.dev