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

@dooboostore/simple-boot-http-server

v1.0.25

Published

back end http server frameworks

Readme

@dooboostore/simple-boot-http-server

NPM version Build and Test License: MIT

@dooboostore/simple-boot-http-server is a lightweight, high-performance HTTP web server framework for Node.js, built on top of @dooboostore/simple-boot. It provides a decorator-driven, declarative programming model that allows you to design complex backend architectures intuitively and robustly.


🚀 Key Features

  • Declarative Routing: Map URL paths and HTTP methods directly to your controller methods using decorators like @Router, @Route, @GET, and @POST.
  • Dependency Injection (DI): Manage dependencies between services automatically using the @Sim decorator.
  • Middleware & Filters: Systematically separate pre/post-processing logic (CORS, authentication, logging, etc.) through the Filter interface.
  • Powerful Exception Handling: Leverage AOP-based GlobalAdvice to isolate business logic from error handling logic.
  • WebSocket Integration: Includes a topic-based publish/subscribe model and automatic reconnection features.
  • Resource Resolvers: Provides ResourceResolver for serving static files and templates effortlessly.

📦 Installation

pnpm add @dooboostore/simple-boot-http-server reflect-metadata

💻 Usage Example

1. Define a Service (Dependency Injection)

Create a service that contains business logic using @Sim.

import { Sim } from '@dooboostore/simple-boot/decorators/SimDecorator';

@Sim
export class UserService {
  private users = [{ id: 1, name: 'Dooboo' }];

  getAllUsers() {
    return this.users;
  }
}

2. Configure Router and Controller

Define endpoints using decorators. Inject services through the constructor.

import { Sim } from '@dooboostore/simple-boot/decorators/SimDecorator';
import { Router, Route } from '@dooboostore/simple-boot/decorators/route/Router';
import { GET, POST } from '@dooboostore/simple-boot-http-server/decorators/MethodMapping';

@Sim
@Router({ path: '/api' })
export class ApiRouter {
  constructor(private userService: UserService) {}

  @Route({ path: '/users' })
  @GET({ res: { contentType: 'application/json' } })
  getUsers() {
    return this.userService.getAllUsers();
  }
}

3. Run the Server

Configure HttpServerOption and launch the server.

import 'reflect-metadata';
import { SimpleBootHttpServer } from '@dooboostore/simple-boot-http-server/SimpleBootHttpServer';
import { HttpServerOption } from '@dooboostore/simple-boot-http-server/option/HttpServerOption';

const option = new HttpServerOption(
  { listen: { port: 8080 } },
  { rootRouter: ApiRouter }
);

const server = new SimpleBootHttpServer(option).run();
console.log('🚀 Server running at http://localhost:8080');

🛠️ Advanced Features

Filters

Implement the Filter interface to perform common request processing.

@Sim
export class MyAuthFilter implements Filter {
    async onHandle(rr: RequestResponse): Promise<boolean> {
        // Returning false stops the request execution.
        return true; 
    }
}

📖 Learn More

Check out the detailed guides and tutorials in the document folder.


License

MIT License