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

@holic512/plugin-systemd

v1.0.1

Published

Interactive systemd service management tool

Readme

@holic512/plugin-systemd

Interactive systemd service management tool for SlothTool.

SlothTool 的 systemd 服务管理插件,提供交互式操作与命令行支持。

Install / 安装

slothtool install @holic512/plugin-systemd

Usage / 使用

Interactive mode / 交互式模式

slothtool systemd -i

Command mode / 命令模式

# List services
slothtool systemd list --state active
slothtool systemd list --all

# Service actions
slothtool systemd start ssh.service
slothtool systemd stop ssh.service
slothtool systemd restart ssh.service
slothtool systemd enable ssh.service
slothtool systemd disable ssh.service

# Logs
slothtool systemd logs ssh.service --lines 50
slothtool systemd logs ssh.service --follow
slothtool systemd logs ssh.service --since "1 hour ago"

Features / 功能

  • Interactive-first UX with history-based quick actions

  • Service management: start/stop/restart/enable/disable/status

  • Logs with line limit, follow, and since filters

  • History cache for recent services/actions/searches

  • Bilingual (Chinese/English) messages

  • 交互式优先,支持历史记录快捷操作

  • 服务管理:启动/停止/重启/启用/禁用/状态

  • 日志查看:行数限制、持续跟随、时间过滤

  • 历史缓存:最近服务/操作/搜索记录

  • 中英文双语支持

Troubleshooting / 常见问题

Permission denied / 权限不足

Some actions require root permission. The plugin does not auto-sudo. Copy the suggestion it prints, for example:

sudo systemctl restart nginx.service

部分操作需要 root 权限。插件不会自动提权,请复制提示的 sudo 命令执行。

systemctl not found / 找不到 systemctl

Ensure you are running on a Linux system with systemd installed and running.

请确认运行环境为 Linux 且已安装并启用 systemd。