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

twskin

v0.6.7

Published

An unofficial community theme manager and CLI for TRAE Work on macOS.

Readme

TRAE Work Skin CLI

twskin provides the twskin command for installing, diagnosing, switching and restoring local themes in TRAE Work on macOS.

Unofficial: TRAE Work Skin is an unofficial community theme manager for TRAE Work. It is not affiliated with, endorsed by, or sponsored by TRAE or ByteDance.

Requirements

  • macOS
  • Node.js 22 or newer
  • TRAE Work CN installed locally

Install

npm install --global twskin@latest --registry=https://registry.npmjs.org
twskin start

The command layer is written in strict TypeScript and uses Clack for interactive prompts and progress feedback. It only connects to the local TRAE process through CDP on 127.0.0.1; it does not modify the TRAE application bundle or its code signature.

On first start, an empty theme directory prompts before downloading from the latest official GitHub Release. Use twskin start --yes for explicit consent in automation. If TRAE is already running without CDP, the CLI asks the user to save their work and confirm before restarting it; --yes also explicitly confirms that restart. After a successful start, the CLI persists the loopback CDP port in TRAE's user-level argv.json. While the watcher remains active, quitting and reopening TRAE automatically reconnects and reapplies the selected theme. Later starts use the local themes without downloading.

Commands

twskin start [--yes]         Initialize and start Theme Manager and its watcher
twskin stop                  Stop Skin and restore native appearance without quitting TRAE
twskin status [--json]       Show App, CDP, watcher and active-theme status
twskin themes [--json]       List locally installed themes
twskin theme <id>            Select a theme
twskin theme download [id]   Download all or one theme from the latest GitHub Release
twskin theme check           Check the official theme catalog for updates
twskin theme sync            Download and install all compatible theme updates
twskin theme auto-update <on|off> Toggle automatic official-theme updates
twskin theme load <directory> Install one theme, or immediate child theme directories
twskin doctor [--json]       Validate Node, TRAE, port and package integrity
twskin restore               Restore the native TRAE appearance
twskin uninstall [--yes]     Restore TRAE and remove TRAE Work Skin data
twskin version, -V, --version Print the CLI version
twskin help                  Print command help

Dry run

Append --dry-run (or the compatibility alias --dryrun) to preview any command without changing TRAE, local configuration, or theme files. Mutating commands return a planned action list; read-only commands return their normal inspection result with dryRun: true in JSON output.

twskin start --dry-run
twskin theme sync --dry-run --json

twskin theme <id> applies immediately while Theme Manager is active. Otherwise the selection is saved and applied by the next twskin start. twskin stop preserves the selected theme and its settings, so a later twskin start can restore them. It also restores the pre-existing remote-debugging-port value instead of leaving twskin's persistent CDP configuration behind.

Theme Manager checks the small official catalog at most once every six hours while the watcher is active. Its 更新 control performs a forced check; a banner shows the result and allows manual installation. Automatic official-theme updates are enabled by default and can be changed in Theme Manager's configuration view or with twskin theme auto-update.

Theme directory

The CLI package does not contain themes. It loads them from:

~/.trae-work-skin/themes

Set TWSKIN_THEMES_DIR to use another absolute directory.

In a source checkout, the default is the repository's top-level themes/ directory. theme load copies only the canonical theme payload and installs it atomically. theme download reads the latest official GitHub Release, verifies the attached SHA-256 file and archive structure, then installs into the same directory. See docs/theme-distribution.md.

The canonical payload may include theme.css for theme-specific component styling and motion. The injector replaces this stylesheet atomically whenever the active theme changes; declarative colors and component roles remain in theme.json.

Development

cd packages/cli
npm install
npm run prepare:runtime
npm run check
npm test
npm pack --dry-run

TypeScript compiles to dist/. The tracked runtime/ directory is the single source of truth for the injection engine; prepare:runtime only generates its SHA-256 manifest. npm publishes both outputs, while themes remain external. See CONTRIBUTING.md for the complete contributor and release checklist.

Security

Please read SECURITY.md. Do not report vulnerabilities in public issues before a fix is available.

License

MIT © Fullstop000