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

todo-max

v1.0.1

Published

Un gestionnaire de taches en ligne de commande developpée en TypeScript

Readme

todo-max

License: MIT

Un gestionnaire de tâches en ligne de commande développé en TypeScript avec une architecture orientée objets.

Fonctionnalités

  • Créer, lister, afficher, modifier et supprimer des tâches
  • Filtrer les tâches par statut (todo, in-progress, completed)
  • Afficher les statistiques globales des tâches
  • Décorateurs personnalisés (@timestamp, @validate, @measureTime)
  • Stockage en fichiers JSON avec classe générique DataStore
  • Validation des données avec Strategy Pattern
  • Tests unitaires avec Vitest

Installation

git clone https://github.com/mx-989/todolist.git
cd todolist
npm install

Le projet utilise tsx pour exécuter TypeScript directement sans compilation préalable.

Utilisation

Afficher l'aide

npm run cli help

Créer une tâche

create nom_tache [description] [status]

npm run cli create "Apprendre TypeScript"
npm run cli create "Faire les courses" "Acheter du pain" todo

Protection contre les doublons : Si une tâche avec le même titre existe déjà, une confirmation sera demandée avant la création.

Lister les tâches

list [status]

npm run cli list
npm run cli list todo
npm run cli list completed

Afficher une tâche par son ID

get id

npm run cli get 1

Mettre à jour une tâche

update id [title] [description] [status]

npm run cli update 1 "Nouveau titre" "Description" in-progress

Supprimer une tâche

delete id

npm run cli delete 1

Statistiques

stats

npm run cli stats

Architecture

project-root/
├── data/               # Stockage JSON
│   └── tasks.json
├── models/             # Modèles de données
│   └── Task.ts
├── storage/            # Gestion du stockage
│   └── DataStore.ts
├── validators/         # Validation
│   ├── validation.ts
│   ├── decorators.ts
│   └── strategies/
│       └── ValidationStrategy.ts
├── cli/                # Interface ligne de commande
│   ├── TaskManager.ts
│   └── index.ts
├── tests/              # Tests unitaires
│   ├── TaskManager.test.ts
│   └── DataStore.test.ts
├── tsconfig.json
├── package.json
└── README.md

Tests

npm test
npm run test:watch
npm run test:coverage

Décorateurs

Le projet utilise trois décorateurs personnalisés :

@timestamp

Log automatiquement les appels de méthode avec horodatage :

@timestamp
createTask(title: string): Task {
  // Logs: [2025-11-19T10:00:00.000Z] createTask
}

@validate

Valide automatiquement les arguments d'une méthode :

@validate
deleteTask(id: number): boolean {
  // Vérifie que l'ID est valide avant exécution
}

@measureTime

Mesure le temps d'exécution d'une méthode :

@measureTime
listTasks(): Task[] {
  // Logs: [PERF] listTasks exécuté en 1.23ms
}

Licence

MIT

Structure des données

Les tâches sont stockées au format JSON avec la structure suivante :

{
  "id": 1,
  "title": "Apprendre TypeScript",
  "description": "Suivre le cours complet",
  "status": "in-progress",
  "completed": false,
  "createdAt": "2024-01-15T10:00:00.000Z",
  "updatedAt": "2024-01-15T14:30:00.000Z"
}