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

test-tech

v1.0.3

Published

Lanceur de session enregistrée pour test technique avec agent IA

Readme

test-tech (CLI)

Le lanceur de session enregistrée pour test technique. C'est ce paquet qui répond à npx test-tech --id=... — il ne contient pas le projet de test lui-même (bug, tests...), qu'il télécharge automatiquement au premier lancement dans un dossier vide.

Configuration avant distribution

Ouvre bin/ton-agent.js et renseigne l'URL de ton app d'onboarding déployée :

const API_BASE_URL = (process.env.TEST_API_URL || "https://ton-app.vercel.app").replace(/\/$/, "");

Cette URL sert à deux choses : télécharger le scaffold du projet (GET /scaffolds/<stack>.zip, servi statiquement depuis onboarding-app/public/scaffolds/) et remonter le statut/log du candidat (PATCH /api/candidates/:testId, POST /api/sessions).

Publier le CLI — deux options

Option A : npm public

npm login
npm publish

⚠️ Le nom test-tech est probablement déjà pris sur le registre public, et n'importe qui pourrait alors exécuter ta commande. Vérifie la disponibilité du nom avant, ou publie sous un nom scopé à ton organisation (@tonentreprise/test-tech — nécessite d'adapter le champ bin du candidat pour utiliser npx @tonentreprise/test-tech).

Option B : GitHub, sans publier sur npm (recommandé pour rester privé)

npx sait exécuter directement un paquet depuis un dépôt GitHub, sans passage par le registre npm :

npx github:ton-org/test-tech-cli --id=TT-4K9X-JEAN

Ça fonctionne avec un dépôt privé si le candidat a un accès en lecture (ou via un token configuré dans son ~/.npmrc / sa config Git), ce qui évite le risque de squattage de nom et garde l'outil hors des regards extérieurs. C'est l'option la plus simple à mettre en place rapidement.

Ajouter d'autres stacks (Flutter, React Native...)

  1. Prépare un nouveau squelette de projet (bug + tests + README), comme pour technical-test/
  2. Depuis onboarding-app/, lance npm run package-scaffold -- --src=../mon-projet --stack=<nom> — génère automatiquement public/scaffolds/<nom>.zip, à plat, sans node_modules/.next/.git
  3. Le candidat lance npx test-tech --id=XXX --stack=<nom>

Limite actuelle à connaître : après extraction, le CLI lance automatiquement npm install s'il trouve un package.json à la racine du scaffold. Pour Flutter (flutter pub get) ou toute stack non-Node, il faudra adapter cette étape dans bin/ton-agent.js (fonction bootstrapScaffold) — actuellement câblée pour npm uniquement.

Test local sans publier

cd /un/dossier/vide
TEST_API_URL="http://localhost:3000" AGENT_CLI=claude \
  node /chemin/vers/test-tech-cli/bin/ton-agent.js --id=TT-TEST