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

service-for-har

v0.5.1

Published

一个用于解析和复现 HAR(HTTP Archive)文件的服务,支持 API 调用和自定义扩展,帮助开发者高效分析 HTTP 请求数据。

Readme

service-for-har

一个用于解析和复现 HAR(HTTP Archive)文件的服务,支持 API 调用和自定义扩展,帮助开发者高效分析 HTTP 请求数据。


特性 Features

  • 🚀 解析 HAR 文件,提取 HTTP 请求数据
  • 🛠️ 提供 API 服务,便于集成和自动化
  • 🔌 支持自定义扩展,满足个性化需求
  • 📦 一键运行,快速上手
  • 📁 支持上传并自动转换 SAZ 文件(Fiddler 抓包文件)为 HAR 格式

快速开始 Quick Start

1. 安装依赖

pnpm install

项目依赖于 iconv-lite 库来处理不同编码的 SAZ 文件,包括 UTF-8 和 GBK 编码。

2. 启动服务

方法一:npx 一键运行

无需全局安装,直接运行:

npx service-for-har [har文件或目录路径] [参数]

方法二:本地安装依赖

适合本地开发和二次开发:

pnpm install
pnpm run build
pnpm start -- [参数]

3. 示例 HAR 文件

你可以在 example/example.har 找到示例 HAR 文件,方便测试和体验。


参数说明 Parameters

  • --path <har文件或目录路径>
    指定要加载的 HAR 文件或目录路径。默认读取当前目录下的 ./har_storage

  • --port <端口号>
    指定服务启动的端口号,默认端口为 3000
    例如:npx service-for-har --port 8080


目录结构 Directory Structure

.
├── LICENSE
├── package.json
├── pnpm-lock.yaml
├── tsconfig.json
├── example/
│   └── example.har
├── har_storage/
└── src/
    └── server.ts

许可证 License

Apache License


English Introduction

service-for-har is a service for handling HAR (HTTP Archive) files. It can parse HAR files, provide related APIs, and support custom extensions, making it easy for developers to analyze and replay HTTP request data.

Features

  • Parse HAR files
  • Provide API services
  • Support custom extensions
  • Easy to use
  • Support uploading and automatically converting SAZ files (Fiddler capture files) to HAR format with UTF-8 and GBK encoding support

Quick Start

  1. Install dependencies

    pnpm install
  2. Start the service

    pnpm start
  3. Example HAR file: example/example.har

Parameters

  • --path <path-to-har-file-or-directory>
    Specify the HAR file or directory to load. Defaults to ./har_storage.

  • --port <port>
    Specify the port for the service (default: 3000).
    Example: npx service-for-har --port 8080


欢迎提出建议或贡献代码!如有问