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

@at-flux/astroflare

v1.0.3

Published

Reusable headless components, styles, and utilities for Astro + Tailwind v4 + Cloudflare projects

Downloads

555

Readme

@at-flux/astroflare

Reusable headless components, styles, and utilities for Astro + Tailwind v4 + Cloudflare projects.

For type-safe DOM helpers, use the separate package @at-flux/dom.

There is no @at-flux/astroflare/dom subpath (it is not published and must not be used). Add @at-flux/dom as its own dependency.

Package entrypoints

| Subpath | Contents | |---------|----------| | @at-flux/astroflare | Core — forms utilities (same as ./core) | | @at-flux/astroflare/core | Forms; also exposes the forms namespace | | @at-flux/astroflare/forms | Resend email + form HTML helpers | | @at-flux/astroflare/components/* | Astro components (source) | | @at-flux/astroflare/styles/* | CSS (source) |

Examples

// Flat imports from core
import { sendEmail } from '@at-flux/astroflare';

// Explicit subpaths
import { renderEmailTemplate } from '@at-flux/astroflare/forms';

// Namespaced (from core / root)
import { forms } from '@at-flux/astroflare/core';

Contents

Components (Astro)

  • Modal.astro — Headless modal using native <dialog> and <app-modal> web component (class applies to the panel)
  • ModalTrigger.astro — Trigger that opens a modal by ID using <modal-trigger> web component
  • ContactModalCta.astro — Opinionated contact button (solid pill or text link) wrapped in ModalTrigger
  • InstagramProfileLink.astro — Small Instagram icon + @handle link with safe defaults
  • Section.astro — Page section with optional narrow and contentOnly (inner width wrapper without outer padding)
  • ThemeToggle.astro — Dark/light mode toggle using <theme-toggle> web component
  • ClientRouterLoadingSpinner.astro — Loading spinner for Astro view transitions

Styles (CSS)

  • styles/prose.css — Markdown prose styling using CSS custom properties
  • styles/no-save.css — Image protection utilities (prevent right-click, drag, select)
  • styles/accessibility.css — Focus styles, reduced motion, selection styling
  • styles/scrollbar.css — Branded scrollbar styling

Usage

Local checkout without changing package.json or lockfile

Keep @at-flux/astroflare on a normal semver range in package.json and run pnpm install so the lockfile records the registry version. Then overlay the install with a symlink (only under node_modules):

pnpm exec astroflare-link-local link /absolute/or/relative/path/to/astroflare/packages/astroflare
# or
ASTROFLARE_LOCAL_PATH=../../ts-libs/astroflare/packages/astroflare pnpm exec astroflare-link-local
  • USE_LOCAL_ASTROFLARE=1 (or true / yes) is supported only together with ASTROFLARE_LOCAL_PATH or USE_LOCAL_ASTROFLARE_PATH (path to packages/astroflare).
  • unlink removes the overlay and runs pnpm install again so node_modules matches the lockfile:
pnpm exec astroflare-link-local unlink
  • status shows whether an overlay is active.

Re-running pnpm install may replace the symlink with the store copy; run link again if that happens.

Local Import (file: protocol) — alternative

{
  "dependencies": {
    "@at-flux/astroflare": "file:../../ts-libs/astroflare/packages/astroflare"
  }
}

Components

---
import Modal from '@at-flux/astroflare/components/Modal.astro';
import ModalTrigger from '@at-flux/astroflare/components/ModalTrigger.astro';
---

Styles

@import '@at-flux/astroflare/styles/prose.css';
@import '@at-flux/astroflare/styles/no-save.css';

Testing

From repo root:

pnpm install
pnpm --filter @at-flux/astroflare test

Or in packages/astroflare:

pnpm test