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

@modlycrew/c2e

v0.0.2

Published

c2e is a Mocha/Chai & Cypress.io test scaffolding helper to produce end-to-end test files mapping organizational (c)apabilties to(2) (e)xpected outcomes / criteria (i.e. expect(A).to.equal(B), cy.get().contains(), etc)

Readme

C2E - Test Scaffolding

c2e is a Mocha/Chai & Cypress.io test scaffolding helper loosely aligned with TOGAF, Agile & other common concepts to produce end-to-end test files mapping organizational (c)apabilties to(2) (e)xpected outcomes / criteria (i.e. expect(A).to.equal(B), cy.get().contains(), etc)

🚨 c2e is currently under 'organic' development, any use or contribution is more than welcome 🙏

Input ~~JSON~~YAML file

C2E currently processes ~~JSON~~YAML files using the following basic structure; See .\examples\example-input.c2e.yaml' for more detail.

|-> Version
|-> Capability
    \-> Storyboard
        |-> Action(s)
        \-> Scene(s)
            |-> Action(s)
            \-> User Story(s)
                |-> Action(s)
                \-> Criteria(s)
                    \-> Expectation(s)

Note: only variables on the 1st line of code under an Action will be hoisted. Note: for object validation using json-schema the schema needs to be added to the ajv object e.g. ajv.addSchema(schema,schemaID). To validate an object in an Expectation call validateObject(object,schemaID).

Usage

From the folder containing *.c2e.~~json~~yaml file(s) run c2e In the current folder C2E will generate folders & files for each Storyboard e.g.".\{Capability}\{Version} {Capability} {Storyboard}.spec.js"

Roadmap

  • [x] Define input *.c2e.ymal file structure & output folder(s) / *.spec.js file(s) structure
  • [x] Generate Cypress.io ready *.spec.js file(s) with basic test types from *.c2e.json file(s)
  • [x] Add support for object validation tests using AJV, json-schema to be loaded from *.json file(s)
  • [ ] Add *.c2e.json schema validation & feedback
  • [x] ~~Update *.c2e.json file(s) from *.spec.js file(s) structure (i.e. enable 'round trip' generation)~~ Cancelled: Replaced through use of watching *.c2e.yaml files to allow update on change & using Cypress.io file watching mode.
  • [ ] Add *.c2e.yaml GUI editor

Change Log

  • 0.0.2 Changes to input file format & added functionality;
    • Changed input format from .json to .yaml to make generation of inputs easier for non-technical users, support of multiline editing & use of code highlighting tools (e.g. https://github.com/iuyoy/highlight-string-code)
    • Added support for hoisting variables up one grouping
    • Added support for hoisting imports to start of .spec.js
    • Added support for object validation using AJV
    • Changed to file watching & re-writting of .spec.js files on .c2e.yaml change (...works with Cypress.io in watch mode)
  • 0.0.1 Initial release

...by the Modly community