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

fsd-crawler

v1.0.11

Published

Инструмент для анализа зависимостей в проекте и построения схем

Readme

FSD Crawler

Инструмент для анализа зависимостей в проекте и построения схем

Установка и использование

Установка

npm i -D fsd-crawler

Использование

Добавьте скрипт для запуска

{
  "scripts": {
    "analyze": "fsd-crawler",
  }
}
npm run analyze

После выполнения в указанной директории (по умолчанию - ./dist) будут созданы файлы отчетов:

  • fsd_structure.html - интерактивный HTML-отчет с визуализацией структуры и зависимостей
  • fsd_structure.json - JSON-представление структуры и зависимостей (если включено в конфигурации)

По умолчанию HTML-отчет автоматически открывается в браузере на порту 3123.

Конфигурация

Инструмент поддерживает настройку через YAML-файл. Конфигурационный файл может называться:

  • fsd-crawler.yml
  • fsd-crawler.yaml
  • .fsd-crawler.yml
  • .fsd-crawler.yaml

Файл конфигурации ищется в текущей директории и всех родительских директориях.

Пример конфигурационного файла

# Исходная директория для анализа
srcDir: "."

# Директория для сохранения результатов
outputDir: "./dist"

# Форматы вывода (поддерживаются html и json)
outputFormats:
  - html
  # - json  # Раскомментируйте для включения JSON-экспорта

# Директории, которые нужно исключить из анализа
excludeDirs:
  - node_modules
  - .git
  - dist
  - build
  - coverage

# Запускать ли локальный веб-сервер для просмотра HTML-отчета
serveHTML: true

# Порт для локального веб-сервера
port: 3123

# Пользовательские слои (если указаны, заменяют стандартные)
# Если не указаны, используются стандартные слои FSD
customLayers:
  - app
  - processes
  - pages
  - widgets
  - features
  - entities
  - shared

# Путь к пользовательскому HTML шаблону (необязательно)
# htmlTemplatePath: "./custom-template.html"

Параметры конфигурации

| Параметр | Тип | По умолчанию | Описание | |----------|-----|--------------|----------| | srcDir | string | . | Директория с исходным кодом для анализа | | outputDir | string | ./dist | Директория для сохранения результатов | | outputFormats | array | ["html"] | Форматы вывода результатов | | excludeDirs | array | ["node_modules", ".git", "dist", "build"] | Директории, исключаемые из анализа | | customLayers | array | | Пользовательские слои FSD (если не указаны, используются стандартные) | | htmlTemplatePath | string | | Путь к пользовательскому HTML-шаблону | | serveHTML | boolean | true | Запускать ли локальный веб-сервер для просмотра HTML-отчета | | port | integer | 3123 | Порт для локального веб-сервера |