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 🙏

© 2024 – Pkg Stats / Ryan Hefner

whistle.savemysql

v1.0.2

Published

保存请求到mysqldb

Downloads

9

Readme

whistle.savemysql

该插件用于将whistle的请求记录保存到mysql数据库中,方便后续分析。

安装

  1. 该应用是whistle插件,需要先安装whistle:https://github.com/avwo/whistle
  2. 安装插件:
    npm i -g whistle.savemysql
  3. 安装后通过whistle的管理界面打开配置界面: 配置连接mysql需要的host/port等信息: 插件管理界面

使用插件

配置后,在rules页面添加要匹配的请求配置规则:

    www.xxx.com pipe://savemysql

规则匹配后,whistle会将请求记录保存到mysql数据库中,在mysqldb中可以查看相关记录 在测试过程中,可能使用的场景:

  1. 统计接口覆盖率
  2. 通过接口中的版本或日期字段,对比不同版本接口变化
  3. 在线上环境回归时,过滤是否有测试环境的接口

字段说明

| 字段 | 类型 | 说明 | |-----|-----|-----| | id | String | whistle的请求唯一标识符 | | fullUrl | String | 完整URL | | method | String | HTTP请求方法 | | url | String | 请求的URL地址 | | protocol | String | 使用的协议(如HTTP或HTTPS) | | host | String | 请求的主机名 | | path | String | 请求的路径 | | headers | Object | HTTP请求头信息 | | res_body | Object | 响应体内容 | | res_headers | Object | 响应头信息 | | req | Object | 请求对象,包含请求相关的所有信息 | | req_body | Object | 请求体内容 | | req_params | Object | 请求参数 | | client_ip | String | 客户端IP地址 | | create_time | String | 创建时间 |

参考项目

whistle.autosave(https://github.com/whistle-plugins/whistle.autosave)

启动环境

w2 start

http://127.0.0.1:8899/#plugins

启动mongodb

https://fastdl.mongodb.org/osx/mongodb-macos-arm64-7.0.11.tgz mongod --dbpath ~/mongodb-data #默认安装无账号密码:127.0.0.1:27017

待办

python+selenium+Chrome+Mysql实现爬取网页题库到数据库中 原文链接:https://blog.csdn.net/qq_44657834/article/details/119330585

利用chrome插件批量读取浏览器页面内容并写入数据库

https://github.com/whistle-plugins