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

@foxy.io/inflow

v1.0.0

Published

A directive-based, HTML-first reactive engine for building Foxy customer portals.

Readme

Foxy Inflow

A directive-based, HTML-first reactive engine for building customer portals on Foxy.

You author views with data- attributes bound to a sandboxed expression context. The Portal layer adds auth-aware actions, ready-made Customer API data sources, and formatting helpers, so most portal UI is markup with minimal TypeScript glue. There is no virtual DOM — Inflow traverses and updates real DOM nodes, with debounced renders and cached expression evaluation.

Why use it

  • HTML-first authoring. Build views declaratively with data- attributes; minimal JS.
  • Portal primitives. Auth (isLoggedIn), actions (signIn, signOut, and more), and data sources for the customer, subscriptions, transactions, addresses and payment method.
  • Deterministic updates. Debounced renders and cached expressions.
  • Validation built in. Validators wired to form inputs and actions via data-v8n.
  • Composable patterns. Nested sources, conditional stashing, pagination controls, and event handlers that read naturally.

Quickstart

<script type="module">
  import { Portal } from "https://cdn-js.foxy.io/inflow@1/index.js";

  new Portal({
    signInPageUrl: "/sign_in.html",
    homePageUrl: "/index.html",
    base: "https://your-store.foxycart.com/s/customer/",
  });
</script>

Prefer a bundler? npm install @foxy.io/inflow. See Getting started for the rest of the setup.

Documentation

Full documentation lives in docs/:

  • Getting started — install, configure a portal, render your first page.
  • Building a portal — end-to-end tutorial: sign-in, an auth guard, a paginated list, saving changes.
  • Directives — all twelve directives and the shorthand aliases.
  • Data sources — reading customer data, pagination, saving with patch, caching.
  • Forms and validation — submitting, validating, server errors, account creation.
  • Configuration — every option, session storage, the auth lifecycle, localization.
  • Extending Inflow — your own sources, actions, context values and directives.
  • Migrating from Foxy Logic — how each foxy-logic-* attribute maps over.
  • Agent skills — the skill Inflow ships for coding agents, and how to install it.

Demo pages

The HTML files in demo/ are runnable examples — sign-in, account creation, password reset, the portal home page, profile, address, and adding a payment method. Run them with:

npm run dev

Point demo/main.ts at your own store first.

For coding agents

Inflow ships a skill, building-foxy-portals, covering what breaks once a portal leaves localhost: which origins the Customer API answers, getting the bundle onto a page, what Webflow does to your markup at publish time, and values the store refuses after Inflow accepted them.

Install it by copying the directory into your own skills directory:

mkdir -p ~/.claude/skills && cp -r .claude/skills/building-foxy-portals ~/.claude/skills/

It loads on demand and works in any tool that reads the agentskills.io format. See Agent skills.

Development

npm run dev       # serve the demo pages
npm run verify    # type-check and run the test suite
npm run build     # build both distributions into dist/