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

mjpic

v1.0.9

Published

敏捷图片(mjpic)是一个轻量级网页版图片处理工具,设计灵感来源于光影魔术手。

Readme

敏捷图片 (mjpic)

敏捷图片(mjpic)是一个轻量级网页版图片处理工具,设计灵感来源于光影魔术手。

特性

  • 轻量级:无需安装庞大的软件,即开即用。
  • 本地处理:图片不上传服务器,保护隐私。
  • 功能丰富:支持裁剪、旋转、尺寸调整、边框添加等常用功能。
  • CLI 支持:提供命令行工具,方便快速打开和处理图片。

安装

npm install -g mjpic

使用

命令行模式

打开指定图片:

mjpic path/to/image.jpg

启动服务:

mjpic start
# 或
mjpic dev

网页模式

访问部署后的网页即可使用。

开发

  1. 克隆仓库
  2. 安装依赖:npm install
  3. 启动开发服务器:npm run dev

安装使用

安装

Q:Arm架构的麒麟操作系统V10如何安装Node.js?

■ 豆包:

方法一:直接手工安装

访问Node.js官网 https://nodejs.org/zh-cn/download

uname -m    # aarch64表示系统架构是ARM64

下载Linux ARM64版本

cd ~/下载
wget https://nodejs.org/dist/v24.13.1/node-v24.13.1-linux-arm64.tar.xz
tar -xvf node-xxx-arm64.tar.xz
sudo mv node-xxx-arm64 /usr/local/nodejs

配置环境变量

sudo vim /etc/profile
    export NODE_HOME=/usr/local/nodejs
    export PATH=$NODE_HOME/bin:$PATH
source /etc/profile

测试安装是否成功

node -v

方法二:配合/deploy/node_install.sh脚本安装

  1. 保存node_install.sh 到下载 目录。

  2. 打开终端(terminal)。

  3. 进入下载目录:

    cd ~/下载

  4. 赋予脚本可执行权限:

    chmod +x node_install.sh

  5. 以root权限运行脚本:

    sudo ./node_install.sh

  6. 使环境变量生效

    source ~/.bashrc

  7. 下载 敏捷图片(mjpic):

    npm install mjpic@latest

  8. 运行 敏捷图片(mjpic):

    npx mjpic build --port 3030

创建桌面快捷方式

Q:如何在麒麟操作系统V10的桌面创建一个快捷方式,单击后直接在终端运行 npx mjpic build --port 3030 命令?

■ 豆包:

方法一:

cd ~/桌面

vim mjpic-start.desktop

[Desktop Entry]
快捷方式类型(应用程序)
Type=Application
显示名称(桌面显示的文件名)
Name=敏捷图片
注释(鼠标悬停显示)
Comment=启动mjpic服务,端口3030
图标(可选,可替换为自己的图标路径,也可留空)
Icon=image
关键:执行的命令(xterm/gnome-terminal 打开终端并执行命令)
麒麟V10优先用 gnome-terminal,若不行换 xterm
Exec=mate-terminal -- bash --login -c "source ~/.bashrc; npx mjpic build --port 3030; exec bash"
执行终端窗口是否保持打开(yes=执行完不关闭,no=执行完关闭)
Terminal=yes
分类(桌面显示的归类)
Categories=Graphics
编码
Encoding=UTF-8
是否允许执行
Executable=true

chmod +x ~/桌面/mjpic-start.desktop

注:如有相关提示,选择始终允许执行。

方法二:

  1. 关闭终端,保存 mjpic-start.desktop 到 桌面,右键属性勾选可执行权限。双击新建图标运行。