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

@codechem/components

v0.0.7

Published

CodeChem design system web components, built with Lit and usable in any framework

Readme

@codechem/components

Web components for the CodeChem design system, built with Lit. They are standard custom elements, so they work in plain HTML and in any framework.

<cc-text-input label="Project name" required></cc-text-input>
<cc-checkbox checked>Notify the team</cc-checkbox>
<cc-button variant="filled">Save</cc-button>

Install

npm install @codechem/components

This also installs @codechem/tokens, the design tokens the components are styled with, and lit.

Fonts

The components bundle Kumbh Sans for text and Material Icons Round for icons. They register both fonts when you import a component, so no <link> tags are needed. The font files are licensed under the SIL Open Font License (Kumbh Sans) and the Apache License 2.0 (Material Icons); the licence texts are in dist/fonts/.

Import

// Every component
import '@codechem/components';

// Or only the ones you use
import '@codechem/components/button.js';

Importing a component registers its tag and adds the token stylesheet to the page once. This needs a bundler such as Vite or webpack.

| Import | Tags | |---|---| | @codechem/components/accordion.js | <cc-accordion> | | @codechem/components/alert.js | <cc-alert> | | @codechem/components/badge.js | <cc-badge> | | @codechem/components/button.js | <cc-button> | | @codechem/components/checkbox.js | <cc-checkbox> | | @codechem/components/chip.js | <cc-chip> | | @codechem/components/dialog.js | <cc-dialog> | | @codechem/components/link.js | <cc-link> | | @codechem/components/list-item.js | <cc-list-item> | | @codechem/components/number-input-stepper.js | <cc-number-input-stepper> | | @codechem/components/pagination.js | <cc-pagination> | | @codechem/components/radio.js | <cc-radio-group>, <cc-radio> | | @codechem/components/switch.js | <cc-switch> | | @codechem/components/tab.js | <cc-tab> | | @codechem/components/text-input.js | <cc-text-input> | | @codechem/components/textarea.js | <cc-textarea> | | @codechem/components/tooltip.js | <cc-tooltip> |

Icons

Put an icon in a component's icon slot as a Material Icons Round ligature. Keep aria-hidden so screen readers don't read the icon's name:

<cc-button>
  <span slot="leading" class="material-icons-round" aria-hidden="true">add</span>
  New project
</cc-button>

Events

Components send standard DOM events, such as change and input:

document.querySelector('cc-checkbox').addEventListener('change', (event) => {
  console.log(event.target.checked);
});

Frameworks

  • React 19+: no setup.
  • Vue: set isCustomElement: (tag) => tag.startsWith('cc-') in the Vue compiler options.
  • Angular: add CUSTOM_ELEMENTS_SCHEMA to the schemas of the components that use them.

Theming

All colours, sizes and spacing come from --cc-* CSS custom properties. The components load them inside @layer cc-tokens, so your own CSS overrides them without !important:

:root {
  --cc-accent-main: #7753cd;
}

Editor support

The package ships a Custom Elements Manifest (custom-elements.json) and VS Code HTML data. For autocomplete and hover docs on <cc-*> tags in VS Code, add this to .vscode/settings.json:

{
  "html.customData": ["./node_modules/@codechem/components/vscode.html-custom-data.json"]
}

Links

License

MIT