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

@chrono-os/form-animations

v0.1.4

Published

Catálogo EXTENSÍVEL de animações (transições de tela + animações de texto) para renderers. Fonte única: registry data-driven + gerador de CSS. Adicionar uma entrada disponibiliza a animação em todos os consumidores.

Readme

@chrono-os/form-animations

Catálogo extensível de animações para renderers de formulário — transições de tela (bloco/pergunta inteiro) + animações de texto (título letra a letra, estilo textify / moving-letters). Framework-agnóstico: só dados + CSS, sem React.

Fonte única

Tudo nasce do array ANIMATIONS em src/index.ts. Cada entrada vira automaticamente: item no seletor do builder, regras CSS (@keyframes + .fa-*) e suporte no renderer.

Como ACRESCENTAR uma animação

Adicione um objeto a ANIMATIONS (via TRANSITIONS ou TEXTS):

{
  id: 'minha-anim',            // id estável (vira theme.transition e classe .fa-minha-anim)
  label: 'Minha animação',     // rótulo PT-BR no builder
  category: 'transition',      // 'transition' (bloco) | 'text' (título por letra/palavra)
  easing: 'ease',              // opcional
  kf: 'from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}',
  // direcional (slide/glide): back?: '...'   |   texto: textMode?: 'letter'|'word', stagger?: '0.03s'
}

Pronto — todos os consumidores que injetam animationsStylesheet() e leem o registry passam a oferecer a nova animação, sem mexer em mais nada.

API

  • ANIMATIONS, listAnimations(category?), getAnimation(id), DEFAULT_TRANSITION.
  • animationsStylesheet() → string CSS (injete uma vez num <style>). A duração usa var(--form-tdur) (o consumidor controla a velocidade). Inclui guard de prefers-reduced-motion escopado a [data-fa].
  • transitionClass(id, dir) → classe .fa-<id> (--back na direção "back").
  • textContainerClass(id) → classe do container do título p/ animação de texto; o consumidor quebra o texto em <span> e seta --i (índice) em cada um.

Consumo

Publicado no npm (@chrono-os/form-animations, build tsup ESM+CJS+d.ts):

yarn add @chrono-os/form-animations

Injete o CSS uma vez e use as classes/registry:

<style dangerouslySetInnerHTML={{ __html: animationsStylesheet() }} />
// ...container do form com data-fa; classe do bloco = transitionClass(id, dir);
// título com animação de texto = textContainerClass(id) + spans com --i.

Depois de adicionar uma animação em src/index.ts: npm run build → bump SemVer → npm publish → atualizar os consumidores (yarn upgrade).