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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lsar

v1.3.1

Published

Live Source Address Resolution

Downloads

20

Readme

LSAR

介绍

Live Source Address Resolution.

斗鱼、B 站、虎牙直播源链接解析工具。

为什么叫这个名?因为之前起的名都 npm 上都是重名的包了,只能随便取一个。

安装

0 新手

新手小白点击新手教程

1 包管理器

npm i -g lsar
yarn add global lsar
pnpm i -g lsar

2 源码

安装依赖

克隆

git clone https://gitee.com/thepoy/lsar
# 或者
git clone https://github.com/thep0y/lsar

并进入项目目录后

yarn
# 或
pnpm install

编译安装

node 的编译叫打包更合适,打包命令:

yarn build
# 或
pnpm build

然后再创建全局命令快捷方式以便全局调用:

npm link -g
pnpm link -g
yarn link

windows 中需注意

如果你在用 yarn,yarn 的命令目录可能不在 Path 中,也就是说编译安装后无法调用lsar命令,需要将 yarn 的 Scripts 目录放在用户环境变量的 Path 中。 yarn 的 bin 目录路径请用下面的命令查看:

yarn global bin

将输出的目录添加到环境变量后重新打开powershellcmd就可以执行lsar了。

使用说明

编译安装后在 npm 的全局 bin 目录中会有一个lsar命令,传入房间号即可解析出直播源:

截屏2023-07-31 11.37.55

问题反馈

建议使用mpv播放视频,出现错误时可方便地上传日志。

反馈问题时必需上传任何播放器的错误日志,无日志者若无充足理由将直接作为无效 issue 关闭。