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

@beniot/tp-formulaire-inscription-ci-cd

v0.2.1

Published

Formulaire d'inscription React (TP CI/CD Ynov) — pipeline build, test, couverture, publication npm.

Readme

TP Formulaire d'inscription CI/CD

Build codecov

A React signup form built as a teaching project for the Ynov M1 CI/CD course. The repository demonstrates an end-to-end pipeline: Jest tests, coverage reporting to Codecov, JSDoc generation, automated deployment to GitHub Pages, and automated Semantic Versioning + npm publishing via GitHub Actions.

Live demo: https://benoit-bremaud.github.io/tp-formulaire-inscription-ci-cd/

Features

  • Registration form with six fields — nom, prénom, email, date de naissance, ville, code postal — plus a submit button.
  • The submit button is disabled until every field is filled.
  • Valid submit: the entry is saved to localStorage, a success toast is shown, and the form is cleared.
  • Invalid submit: an error toast is shown and a red error message appears under each invalid field.
  • Validation rules (src/validators.js, 100% tested):
    • Age — the date of birth must be at least 18 years old.
    • Postal code — French format (exactly 5 digits).
    • Name / first name — letters only; accents, diaeresis, hyphen and apostrophe allowed; no digits or special characters.
    • Email — valid email format.

Stack

  • React 19 (Create React App)
  • Jest + Testing Library (unit and component tests)
  • JSDoc (generated documentation)
  • GitHub Actions (CI/CD)
  • Codecov (coverage tracking)
  • GitHub Pages (hosting)
  • npm registry (package publishing)

Prerequisites

  • Node.js 20.x (LTS)
  • npm 10+

Installation

git clone [email protected]:benoit-bremaud/tp-formulaire-inscription-ci-cd.git
cd tp-formulaire-inscription-ci-cd
npm ci

Available scripts

| Command | What it does | | --- | --- | | npm start | Run the dev server on http://localhost:3000 | | npm test | Run the Jest test suite once with coverage report | | npm run build | Produce a production bundle in build/ | | npm run jsdoc | Generate the technical documentation in docs/ | | npm run build-npm | Transpile src/ to dist/ with Babel (the publishable package) | | npm run deploy | Manually publish the build to GitHub Pages (legacy, CI handles this automatically) |

CI/CD pipeline

Every push to main triggers the Build, Test and Deploy React Application workflow:

  1. build_test: installs dependencies, runs the build and the test suite, uploads coverage to Codecov, and packages the build folder as a Pages artifact.
  2. deploy: runs only if build_test succeeds; publishes the artifact to GitHub Pages.
  3. publish: runs only if build_test succeeds; transpiles src/ to dist/, bumps the version (npm version <release_type>, patch by default), and publishes the package to the npm registry. The version bump is committed back to main with a [skip ci] marker so it does not re-trigger the pipeline.

The deployment URL is exposed in the workflow run summary under the github-pages environment. Publishing requires the NPM_TOKEN repository secret — an npm access token with write access to the package's scope (here a granular token scoped to @beniot).

Use as an npm package

The compiled component is published to the public npm registry:

npm install @beniot/tp-formulaire-inscription-ci-cd
import { App } from '@beniot/tp-formulaire-inscription-ci-cd';

Versioning (SemVer)

Versions follow Semantic VersioningMAJOR.MINOR.PATCH:

  • MAJOR: breaking change (incompatible API).
  • MINOR: backward-compatible feature.
  • PATCH: backward-compatible bug fix.

The CI bumps the version and publishes on every push to main — the default bump is patch (npm version patch). Minor and major releases are produced on demand: run the workflow manually from the Actions tab ("Run workflow") and set the release_type input to minor or major. The chosen level is applied automatically by the pipeline (npm version <release_type> + npm publish).

Project structure

src/
├── App.js              root component (signup form)
├── validators.js       pure validation helpers (email, postal code, age, ...)
├── validators.test.js  Jest unit tests for the validators
└── ...
.github/workflows/
└── build_test_deploy_react.yml  CI/CD pipeline
jsdoc.config.json       JSDoc generator configuration