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

termux-skill

v1.3.0

Published

Termux API skill — control Android devices via Termux API. Auto-detects direct access (Termux/proot-distro) or falls back to SSH. Anti-compaction with persistent state. Includes quick-ref for top 15 commands.

Readme

termux-skill

Termux API skill for AI agents — control Android devices via Termux API.

npx -y termux-skill

Installs a SKILL.md in .agents/skills/termux-api/ (and other agent directories) so your AI agent (OpenCode, Claude Code, Cursor, Copilot, etc.) can control Android via Termux API.

What it does

  • Auto-detects native Termux, proot-distro, or falls back to SSH (port 8022)
  • 70+ device APIs: camera, sensors, GPS, SMS, notifications, clipboard, TTS, torch, WiFi, battery
  • Anti-compaction design: survives AI context compaction with persistent state
  • Automatic path resolution: handles proot-distro paths automatically
  • Installs to all supported agent directories automatically
  • Writes skills-lock.json and updates CLAUDE.md

Usage

# Install (or update if hash changed)
npx -y termux-skill

# Force reinstall
npx termux-skill --update

# Remove skill and clean up
npx termux-skill --uninstall

# Show help
npx termux-skill --help

Installed Files

After installation, you'll have:

.agents/skills/termux-api/
├── SKILL.md              # Main skill (compact, anti-compaction)
├── termux-COMMANDS.md    # Full command reference (70+ commands)
├── termux-EXAMPLES.md    # Common usage patterns
└── termux-state.sh       # Auto-detect environment + helpers

Quick Start

# 1. Load skill (auto-detects environment)
source termux-state.sh

# 2. Use helper function (handles paths automatically)
termux_exec termux-battery-status
termux_exec termux-camera-photo -c 0 ~/photo.jpg
termux_exec termux-tts-speak "Hello"

Anti-Compaction Design

This skill survives AI context compaction:

  1. State on disk — ~/.termux-skill-state persists environment detection
  2. Self-contained recovery — Single source termux-state.sh restores everything
  3. No context dependency — Functions work without remembering conversation history

After context compaction, recover with:

source termux-state.sh
# Output: State loaded: ENV=proot PREFIX=/data/data/com.termux/files/usr/bin

proot-distro Path Handling

⚠️ Important for proot-distro environments:

  • Never use: /root/, /tmp/, /home/
  • Always use: /data/data/com.termux/files/home/
  • termux_exec resolves paths automatically
# This works automatically:
termux_exec termux-camera-photo -c 0 ~/photo.jpg
# Resolves to: /data/data/com.termux/files/home/photo.jpg

API Examples

| Command | Description | |---------|-------------| | termux-battery-status | Battery level, charging status | | termux-camera-photo -c 1 ~/foto.jpg | Take photo (front camera) | | termux-notification -t "Hola" -c "Mundo" | Show notification | | termux-location -p network | Get GPS location | | termux-sms-send -n +123 "message" | Send SMS | | termux-tts-speak "Hello" | Text to speech | | termux-clipboard-get | Get clipboard text | | termux-torch on | Toggle flashlight |

Documentation