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

cra-template-multi-nix

v2.5.1

Published

The base TypeScript template for Create React App.

Readme

CRA template for rapid and sustainable prototyping

This is an unofficial Create React App TypeScript template, backed by Nix and allowing for multiple entry points.

This temlpate also allows you to develop WDIO tests with a resonably modern Google Chrome backend.

To use this template, add --template multi-nix when creating a new app.

For example:

npx create-react-app my-app --template multi-nix

# or

yarn create react-app my-app --template multi-nix

For more information, please refer to:

Nix

In Doma, we bootstrap Nix on Ubuntu 20.04 LTS via a semi-automatic bootstrap script.

It makes sure that you get all the necessary things installed in your system:

  1. direnv
  2. Multiuser Nix with all the modern functionality: a. Nix command b. Nix flakes

Given you have Nix installed, the flake will bootstrap eveything you need to work with React projects, namely:

  1. Typescript
  2. NodeJS 17
  3. Node-GYP
  4. Serve

Now you can simply write direnv allow and get hacking! No npx n install latest shenanigans, no version management... You don't even need nodejs installed systemwide!

TypeScript

TypeScript is de-facto way to implement NodeJS and in-browser solution, what else to say. Type your stuff tightly, don't use any, and you'll be happy.

Multiple entry points

To debug sometimes we really don't want to mess with the whole ReactRouter stuff and develop components in hermetic isolation (which, arguably, is a way to go anyway). Thus, we provide a convenience run.ts, which will get entrypoint as an argument and will build an app with this entry point as the root component.

To illustrate it, we ship the template with App.tsx and an EmptyEntrypoint.tsx, so you can run the whole thing with:

./run.ts EmptyEntrypoint.tsx

and pop browser pointing to that component.

Webdriver.io tests

NB! WDIO will be installed automatically as devDependency the first time you run wdio.sh.

We have a minimal set of tests demonstrating that wdio indeed works and a solution to run the thing with docker compose. You'll need to install docker onto your Ubuntu 20.04 LTS Linux the way you want. I personally use Windows docker engine and corresponding packages from within Ubuntu. It works by linking a binary distribution of Docker, patched to use the Windows backend (somehow) into WSL2 /usr/bin. I assume that for your linux the installation instructions are different. It would be nice to have these instructions here, because docker documentation is all over the place. If you want to contribute these instructions, I'll be honoured to accept your PR.

The idea of using docker compose is twofold:

  1. It packages non-hermetic Google Chrome container, which allows to run wdio properly.
  2. It prevents port polution by creating a docker netowrk to run tests against.

Roadmap

In Doma, we use libsodium for cryptography, because it sucks the least of all the options and is very cross-platform.

To make use of it, however, we need a lot of shims. These shims can only be pushed into CRA's webpack config without ejecting via react-app-rewired.

This is another thing I'd be glad to see incorporated in this template, perhaps, with some bootstrapping script. PRs welcome!