analysor

mcp
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 8 GitHub stars
Code Basarisiz
  • exec() — Shell command execution in .agents/skills/agy-delegate/scripts/relay.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/agy-delegate/scripts/relay.mjs
  • process.env — Environment variable access in .agents/skills/agy-delegate/scripts/relay.mjs
  • exec() — Shell command execution in .agents/skills/claude-delegate/scripts/relay.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/claude-delegate/scripts/relay.mjs
  • process.env — Environment variable access in .agents/skills/claude-delegate/scripts/relay.mjs
  • exec() — Shell command execution in .agents/skills/delegate-setup/scripts/config.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/delegate-setup/scripts/config.mjs
  • process.env — Environment variable access in .agents/skills/delegate-setup/scripts/config.mjs
  • exec() — Shell command execution in .agents/skills/delegate-setup/scripts/discover.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/delegate-setup/scripts/discover.mjs
  • process.env — Environment variable access in .agents/skills/delegate-setup/scripts/discover.mjs
  • exec() — Shell command execution in .agents/skills/opencode-delegate/scripts/relay.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/opencode-delegate/scripts/relay.mjs
  • process.env — Environment variable access in .agents/skills/opencode-delegate/scripts/relay.mjs
  • exec() — Shell command execution in .agents/skills/warp-delegate/scripts/relay.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/warp-delegate/scripts/relay.mjs
  • process.env — Environment variable access in .agents/skills/warp-delegate/scripts/relay.mjs
  • exec() — Shell command execution in .agents/skills/zcode-delegate/scripts/relay.mjs
  • spawnSync — Synchronous process spawning in .agents/skills/zcode-delegate/scripts/relay.mjs
  • process.env — Environment variable access in .agents/skills/zcode-delegate/scripts/relay.mjs
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Privacy-first, offline HAR analyzer. Find slow requests and heavy payloads with ROI scoring, compare before/after captures to prove each optimization, scan and redact leaked secrets, and share executive reports. Web UI, CLI, Chrome capture extension, and an MCP server with 11 tools for AI agents.

README.md

Analysor

A fast, offline-first viewer for HAR (HTTP Archive) files.

License: MIT
React
Vite
Tailwind CSS

Load one or more captures and inspect requests, timings, and traffic patterns without uploading anything anywhere.

Stable version: install it with npm install -g analysor, or download the latest release. On GitHub, the default dev branch holds work that is not released yet, and master holds the released code.

Summary: performance grade, headline metrics and High-ROI targets with ~21 s of potential savings

Requests, sorted by ROI Waterfall
Requests table filtered to High ROI, with the 19 s chatbot call on top Waterfall with the 19 s request standing out at the end
Compare two captures The same analysis in the terminal
Diff of two captures: 252 to 292 requests, 284 ms faster on average analysor roi printing the top 5 bottlenecks and ~21 s of savings

The Summary, Requests, Waterfall and terminal screenshots use sample-hars/nezuko-system.vercel.app-baseEmp.har from this repository, so analysor roi sample-hars/nezuko-system.vercel.app-baseEmp.har gives the same numbers.


