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

@macavitymadcap/hyper-dank-transport

v0.4.0

Published

Small Hono and HTMX helpers for hypermedia-first apps.

Readme

Hyper-Dank HTTP

Small Hono and HTMX helpers for hypermedia-first apps.

The package contains generic form parsing, route parameter, error-message, and HTMX redirect helpers. App-specific auth, permissions, routes, and services stay in the consuming app.

Installation

@macavitymadcap/hyper-dank-transport is public on npm:

npm install @macavitymadcap/hyper-dank-transport hono typescript

Package page: https://www.npmjs.com/package/@macavitymadcap/hyper-dank-transport

Static docs: https://macavitymadcap.github.io/hyper-dank/libraries/transport/

Consumer setup: https://macavitymadcap.github.io/hyper-dank/libraries/consumer-setup/

For local package development, pack the Hyper-Dank workspace and install the tarball into a downstream app:

# from hyper-dank
bun run pack:packages

# from a downstream app
bun add ../hyper-dank/.cache/packages/macavitymadcap-hyper-dank-transport-0.1.1.tgz
bun add hono typescript

The package peers on hono for response and request helper integration, and on typescript for declaration-aware tooling. The tarball route is verified by bun run test:packages, which installs the package into a clean temporary app outside this workspace and imports it by package name. npm publication is staged through GitHub Actions with trusted publishing and provenance.

Public Exports

  • FormValues: parses Hono request bodies and exposes safe string, optional string, number, and checkbox-style boolean reads.
  • errorMessage: formats unknown thrown values for route responses.
  • routeParam: normalises Hono route params to strings.
  • isHtmxRequest: detects HTMX headers from generic header sources.
  • HttpResponder: detects HTMX requests and chooses between HX-Redirect and native redirects, including auth-cookie-preserving redirects.
  • fragmentOrPage: renders an app-owned fragment for HTMX requests and an app-owned page for native requests.

The public docs site includes route-level examples for these helpers. For app-shape guidance, see the public recipes at https://macavitymadcap.github.io/hyper-dank/recipes/.