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

@jalexsocial/rizzy

v5.3.0

Published

Client library for Asp.net Rizzy

Readme

Rizzy Client

npm version License: MIT

Client-side JavaScript components and utilities for the Rizzy Framework, designed to seamlessly integrate HTMX with Blazor Server-Side Rendering (SSR).

Features

  • HTMX Extension Integration: Includes necessary extensions for Rizzy features:
    • rizzy-nonce: Securely handles Content Security Policy (CSP) nonces for dynamically loaded scripts and styles within HTMX responses. Requires corresponding server-side setup (e.g., HtmxConfigHeadOutlet and IRizzyNonceProvider).
    • rizzy-streaming: Enables HTMX to correctly process Blazor's streaming rendering updates within swapped content.
  • Antiforgery Token Handling: Automatically includes ASP.NET Core antiforgery tokens in HTMX POST/PUT/DELETE/PATCH requests based on configuration provided by the server (via HtmxConfigHeadOutlet and HtmxAntiforgeryScript).
  • Client-Side Validation Integration: Sets up the aspnet-client-validation library for immediate use with Rizzy's form components (like RzInputText, RzValidationMessage).

Installation

npm install rizzy 

Usage

This package is intended to be used alongside the server-side Rizzy components. It typically requires minimal client-side configuration as it relies on data and configuration provided by Rizzy's .NET components rendered into the HTML.

  1. Include the script: Add the bundled script to your main layout file (e.g., _Layout.cshtml, App.razor, index.html). Make sure to include it after HTMX.

    <!-- Make sure HTMX is loaded first -->
    <script src="https://unpkg.com/htmx.org@latest"></script>
    
    <!-- Include the Rizzy client script -->
    <script src="/_content/Rizzy/js/rizzy.js" type="module"></script>
  2. Ensure Rizzy Server Components: Your Blazor application should include the necessary Rizzy components, primarily:

    • <HtmxConfigHeadOutlet />: Renders HTMX configuration, including nonce and antiforgery settings, into a <meta> tag.
    • <HtmxAntiforgeryScript />: (If using AntiforgeryStrategy.GenerateTokensPerPage) Provides the initial antiforgery token.
    • Rizzy Form Components (e.g., <RzInputText>, <RzValidationMessage>): These work with the validation setup included in this package.
  3. HTMX Extension Activation:

    • The HTMX extensions (rizzy-nonce, rizzy-streaming) are defined when the script loads. You typically activate them on relevant elements using the hx-ext attribute:
      <div hx-get="/some/content" hx-ext="rizzy-streaming, rizzy-nonce">
        <!-- Content that might use streaming rendering or have scripts/styles -->
      </div>
    • Refer to the main Rizzy documentation for specific usage scenarios.
  4. Antiforgery & Validation: These features generally work automatically once the script is loaded, provided the server-side components (HtmxConfigHeadOutlet, HtmxAntiforgeryScript, and Rizzy Form Components) are correctly configured and rendered.

Dependencies

  • HTMX: This library requires HTMX (version 1.9+ recommended) to be loaded on the page before this script.
  • aspnet-client-validation: This library is used for client-side validation integration. The necessary setup (ValidationService().bootstrap()) is included in this package's bundle.

Browser Support

Targets modern browsers supporting ES Modules.

Contributing

Contributions are welcome! Please refer to the main Rizzy repository's contributing guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.