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

charchem2

v2.2.1

Published

System to describe the chemical formulas for WEB

Readme

CharChem 2.0

code style: prettier

System to describe the chemical formulas for WEB.

Official site: [http://charchem.org]

Full documentation on formula descriptions is located in the /docs folder of the repository or here.

Library for use in HTML

Please, see documentation here.

If you want to build the library from the source code yourself, you will need GIT and Node.js. If you have this software on your computer, use the following commands:

git clone https://github.com/Peter-Win/charchem2.ts
cd charchem2.ts
npm i
npm run buildLib

The results will be in the charchem2.ts/lib folder

Connecting a library to a project via NPM

This method allows you to use CharChem both in a browser and in a desktop (server) application. Tested in Node.js.

Installation options:

  • npm i charchem2 -S
  • or yarn add charchem2

All main features are collected in the file src/ChemSys.ts.

Internationalization

Out of the box, 2 languages ​​are available: English (en) and Russian (ru).

In addition, there is an extended set, presented in the internationalDict.json file. However, this file is useful only for familiarization.

If you need to use an extended language set via the script tag, then it is recommended to use charchem-lang.js. And if the npm library is used, then:

import {ChemSys} from "charchem2";
import {internationalDict} from  "charchem2/dist/internationalDict";
...
ChemSys.addDict(internationalDict);

If the extended set does not contain the language you need, you can fill in the necessary phrases yourself and connect them via ChemSys.addDict.

After the required dictionaries are registered, you can switch to the required language using the following code:

ChemSys.curLang = "en"; // Instead of "en", you can specify any of the registered locales.