✨ Features

  • 🤖 AI Agent Native (MCP): Connect your local AI coding assistant (Anti-Gravity, OpenCode, Claude Code, Claude Desktop, or any stdio MCP client) via a stdio Model Context Protocol server. Gives your AI 11 high-leverage tools to filter, search, compare, and audit archives without context token waste. (Setup Guide)
  • 💻 Standalone CLI (analysor): Fast terminal analysis — import, list, summary, roi, diff, scan, tag/untag, delete, prune, convert, view, and mcp, with --json support for CI/CD and scripting. Run analysor help (or npx tsx bin/analysor.ts help from a clone) for the full list.
  • 🌐 Chrome Extension (Manifest V3): Capture complete network traffic with cookies and auth headers on localhost or production with 1-click Toolbar recording or DevTools Panel. (Extension Guide)
  • ⚡ ROI Optimization Hunter: Automatically detects duration outliers (e.g. 22-second backend TTFB stalls, uncompressed text payloads, and duplicate requests) and calculates actionable ROI scores.
  • 🛡️ 100% Offline-First: Drag & drop one or more .har, .json (including the extension's Analysor JSON export), .har.gz, or .zip files (or use the Upload button) — everything stays directly in your browser. No data ever hits a server.
  • 📊 Summary View: Request/byte/latency metrics, status/method/domain/resource-type breakouts, and fastest/slowest/largest/failed request analysis.
  • 🔍 Advanced Requests View: Fully virtualized table with search (URL, headers, query, body), rich status/method/type/domain/protocol filtering, sorting, CSV/JSON export, and Export Filtered HAR of exactly the filtered rows.
  • 🔬 Deep Entry Inspector: Per-request timings bar, headers, cookies, query string, POST data, response body (JSON tree, raw, or image), curl export, cache & initiator info.
  • 🌊 Waterfall View: Sequential phase timing bars with zoom, pan, and fit-to-capture scaling.
  • ⚖️ Side-by-Side Compare: Load two HAR captures and contrast their headline metrics and added/removed/changed requests. Requests are matched by method + URL with cache-buster parameters (_rsc, _, cb, timestamp, ...) ignored.
  • 🛡️ Secret Scan & Redaction: Flags credentials in headers, cookies, query strings, request bodies, and response bodies, and downloads a sanitized copy with them masked.
  • 🌗 Beautiful Theming: Gorgeous Light & Dark modes, strictly built using HSL color tokens (Zero-Hex constraint) for seamless aesthetics.
  • ⌨️ Keyboard Navigation: Vim-style (j/k) and arrow key navigation, global shortcuts (?), and a robust Command Palette (Cmd/Ctrl + K).

🚀 Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

  • Node.js (v20+ recommended)
  • npm or pnpm

Install from npm

npm install -g analysor   # or run once with: npx analysor <command>
analysor view --open      # web UI at http://localhost:5176
analysor summary capture.har

This installs two commands: analysor (the CLI, including analysor view for the web UI) and analysor-mcp (the MCP server, also available as analysor mcp). Archives are stored in .analysor/archives/ under the folder you run them in.

To use the MCP server from an AI assistant, point it at npx -y analysor mcp. See docs/mcp-setup.md.

Develop from source

  1. Clone the repo
    git clone https://github.com/AhmedNAgy25/analysor.git
    
  2. Navigate to the project directory
    cd analysor
    
  3. Install NPM packages
    npm install
    
  4. Start the development server
    npm run dev
    

🛠️ Scripts & Tooling

Command Description
npm run dev Start the Vite dev server
npm run build Type-check and produce a production build (web UI in dist/, CLI and MCP bundles in dist-node/)
npm run test:pack Pack the npm tarball, install it in an empty folder, and run the installed commands (after build)
npm run preview Preview the production build
npm run lint Lint with oxlint
npm run check:theme Check for zero raw hex values outside index.css
npm run verify Run the Playwright E2E smoke tests (needs a running server; reads PORT, default 5176)
npm run test:all Run the theme, UX, mobile, and accessibility Playwright smoke tests
npm run analysor Run the Analysor CLI tool
npm run mcp Start the Model Context Protocol (MCP) server
npm run test:unit Run Vitest unit tests
npm run test:cli Run CLI smoke tests
npm run test:mcp Run MCP server integration smoke tests
npm run verify:all Run theme check, lint, build, Playwright smoke tests, unit tests, CLI smoke, and MCP smoke tests

🏗️ Project Architecture

Built with React 19, TypeScript, Vite, Tailwind CSS 4, and Zustand.
HAR parsing runs asynchronously in a Web Worker (src/features/ingest/lib/parseWorker.ts) so large 100MB+ captures never block or freeze the main UI thread.

src/
  features/       Vertical feature slices, each with components/, lib/ (pure logic), state/, index.ts
    ingest/       File loading, HAR parsing/normalization, Web Worker, decompression, export, fileSlice
    summary/      Stats and summary view
    requests/     Requests table, filters, filterSlice
    detail/       Entry inspector
    waterfall/    Waterfall timeline
    compare/      Capture diff
    security/     Secret scanner and redactor
    shell/        App layout (Header, Tabs, DropZone), tab routing, uiSlice
  shared/         Cross-cutting lib/, types/, and ui/ primitives (no business logic)
  store/          Zustand store composed from feature-owned slices
  adapters/       Headless surfaces: cli/ (analysor command) and mcp/ (MCP server)
  index.css       Strict CSS variable foundation (Zero-Hex)
bin/              CLI (analysor.ts) and MCP (mcp.ts) entry points, bundled to dist-node/ for npm
extension/        Chrome Extension (Manifest V3)
tests/            Playwright smoke tests, unit/ (Vitest), CLI/MCP smoke tests, token enforcer
docs/adr/         Architecture decision records

🤝 Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Please see our CONTRIBUTING.md for detailed guidelines on architectural constraints (like Single Responsibility and Zero-Hex).

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Add a line to CHANGELOG.md and open a Pull Request to dev

📄 License

Distributed under the MIT License. See LICENSE for more information.

Yorumlar (0)

Sonuc bulunamadi