https://github.com/antfu/node-modules-inspector
Interactive UI for local node modules inspection
https://github.com/antfu/node-modules-inspector
Last synced: 7 days ago
JSON representation
Interactive UI for local node modules inspection
- Host: GitHub
- URL: https://github.com/antfu/node-modules-inspector
- Owner: antfu
- License: mit
- Created: 2025-01-16T07:40:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-04T05:01:38.000Z (9 days ago)
- Last Synced: 2026-03-04T07:36:25.376Z (9 days ago)
- Language: Vue
- Homepage: https://node-modules.dev
- Size: 2.69 MB
- Stars: 2,800
- Watchers: 13
- Forks: 75
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- stars - node-modules-inspector
README

# Node Modules Inspector
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]
Visualize your node_modules, inspect dependencies, and more.
### Quick Start
Try it by running following command under your `pnpm`/`npm` project.
```bash
pnpx node-modules-inspector
```
```bash
npx node-modules-inspector
```
> Currently only support `pnpm` and `npm` projects. We are counting on the community to bring support for other package managers.
### Online Version
You can also try an online version at [**node-modules.dev**](https://node-modules.dev/), powered by [WebContainer](https://webcontainers.io/).
## Configuration
You can create a `node-modules-inspector.config.ts` file in your project root to configure the inspector's default behaviour.
```js
import { defineConfig } from 'node-modules-inspector'
export default defineConfig({
defaultFilters: {
excludes: [
'eslint',
],
},
defaultSettings: {
moduleTypeSimple: true,
},
// Experimental publint.dev integration, default is false
publint: true
// ...see jsdoc for more options and details
})
```
## Static Build
You can also build a static SPA of your current node_modules status:
```bash
pnpx node-modules-inspector build
```
```bash
npx node-modules-inspector build
```
Then you can host the `.node-modules-inspector` folder with any static file server.
You can see a build for all Anthony Fu's packages at [everything.antfu.dev](https://everything.antfu.dev).
## Screenshots



## Credits
- This project is heavily inspired by [npmgraph](https://npmgraph.js.org/)
- Thanks to [@wooorm](https://github.com/wooorm) for the module type detection algorithm in [wooorm/npm-esm-vs-cjs](https://github.com/wooorm/npm-esm-vs-cjs)
- The logo is derivated from the `black-hole-line-duotone` icon (yeah it's a black hole!) from the [Solar Icon Sets](https://www.figma.com/community/file/1166831539721848736/solar-icons-set) by [480 Design](https://www.figma.com/@480design) and [R4IN80W](https://www.figma.com/@voidrainbow) under the [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) license.
- Thanks to [@privatenumber](https://github.com/privatenumber) for [pkg-size.dev](https://pkg-size.dev/) for running analysis with installations in WebContainer.
## Sponsors
## License
[MIT](./LICENSE) License © [Anthony Fu](https://github.com/antfu)
[npm-version-src]: https://img.shields.io/npm/v/node-modules-inspector?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/node-modules-inspector
[npm-downloads-src]: https://img.shields.io/npm/dm/node-modules-inspector?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/node-modules-inspector
[bundle-src]: https://img.shields.io/bundlephobia/minzip/node-modules-inspector?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=node-modules-inspector
[license-src]: https://img.shields.io/github/license/antfu/node-modules-inspector.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/antfu/node-modules-inspector/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/node-modules-inspector