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/blazor.ssr

v0.0.1

Published

Standalone static SSR-focused Blazor JavaScript runtime extraction.

Downloads

39

Readme

Blazor.SSR

Blazor.SSR extracts the static server-side rendering (static SSR) enhancement portions of ASP.NET Core's blazor.web.js runtime into a standalone browser script.

The generated bundle is for static SSR pages only. It is intended for Blazor apps that render HTML on the server and want progressive enhancement for navigation, forms, DOM preservation, streaming SSR updates, and focus management without loading the interactive Blazor Server, WebAssembly, Auto, SignalR circuit, render-batch, or .NET JavaScript interop runtime.

Bundle output

Production builds emit:

  • dist/blazor.ssr.js
  • dist/blazor.ssr.min.js

Debug builds emit dist/Debug/blazor.ssr.js.

Basic usage

<script src="/dist/blazor.ssr.min.js"></script>

The script auto-starts by default. To start manually:

<script src="/dist/blazor.ssr.min.js" autostart="false"></script>
<script>
  Blazor.start();
</script>

The static SSR global exposes only:

  • Blazor.start(options?)
  • Blazor.navigateTo(url, options?)
  • Blazor.addEventListener(type, callback)
  • Blazor.removeEventListener(type, callback)

It does not expose window.DotNet.

Supported static SSR behavior

  • Enhanced same-origin link navigation within the document base URI.
  • Enhanced forms explicitly marked with data-enhance.
  • Enhanced navigation requests with Accept: text/html; blazor-enhanced-nav=on.
  • blazor-enhanced-nav response handling.
  • SSR streaming markers (<blazor-ssr>, <blazor-ssr-end>, and <template blazor-component-id="...">).
  • SSR framing during enhanced navigation when the server returns the ssr-framing header.
  • DOM-preserving synchronization, including data-permanent.
  • Browser history, redirects, scroll reset, and hash scrolling for enhanced navigation.
  • enhancednavigationstart, enhancedload, and enhancednavigationend events.
  • <blazor-focus-on-navigate selector="h1"></blazor-focus-on-navigate>.

Unsupported interactive behavior

Do not use this runtime on pages that require:

  • InteractiveServer
  • InteractiveWebAssembly
  • InteractiveAuto
  • Blazor component event handlers
  • SignalR circuits
  • WebAssembly components
  • DotNet JS interop
  • interactive component activation
  • render batches

If the runtime sees simple interactive Blazor marker comments, it logs a non-fatal warning that interactive components will not be activated.

Documentation and fixture

Toolchain

See docs/toolchain.md for public npm install, build, test, lint, and SSR boundary-check instructions.