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

@20syldev/api

v4.5.0

Published

Node.js API with multiple features. Check the documentation at https://docs.sylvain.sh

Readme

API Personnelle

Version


À propos de l'API

Voici mon API personnelle, disponible sur le domaine api.sylvain.sh. L'API est développée avec TypeScript et Node.js, et hébergée 24h/7j. Elle est simple d'utilisation et a une documentation disponible sur docs.sylvain.sh !

Une limite de 2000 requêtes par heure est fixée. Elle change pour certains endpoints nécessitant plus de ressources. Si vous souhaitez une augmentation de cette limite, n'hésitez pas à visiter la documentation.

Prérequis

  • Node.js >= 22.0.0

Installer le paquet de l'API sur votre machine

$ sudo apt install nodejs npm
$ npm install @20syldev/api
$ npm init

Attention, vous devez configurer le type sur "module" dans votre fichier package.json.

Utiliser l'API

Option 1 : Démarrer un serveur local

Pour démarrer un serveur local avec tous les endpoints :

$ npm run build && npm start
> @20syldev/[email protected] build
> tsc

> @20syldev/[email protected] start
> node dist/app.js

API is running on
    - http://127.0.0.1:3000
    - http://localhost:3000

Pour le développement avec rechargement automatique :

$ npm run dev

Option 2 : Utiliser les modules directement dans votre code

Vous pouvez également importer les modules spécifiques dont vous avez besoin :

// Importer des modules spécifiques depuis la v4
import { color, token, username } from '@20syldev/api/v4';

// Générer une couleur aléatoire
const couleur = color();
console.log(`Couleur HEX: ${couleur.hex}`);
console.log(`Couleur RGB: ${couleur.rgb}`);
console.log(`Couleur HSL: ${couleur.hsl}`);

// Générer un nom d'utilisateur aléatoire
const utilisateur = username();
console.log(`Nom d'utilisateur: ${utilisateur.username}`);

// Générer un jeton sécurisé
const jeton = token(16, 'hex');
console.log(`Jeton: ${jeton}`);

Scripts disponibles

| Commande | Description | |----------|-------------| | npm run dev | Serveur de développement avec rechargement automatique (tsx watch) | | npm run build | Compilation TypeScript vers dist/ | | npm start | Démarrer le serveur de production (node dist/app.js) | | npm run lint | Vérification ESLint | | npm run format | Formatage avec Prettier | | npm run check | Vérification TypeScript + ESLint |

Modules disponibles

L'API v4 expose plusieurs modules que vous pouvez importer :

import {
    algorithms,        // Fonctions algorithmiques diverses
    captcha,           // Génération d'images captcha
    chat,              // Système de chat temporaire
    color,             // Génération de couleurs aléatoires
    convert,           // Conversions d'unités
    dice,              // Lanceur de dés RPG
    domain,            // Informations de domaine aléatoires
    encode,            // Encodage / décodage (base64, morse, rot13, caesar, binaire)
    hash,              // Hachage de texte
    hyperplanning,     // Analyse de calendriers
    levenshtein,       // Distance entre chaînes
    personal,          // Informations personnelles aléatoires
    qrcode,            // Génération de QR codes
    statistics,        // Statistiques descriptives
    tic_tac_toe,       // Jeu de morpion
    time,              // Informations temporelles
    text,              // Utilitaires texte (slug, stats, lorem, nombre en lettres)
    token,             // Génération de jetons sécurisés
    username,          // Génération de noms d'utilisateur
    validate           // Validation (Luhn, IBAN, email)
} from '@20syldev/api/v4';

Visitez la documentation dédiée, vous y retrouverez des exemples de requêtes et des codes simples pour tester l'API !