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

@timotheej/dsfr-toolkit

v2.1.0

Published

Toolkit DSFR React pour scaffolder des projets avec Claude Code — Système de Design de l'État

Readme

@timotheej/dsfr-toolkit

Toolkit pour scaffolder des projets DSFR React (Systeme de Design de l'Etat) prets a l'emploi avec Claude Code.

Les designers creent un projet en une commande, promptent Claude, et buildent des ecrans DSFR conformes sans ecrire de code.

Stack technique

Les projets generes utilisent :

  • React 18 + TypeScript
  • Vite (dev server + build)
  • @codegouvfr/react-dsfr (wrapper React officiel du DSFR)
  • React Router 6 (navigation SPA, layout partage)

Prerequis

  • Node.js >= 18
  • npm
  • Claude Code (npm install -g @anthropic-ai/claude-code)

Installation et usage

npx @timotheej/dsfr-toolkit create mon-projet
cd mon-projet
npm run dev

Le projet est pret. Vite demarre sur http://localhost:5173.

Utiliser Claude Code

Ouvrez Claude Code dans le dossier du projet :

claude

Premiere utilisation — Contexte projet

Decrivez simplement votre projet. Claude remplira automatiquement le fichier PROJET.md :

> On travaille pour le ministere de la Sante sur un portail
  de suivi des agrements sanitaires

Claude vous posera des questions (utilisateurs cibles, parcours, pages a creer) puis remplira PROJET.md.

Creer des ecrans

Une fois le contexte rempli, demandez simplement :

> Cree-moi la page de connexion
> Ajoute un tableau de bord avec les demandes en cours
> Fais-moi un formulaire de depot en 3 etapes

Claude suit automatiquement un workflow en 6 phases :

  1. Initialisation — Remplit le contexte projet (PROJET.md)
  2. Analyse — Lit le contexte projet et les specs
  3. Wireframe — Propose une maquette textuelle (attend votre validation)
  4. Composants — Identifie les composants react-dsfr et lit leur documentation
  5. Build — Genere le composant React + route + navigation
  6. Review — Verifie la conformite DSFR, l'accessibilite RGAA et le dark mode

Nourrir le contexte

Vous pouvez enrichir le contexte a tout moment :

  • PROJET.md — Informations client, objectifs, parcours utilisateur
  • specs/ — Cahier des charges, wireframes, parcours detailles (format .md)

Claude lit automatiquement ces fichiers avant chaque creation d'ecran.

Structure du projet genere

mon-projet/
├── index.html              # Point d'entree Vite
├── src/
│   ├── main.tsx            # Initialisation React + DSFR
│   ├── App.tsx             # Routes React Router
│   ├── Layout.tsx          # Header + Footer DSFR partages
│   └── pages/              # Ecrans crees par Claude
│       └── Accueil.tsx     # Page d'accueil
├── specs/                  # Specifications fonctionnelles
├── PROJET.md               # Contexte metier (rempli par Claude)
├── CLAUDE.md               # Regles et workflow pour Claude
├── node_modules/
│   ├── @codegouvfr/react-dsfr/    # Composants React DSFR
│   └── @timotheej/dsfr-toolkit/
│       └── docs/           # Documentation DSFR (45+ composants)
├── vite.config.ts
├── tsconfig.json
└── package.json

Mise a jour

cd mon-projet
npx dsfr-toolkit update

Cela met a jour :

  • @codegouvfr/react-dsfr — Composants React DSFR
  • @timotheej/dsfr-toolkit — Documentation des composants DSFR
  • CLAUDE.md — Workflow agent (l'ancien est sauvegarde en .bak)

Les fichiers de votre projet (PROJET.md, src/pages/) ne sont jamais touches.

Commandes CLI

| Commande | Description | |----------|-------------| | dsfr-toolkit create <nom> | Creer un nouveau projet DSFR React | | dsfr-toolkit update | Mettre a jour les dependances du projet courant | | dsfr-toolkit --version | Afficher la version du toolkit | | dsfr-toolkit --help | Afficher l'aide |

Developpement du toolkit

git clone <repo>
cd dsfr-toolkit
npm link
npx dsfr-toolkit create test-projet   # Tester le scaffolding
node tests/create.test.js             # Lancer les tests

Licence

ISC