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

webcode-data-tool

v1.0.0

Published

WebCode 数据备份恢复工具 - 一键导出、清空、导入

Readme

WebCode 数据备份恢复工具

一个简单易用的 WebCode 应用数据备份恢复工具。

安装

无需安装,直接使用 npx:

npx webcode-data-tool

使用方法

交互式模式(推荐)

npx webcode-data-tool

然后按照提示选择操作。

命令行模式

# 导出数据(备份)
npx webcode-data-tool export

# 清空配置(修复崩溃)
npx webcode-data-tool clean

# 导入数据(恢复)
npx webcode-data-tool import
# 或指定备份文件
npx webcode-data-tool import /path/to/backup.tar.gz

功能说明

1. 导出数据

  • 备份整个 WebCode 数据目录
  • 自动压缩为 tar.gz 格式
  • 保存到 ~/.webcode-backups/ 目录

2. 清空配置

  • 删除所有缓存文件
  • 保留配置文件(config.json, global.json)
  • 用于修复应用崩溃问题

3. 导入数据

  • 从备份恢复数据
  • 智能恢复:只恢复配置,不恢复缓存
  • 避免恢复损坏的缓存文件

支持的平台

  • macOS
  • Windows (需要 Windows 10+)
  • Linux

备份位置

  • macOS: ~/Library/Application Support/webcode-launcher/
  • Windows: %LOCALAPPDATA%\webcode-launcher\
  • Linux: ~/.config/webcode-launcher/

常见问题

应用崩溃了怎么办?

  1. 运行清空配置命令:npx webcode-data-tool clean
  2. 重新启动应用

如何迁移到新电脑?

  1. 在旧电脑上运行:npx webcode-data-tool export
  2. 将备份文件传输到新电脑
  3. 在新电脑上运行:npx webcode-data-tool import

License

MIT