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

ngx-bot-ssr

v2026.4.108

Published

πŸ€– Angular SSR for bots, prebuilt CSR shell for humans

Readme

NPM Donate for PatrikX3 / P3X Contact Corifeus / P3X Corifeus @ Facebook Uptime ratio (90 days)

πŸ€– Angular SSR for bots, prebuilt CSR shell for humans v2026.4.108

🌌 Bugs are evidentβ„’ - MATRIX️
🚧 This project is under active development!
πŸ“’ We welcome your feedback and contributions.

NodeJS LTS is supported

πŸ› οΈ Built on NodeJs version

v24.15.0

πŸ“ Description

Faster page loads for users, fully prerendered HTML for Googlebot, Bingbot, Yandex, ClaudeBot, GPTBot and link unfurlers (Slack, Twitter, Facebook, WhatsApp). Powered by isbot.

Why

Angular SSR is great for crawlers and great in the readme β€” but in production, every real user pays for it: SSR HTML arrives, hydrates, and re-renders. Users see a flash, click handlers don't fire until hydration completes, and Time to Interactive is worse than a CSR-only build for sites with any meaningful JS.

Meanwhile, the bots that actually need server-rendered HTML β€” Googlebot, Bingbot, Yandex, Facebook/Twitter unfurlers, ClaudeBot, GPTBot, PerplexityBot β€” execute little or no JavaScript. Shipping them the CSR shell means empty meta tags, empty link previews, and weak indexing.

ngx-bot-ssr switches the response based on the User-Agent:

  • Real browsers β†’ static index.csr.html shell, Angular bootstraps client-side, no hydration flicker
  • Bots / crawlers / unfurlers / missing UA β†’ Angular SSR via AngularNodeAppEngine.handle(), fully prerendered HTML

Sets Vary: User-Agent so any upstream cache (CDN, Varnish, Cloudflare) keeps the two responses separate.

The Angular community has been asking for this for years:

Install

yarn add ngx-bot-ssr
# or
npm install ngx-bot-ssr

express is a peer dependency. You almost certainly already have it via @angular/ssr.

Usage β€” Angular SSR (the easy way)

In your Angular SSR project's src/server.ts, replace the catch-all app.use((req, res, next) => angularApp.handle(req)...) block with angularBotSsr(...). Three lines, no glue code:

import {
  AngularNodeAppEngine,
  createNodeRequestHandler,
  isMainModule,
  writeResponseToNodeResponse,
} from '@angular/ssr/node';
import express from 'express';
import { join } from 'node:path';
import { angularBotSsr } from 'ngx-bot-ssr';

const browserDistFolder = join(import.meta.dirname, '../browser');

const app = express();
const angularApp = new AngularNodeAppEngine();

// Static assets first (CSR JS, images, fonts)
app.use(express.static(browserDistFolder, {
  maxAge: '1y',
  index: false,
  redirect: false,
}));

// Bots β†’ SSR, humans β†’ CSR shell. That's it.
app.use(angularBotSsr({
  browserDistFolder,
  angularApp,
  writeResponseToNodeResponse,
}));

if (isMainModule(import.meta.url) || process.env['pm_id']) {
  const port = process.env['PORT'] || 4000;
  app.listen(port, () => console.log(`listening on http://localhost:${port}`));
}

export const reqHandler = createNodeRequestHandler(app);

Build with ng build (which already produces index.csr.html), run the SSR server, and:

  • curl -H 'User-Agent: Googlebot/2.1' http://localhost:4000/ β†’ fully prerendered Angular HTML
  • curl -H 'User-Agent: Mozilla/5.0 (...) Chrome/...' http://localhost:4000/ β†’ CSR shell, ~1 KB

Why pass writeResponseToNodeResponse and angularApp in? @angular/ssr/node is ESM-only, so the package can't require() it from a CJS module. Passing them in keeps ngx-bot-ssr framework-agnostic at the core (Hono, raw Web fetch handlers, etc. all work) while still giving the Angular case a one-call API.

API β€” angularBotSsr(options)

const { angularBotSsr } = require('ngx-bot-ssr');
// or: import { angularBotSsr } from 'ngx-bot-ssr';

app.use(angularBotSsr(options));

| Option | Required | Description | | --- | --- | --- | | browserDistFolder | βœ… | Absolute path to your Angular dist/.../browser/ folder. The CSR shell is read from ${browserDistFolder}/index.csr.html unless shell is set. | | angularApp | βœ… | An AngularNodeAppEngine instance from @angular/ssr/node. | | writeResponseToNodeResponse | βœ… | Imported from @angular/ssr/node. | | shell | – | Override the shell path if your CSR file lives elsewhere. | | isBot | – | (userAgent: string \| undefined) => boolean. Override the default detection. | | shellCacheControl | – | Cache-Control header for the CSR shell. Defaults to 'no-cache'. |

API β€” botSsr(options) (low-level, framework-agnostic)

Use this if you're not on Angular β€” Hono, plain fetch-style handlers, anything that returns a Web Response works.

