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

yasui

v4.3.2

Published

Lightweight multi-runtime framework for REST and web APIs

Readme

Node.js Version npm bundle size npm downloads

Ship production-ready REST APIs in minutes 🐿️   •   Documentation 📖

What is YasuiJS?

Yasui (meaning "easy" in Japanese) is a lightweight multi-runtime framework built on Web Standards and pushed with SRVX, that brings the developer experience of modern frameworks without the complexity. It runs on Node.js, Deno, and Bun, providing the structure you need with just the features you'll actually use.

Features Summary

  • Multi-Runtime: Runs on Node.js, Deno, and Bun via SRVX and Web Standards
  • Lightweight & Fast: Minimal dependencies with focus on essentials without the bloat
  • Complete Error Handling: Everything can throw without try/catch - automatic error handling everywhere
  • Automatic Type-Casting: Query params automatically converted to proper types. Even in middlewares
  • Flexible DI System: Constructor and method-level injection with configurable scopes for better control
  • Simple Middlewares: Apply at global, controller, or route level. Use the same decorators as controllers
  • Rich Swagger Generation: Flexible decorators for enums, arrays, classes, OpenAPI schemas
  • HTTPS/HTTP2 Support: Built-in TLS configuration with automatic HTTP/2 on Node.js
  • Type-safe: Full TypeScript support with proper typing

Quick Start

npm install yasui
import yasui, { Controller, Get } from 'yasui';

@Controller('/')
export class AppController {
  @Get('/')
  hello() {
    return { message: 'Hello World!' };
  }
}

yasui.createServer({
  controllers: [AppController]
});

📖 Documentation

  • Configuration - Server setup and global options
  • Controllers - Define routes with decorators and automatic type casting
  • Dependency Injection - Constructor and method-level injection with flexible scopes
  • Error Handling - Automatic error catching without try/catch blocks
  • Logging - Built-in timing and color-coded logging service
  • Middlewares - Apply at multiple levels with same decorators as controllers
  • Pipes - Transform and validate request data automatically
  • Swagger Doc. - Generate OpenAPI docs with flexible decorators

Plugins

Production-ready middlewares and utilities for YasuiJS:

Why YasuiJS?

YasuiJS adopts a class-based, object-oriented approach with decorators, bringing significant architectural advantages:

Better Code Organization

Classes and decorators provide better organization, encapsulation, and maintainability. This approach naturally supports established architectural patterns like onion architecture, hexagonal architecture, and clean architecture.

Dependency Injection

Built-in dependency injection enables loose coupling, better testability, and cleaner separation of concerns. Dependencies are explicitly declared and automatically resolved.

Declarative Over Imperative

Instead of manually registering routes and extracting parameters, you declare what you want using decorators. The framework handles the implementation details.

Multi-Runtime Support

Built on web standards, YasuiJS provides a portable, standard codebase for JavaScript runtimes, capable of running on Node.js, Deno, and Bun with SRVX, a universal server abstraction based on the Fetch API. Future-proof your applications with standard web APIs.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.
Please use npm run commit to standardize commits nomenclature.

License

This project is licensed under the GNU Affero General Public License v3.0 or later. See the LICENSE file for details.