Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@nano_kit/router

Latest version: v4.2.2

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: dangreen
47 Stars
0 Forks
26 Versions
3.1K Downloads
TypeScript Repo language

Scan summary

@nano_kit/router was last scanned on 24 Nov 2026 at version 4.2.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 26 versions; the latest 2 were published within 5 days (20–24 Nov 2026).
  • Findings: No rules fired in version 4.2.2.
  • Downloads: 3,112 downloads.

Versions

26 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.2.2 LATEST 24 Nov 2026 No rules fired
4.0.0 20 Nov 2026 No rules fired
3.2.5 17 Nov 2026 No rules fired
3.2.4 16 Nov 2026 Not shown
3.2.3 16 Nov 2026 Not shown

No rules fired in 4.2.2

Findings

Findings for v4.2.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.2.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@nano_kit/router

ESM-only package NPM version Dependencies status Build status Coverage status

A small and powerful router for @nano_kit/store state manager.

  • Small. Around 2 kB (minified & brotlied). Zero dependencies except @nano_kit/store.
  • Type-safe. Full TypeScript support with type inference for routes and parameters.
  • Signal-based. Built on top of @nano_kit/store's reactive signals for automatic UI updates.
  • Flexible. Supports nested layouts, parameterized routes, optional parameters, wildcards, and query parameters.
  • SSR-ready. Works seamlessly with server-side rendering.

Installation

pnpm add @nano_kit/store @nano_kit/router
# or
npm install @nano_kit/store @nano_kit/router
# or
yarn add @nano_kit/store @nano_kit/router

Quick Start

Here is a minimal example demonstrating navigation, routing, and reactive page rendering:

import { effect } from '@nano_kit/store'
import { browserNavigation, router, page, layout, notFound } from '@nano_kit/router'

/* Define your routes */
const routes = {
  home: '/',
  user: '/users/:id',
  userPosts: '/users/:id/posts',
  admin: '/admin/*'
}

/* Setup navigation with browser history */
const [$location, navigation] = browserNavigation(routes)

/* Define page components */
const HomePage = () => 'Welcome Home!'
const UserPage = () => `User ID: ${$location().params.id}`
const UserPostsPage = () => `Posts for User: ${$location().params.id}`
const AdminLayout = ($page) => `Admin Layout: ${$page()}`
const AdminPage = () => `Admin Page: ${$location().params.splat || 'dashboard'}`
const NotFoundPage = () => 'Page Not Found'

/* Create router with pages and layouts */
const $page = router($location, [
  page('home', HomePage),
  page('user', UserPage),
  page('posts', UserPostsPage),
  layout(AdminLayout, [
    page('admin', AdminPage)
  ]),
  notFound(NotFoundPage)
], composeLayoutFunction)

/* React to route changes (mounting $page triggers router) */
const unsub = effect(() => {
  const PageComponent = $page().default

  console.log('Current page:', PageComponent())
  // Render PageComponent in your app
})
// Output: Current page: Welcome Home!

/* Navigate programmatically */
navigation.push('/users/123')
// Output: Current page: User ID: 123

navigation.push('/admin/settings/profile')
// Output: Current page: Admin Layout: Admin Page: settings/profile

navigation.back()
// Output: Current page: User ID: 123

/* Cleanup */
unsub()

Documentation

For comprehensive guides, advanced patterns, and API reference, visit the documentation website.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @nano_kit/router

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

Frame 2085668439 (1)
Group 1261154229