const { botSsr } = require('ngx-bot-ssr');

app.use(botSsr({
  shell: '/abs/path/to/index.csr.html',
  ssr: (req) => myEngine.handle(req),         // β†’ Promise<Response | null | undefined>
  writeResponse: (response, res) => { /* serialize Web Response β†’ Node res */ },
  // optional:
  isBot,                // (ua) => boolean
  shellCacheControl,    // string
}));

| Option | Required | Description | | --- | --- | --- | | shell | βœ… | Absolute path to the CSR shell HTML. Read lazily on the first non-bot request, then cached (so Angular's prerender route extractor doesn't trip on the not-yet-built browser/ folder). | | ssr | βœ… | (req) => Promise<Response \| null \| undefined>. Returning null/undefined calls next(). | | writeResponse | βœ… | (response, res) => void. Serializes the Web Response into the Node res. | | isBot | – | (userAgent) => boolean. Default uses isbot and treats missing UAs as bots. | | shellCacheControl | – | Default 'no-cache'. |

How it works

                  request
                     β”‚
                     β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚ Vary: User-Agent       β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚
            isBot(req.UA)?
              β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
              β”‚             β”‚
            true           false
              β”‚             β”‚
              β–Ό             β–Ό
        options.ssr     send shell
              β”‚       (lazy read,
              β–Ό        then cached)
       Response | null
              β”‚
       β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”
       β”‚             β”‚
   Response       null/undef
       β”‚             β”‚
       β–Ό             β–Ό
 writeResponse    next()

Treats missing UAs as bots β€” safer to prerender than to ship the CSR shell to an unknown client.

Reference reading

Credits

  • isbot by Omri Lotan β€” the bot detection library this package wraps. Updated continuously, covers the long tail of crawlers, AI bots, and link unfurlers.
  • Pattern originally extracted from corifeus-app-web-pages.

🌐 Meet Assistant SaaS β€” meeting.corifeus.com

Don't want to install anything? Try the hosted version at meeting.corifeus.com β€” full meeting workflow built for European businesses, no setup, no API key, no command line.

What the hosted version offers:

  • 21-language live translation during the meeting
  • AI summaries, action items, decisions, attendees, key quotes auto-generated after every meeting
  • Custom vocabulary β€” your client / company / industry terms corrected automatically (Pro+ tier)
  • Searchable meeting library β€” find any decision or promise across all your past meetings
  • Shareable read-only links β€” send a clean meeting summary to a client or teammate, no signup needed on their end
  • One-click email summary after each meeting
  • Premium engine on every plan β€” no downgraded model, ever
  • EU billing β€” Stripe Tax + VAT-compliant + EUR-priced (Solo €19.99 / Pro €39.99 / Business €99.99 per month, no lock-in)
  • GDPR-compliant by default β€” browser-language auto-detection, no tracking cookies, your meetings stored encrypted

Try the live demo (1 minute free, no signup) or browse the public sample meeting at meeting.corifeus.com/sample.


Corifeus Network

AI-powered network & email toolkit β€” free, no signup.

Web Β· network.corifeus.com MCP Β· npm i -g p3x-network-mcp

  • AI Network Assistant β€” ask in plain language, get a full domain health report
  • Network Audit β€” DNS, SSL, security headers, DNSBL, BGP, IPv6, geolocation in one call
  • Diagnostics β€” DNS lookup & global propagation, WHOIS, reverse DNS, HTTP check, my-IP
  • Mail Tester β€” live SPF/DKIM/DMARC + spam score + AI fix suggestions, results emailed (localized)
  • Monitoring β€” TCP / HTTP / Ping with alerts and public status pages
  • MCP server β€” 17 tools exposed to Claude Code, Codex, Cursor, any MCP client
  • Install β€” claude mcp add p3x-network -- npx p3x-network-mcp
  • Try β€” "audit example.com", "why do my emails land in spam? test [email protected]"
  • Source β€” patrikx3/network Β· patrikx3/network-mcp
  • Contact β€” patrikx3.com Β· donate

❀️ Support Our Open-Source Project

If you appreciate our work, consider ⭐ starring this repository or πŸ’° making a donation to support server maintenance and ongoing development. Your support means the world to usβ€”thank you!


🌍 About My Domains

All my domains, including patrikx3.com, corifeus.eu, and corifeus.com, are developed in my spare time. While you may encounter minor errors, the sites are generally stable and fully functional.


πŸ“ˆ Versioning Policy

Version Structure: We follow a Major.Minor.Patch versioning scheme:

  • Major: πŸ“… Corresponds to the current year.
  • Minor: πŸŒ“ Set as 4 for releases from January to June, and 10 for July to December.
  • Patch: πŸ”§ Incremental, updated with each build.

🚨 Important Changes: Any breaking changes are prominently noted in the readme to keep you informed.

NGX-BOT-SSR Build v2026.4.108

NPM Donate for PatrikX3 / P3X Contact Corifeus / P3X Like Corifeus @ Facebook