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

cp-ts-launchpad-v2

v1.3.0

Published

A Captivate project starting point for 2022

Readme

cp-ts-launchpad-v2-doco

A Captivate project starting point for 2022. But now with a doco site, CI testing and automated publish to NPM!

Git commits

Open a new branch (preferabaly through a GitHub Issue) and make small commits. When you want to add a commit, run the following:

git add .
yarn commit

This will step you through a short CLI which will confirm what kind of changes have been made.

Once you're ready to release to NPM, create a pull request to Main. The CI will first run the Cypress tests to confirm no errors have snuck in. After that, when you accept the pull request, GitHub Actions will automatically change the package.json version number and then push the new build to the npm registry.

Cypress tests

Cypress has been set up with TypeScript. A local host server has been set up to serve the 'server/' folder to port 3000. The server/ folder has been pre-populated with some Captivate test projects.

You can begin running the localhost test server and the Cypress tests with the following command:

yarn test

Within Cypress, the cy.testInCpVersions command has been added to allow you to quickly run tests in different versions of Captivate

it("adds", () => {

	cy.testInCpVersions(["BLANK", "CP_0_2019_REGULAR", "CP_0_2019_RESPONSIVE"], () => {

		// The following code will be run in the above 3 test fixture environments.
		cy.wrap(add(1, 2)).should("eq", 3);

	});

});

Doc site setup

On creating a new project, please got to the docusaurus.config.js and edit the entries with the comment...

// ADD RELEVANT LINK FOR NEW PROJECT

Home page

By default, the home page for the docs site is the root readme file.

API

TypeDoc is setup, so that any tsdoc comments written in src/*.ts will be added to the documentation site. With the following requirements:

  1. Each documented sub-folder to src must have an index.ts which exports the publicized functions.
export { default as identity } from "./identity";
  1. You must add that documented sub-folder's index.ts file to the typedoc.json in the docs folder.
{
	"$schema": "https://typedoc.org/schema.json",
	"entryPoints": ["../src/core/index.ts", "../src/utils/index.ts"],
	"tsconfig": "../tsconfig.json",
	"githubPages": true,
	"readme": "none"
}

Images

You can add images to the api with the following markdown:

![image](../../../static/img/docusaurus.png)

Mermaid

You can add mermaid graphs with the following markdown:

Guides

New markdown document guides can be added to the docs/guides sub-folder and will automatically be included in navigation.

Commands

  • test - Opens cypress and the local host server.
  • test:headless - Runs cypress headlessly.
  • lint - Runs Rome linter
  • build - Builds the typescript export
  • postinstall - Sets up documentation site on first install
  • docs - Generates documentation for GitHub actions
  • docs:readme - Transfers root readme into the documentation site homepage.
  • docs:start - Starts the doc site with live refresh.

GitHub Actions

  • deploy-docs.yml will serve the docusaurus site to gh-pages.
  • deploy-npm.yml will ensure cypress tests run correctly before allowing commits to master. On a successful commit to master it will also update the npm package.