# TheSGJ/nextjs-toploader

A Next.js Top Loading Bar component made using nprogress, works with Next.js 16 , Next.js 15 and React.

Repository: https://github.com/TheSGJ/nextjs-toploader
Canonical: https://ross.abutalabs.com/products/nextjs-toploader
Homepage: https://www.npmjs.com/package/nextjs-toploader
Language: TypeScript
License: MIT
License Family: permissive
Topics: next, next13, nextjs, nextjs13, progressbar, react, toploader, next14, nextjs14
Last push: 2026-07-20T15:44:22+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 91
- inputs: {"age_days": 1278, "days_push": 44, "days_rel": 358, "gap_med": 84.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1237, forks 62 (observed 2026-08-28T04:04:05.398850+00:00)

## What it is
A React component library that adds a top loading progress bar to Next.js applications, built on top of nprogress. It supports both the App Router and Pages Router and ships a compatible useRouter hook and useTopLoader hook for programmatic control.

## Use cases
- show a top loading bar during Next.js route transitions
- add nprogress-style progress indicator to a Next.js app router project
- trigger a loading bar on router.push with useRouter
- add page loading indicator to a pages router Next.js app
- programmatically start and stop a progress bar with a React hook

## When to choose
- you are building a Next.js app (app or pages router) and want a slim top progress bar
- you want a drop-in component with minimal configuration
- you need router-aware loading indicators including useRouter hook support

## When to avoid
- you are not using Next.js or React
- you need full-page loaders, spinners, or skeleton screens instead of a top bar
- you need a framework-agnostic vanilla JS progress bar

## Facets
- artifact type: library
- maturity: active
- function: ui-components, frontend-framework
- domain: web-development, frontend
- platform: -
- tags: nextjs, react, nprogress, progress-bar, toploader, app-router, pages-router, nodejs, web-server

## Member repositories
- TheSGJ/nextjs-toploader (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.398850+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:21:50.650258+00:00, confidence not recorded.
  - readme: https://github.com/TheSGJ/nextjs-toploader (fetched 2026-08-28T04:04:05.398850+00:00, sha 1464b607db4e)
  - registry_npm: https://registry.npmjs.org/nextjs-toploader (fetched 2026-08-29T12:20:59.828983+00:00, sha 2ef0cc652226)
- Data as of 2026-08-30T08:39:29.467469+00:00.
