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

caraxes

v0.0.1

Published

Vue 3 utility library — composables first, thin components on top, in the spirit of VueUse

Readme

caraxes

Vue 3 utility library — composables first, thin presentational components on top, in the spirit of VueUse.

Architecture

src/
  components/                    — presentational components built on the composables
    ThinkingOrb/                 — the connecting loader (component + geometry engine)
  composables/                   — reusable reactive utilities, one file each
    useRafFn                     — shared rAF loop (all instances stay in phase)
    useElementVisibility         — IntersectionObserver → reactive visibility
    useDocumentVisibility        — reactive document.visibilityState
    usePreferredReducedMotion    — live prefers-reduced-motion

Single package with tree-shakeable subpath exports: caraxes, caraxes/components, caraxes/composables. When independent versioning is needed, the same folders become packages/* in a pnpm workspace (VueUse's layout) — no code changes required.

Install

npm install caraxes

Usage

Component

<script setup lang="ts">
import { ThinkingOrb } from 'caraxes';
</script>

<template>
  <ThinkingOrb state="connecting" :size="64" color="#818cf8" />
</template>

| Prop | Type | Default | Notes | | --- | --- | --- | --- | | state | 'connecting' | 'connecting' | Only the connecting animation ships. | | size | 64 \| 20 | 64 | Two tuned presets — separate designs, not a scale factor. | | color | string (hex) | #6366f1 | Loader color; depth shading becomes opacity. |

Composables

import { useRafFn } from 'caraxes/composables';

const { isActive, start, stop } = useRafFn(() => console.log('tick'));

Each composable cleans up automatically with its effect scope, is SSR-safe, and returns plain refs.

Behavior

  • Auto-pauses offscreen (useElementVisibility) and on hidden tabs (useDocumentVisibility); resumes in phase via the shared useRafFn clock.
  • prefers-reduced-motion: reduce renders one static frame — no animation.
  • role="img" with aria-label="Connecting…" out of the box.
  • Device-pixel-ratio capped at 2. class, style and other attributes fall through to the canvas.

Development

npm run dev       # demo at localhost:5177
npm run check     # geometry parity self-check
npm run build     # library build + types

License

MIT