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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@f1stnpm2/necessitatibus-atque-officia

v1.0.0

Published

[Monorepo](https://github.com/babel/babel/blob/master/doc/design/monorepo.md) containing a set of packages used to build UIs at NDLA. By definition this repo is maintained using [yarn v4](https://yarnpkg.com/getting-started).

Downloads

4

Readme

NDLA frontend packages

Monorepo containing a set of packages used to build UIs at NDLA. By definition this repo is maintained using yarn v4.

Installation

Using windows? See notes at the bottom.

yarn add [package-name]

To view all of the available packages, see the packages/ directory.

Development

Setup

Install root dependencies and bootstrap packages.

yarn && yarn bootstrap

Se package README for package specific details.

Lint and format

Run lint and format check for all packages:

yarn lint

Test

Run tests for all packages:

yarn test

Check all

Make sure everthing is OK before push:

yarn check-all

Develop

yarn start

Usage during development

cd packages/[package-name]
yarn link

In repo using the package (ie. ndla-frontend). Forces usage of the same react versions as in frontend-packages.

yarn link @ndla/[package-name] react react-dom react-router react-router-dom
yarn

Publishing

Publish packages to npmjs

yarn run publish

If script was interrupted, resulting in new versions being commited but not published to npm, this can be resolved by running

yarn lerna publish from-package

Alias master to designmanual.ndla.sh

yarn deploy

New Icons

Download icon

As mentioned on https://designmanual.ndla.no/?path=/story/components--icons, new icons are downloaded from https://material.io/icons/. Find the icon needed and download it. Missing icons can in need be fetched from https://materialdesignicons.com or created from scratch. Afterwards copy it to the best matching sub-folder in frontend-packages/packages/ndla-icons/svg/. Edit the svg and add license information matching the other svg files.

Generate typescript component file

Navigate to the root of frontend-packages and run node scripts/createTsIconComponents.mjs. This will generate typescript files for all the svg files, including the newly added one. When finished, create a PR with the new files (should only be svg and ts files). Make sure to publish frontend-packages for the new icons to be available.

Upcoming features and updates

Upcoming updates to the designmanual can be previewed here.

Designmanual WIP

Windows

Powershell is currently not supported as it does not recognize cp commands for copying in the package.json scripts. GitBash or equivalent will work. WSL is also recommended if you want to use Windows.