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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lukodo/simplexapi

v0.0.6

Published

Un framework web ligero para Node.js con decoradores y TypeScript

Readme

SimplexAPI

Un framework web ligero para Node.js construido con TypeScript y decoradores, inspirado en NestJS pero más simple y minimalista.

Características

  • Decoradores TypeScript - Sintaxis limpia y moderna
  • 🚀 Lightweight - Sin dependencias pesadas
  • 🔧 Inyección de dependencias - Container IoC integrado
  • 📝 Validación - Integración con VineJS
  • 🎯 Type-safe - Completamente tipado con TypeScript
  • 🔥 Hot reload - Desarrollo rápido

Instalación

npm install @tuusuario/simplexapi reflect-metadata @vinejs/vine

Uso básico

1. Configurar el servidor

import 'reflect-metadata';
import { SimplexAPI } from '@tuusuario/simplexapi';

const app = new SimplexAPI(3000);
app.listen();

2. Crear un controlador

import { Controller, Get, Post, Param, Body } from '@tuusuario/simplexapi/decorators';

@Controller('/api/users')
export class UserController {
  @Get('/')
  getAllUsers() {
    return 'Lista de usuarios';
  }

  @Get('/:id')
  getUserById(@Param('id') id: string) {
    return `Usuario con ID: ${id}`;
  }

  @Post('/')
  createUser(@Body() userData: any) {
    return `Usuario creado: ${JSON.stringify(userData)}`;
  }
}

3. Usar servicios con inyección de dependencias

import { Injectable } from '@tuusuario/simplexapi/decorators';
import { LoggerService } from '@tuusuario/simplexapi/middlewares';

@Injectable()
export class UserService {
  constructor(private logger: LoggerService) {}

  findAll() {
    this.logger.log('Obteniendo todos los usuarios');
    return [];
  }
}

API Reference

Decoradores disponibles

  • @Controller(prefix) - Define un controlador con prefijo de ruta
  • @Get(path) - Maneja peticiones GET
  • @Post(path) - Maneja peticiones POST
  • @Put(path) - Maneja peticiones PUT
  • @Patch(path) - Maneja peticiones PATCH
  • @Delete(path) - Maneja peticiones DELETE
  • @Param(name) - Inyecta parámetros de ruta
  • @Query(name) - Inyecta parámetros de query
  • @Body() - Inyecta el cuerpo de la petición
  • @Injectable() - Marca una clase como inyectable

Servicios incluidos

  • LoggerService - Servicio de logging básico
  • Container IoC - Sistema de inyección de dependencias

Contribuir

Las contribuciones son bienvenidas. Por favor, abre un issue primero para discutir los cambios que te gustaría hacer.

Licencia

MIT