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

@coaktion/hc-lib

v0.2.0

Published

An typescript library to implement common function and utilities for Help Center development

Readme

Help Center utilities kit.

Utility library for Zendesk Help Center development. Supports both v3 and v4 Help Center versions through a single factory method.

CDN Usage

Add the script tag to your Help Center template:

<script src="https://cdn.jsdelivr.net/npm/@coaktion/[email protected]/dist/index.global.js"></script>                                                                  

This exposes the global AktieHC object.

Instantiating

Call AktieHC.create() with the Help Center version:

<script>
  // For Help Center v3
  const hc = AktieHC.create("v3");

  // For Help Center v4
  const hc = AktieHC.create("v4");
  // Bring API utilities like getArticles()

  const hc = AktieHC.create("v4", ["articles"]);

</script>

The returned hc object has the same interface regardless of version — the implementation details are handled internally.

Docs

  • Form FieldshideFields, showFields, hideFieldOptions, invoke, FormField e afins
  • DOMready, setWithExpiry, getWithExpiry

Desenvolvimento local com tema Zendesk

Para desenvolver a lib e testar diretamente no tema Zendesk sem precisar publicar uma nova versão, use o modo dev:theme. A cada mudança em src/, o bundle é recompilado e copiado automaticamente para os assets do tema. Ao encerrar, tudo é revertido.

1. Configure o .env

cp .env.example .env

Edite o .env com o caminho do seu tema:

HC_THEME_PATH=/caminho/para/seu-tema-zendesk

Por padrão, o script localiza o template em templates/document_head.hbs dentro de HC_THEME_PATH. Se o seu template estiver em outro lugar, defina também:

HC_THEME_TEMPLATE=/caminho/para/seu-tema-zendesk/templates/document_head.hbs

2. (Opcional) Adicione o script da CDN ao template

Se o document_head.hbs já tiver o import da lib via CDN, o script o substituirá automaticamente pela versão local ao iniciar:

<script src="https://cdn.jsdelivr.net/npm/@coaktion/hc-lib@VERSION/dist/index.global.js"></script>

Caso o import não exista, o script injeta {{asset 'hc-lib.js'}} automaticamente — na primeira linha, ou logo após as tags <meta> iniciais caso existam.

3. Inicie o modo watch

npm run dev:theme

O que acontece ao rodar:

  • O script da CDN no template é substituído por {{asset 'hc-lib.js'}} (ou injetado, caso não exista)
  • A cada alteração em src/, o bundle é recompilado e copiado para assets/hc-lib.js

O que acontece ao encerrar (Ctrl+C):

  • O arquivo assets/hc-lib.js é removido
  • O template é restaurado ao estado exato em que estava antes, preservando qualquer edição feita durante a sessão

Use o zcli themes:preview no repositório do tema para visualizar as mudanças em tempo real.

Publishing a new version

Open a new Pull Request with your desirable changes to the main branch
After review and merge

Run

npm version patch

git push --follow-tags

Draft the release from the bumped tag and the gh action should take care of the rest