ikxin/kms-tools
About
All-in-one KMS toolbox integrating activation script generation, KMS server checks, KMS server status monitoring, and other features.
Productivity & AutomationMeasured star growth
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +7
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
📖 Introduction
KMS Tools is an all-in-one KMS toolbox built with the Nuxt 4 full-stack framework. It integrates KMS activation script generation, KMS server detection, and KMS server status monitoring.
[!NOTE] The application runs on Cloudflare Workers and requires Cloudflare D1 to store monitored servers and check records. Local development uses a local D1 database provided by Wrangler.
✨ Features
- 🔑 KMS Activation Script Generation - One-click generation of KMS activation scripts for Windows / Windows Server / Office
- 🔍 KMS Server Check - Real-time detection of KMS server availability and response time
- 📊 KMS Server Monitoring - Explore each server's daily check success rate over the past year or a selected calendar year
- 🌍 Internationalization - Support for Simplified Chinese and English
- 🌗 Dark Mode - Light / Dark / System theme modes
- ☁️ Cloudflare Workers Deployment - Persist monitoring data in D1 and schedule checks with Cron Triggers
🌈 Preview
| KMS Activation Script | KMS Server Check | KMS Server Monitoring |
|---|---|---|
![]() |
![]() |
![]() |
📦 Demo
🛠️ Tech Stack
| Technology | Description |
|---|---|
| Nuxt | Full-stack web application framework based on Vue.js |
| Vue.js | Progressive JavaScript framework |
| Nitro | High-performance web server framework based on unjs/h3 |
| Vite | Fast dev server and modern build tool |
| TypeScript | JavaScript superset with type system |
| Tailwind CSS | Utility-first CSS framework |
| Arco Design Vue | Enterprise-level design system by ByteDance |
| Cloudflare Workers | Application runtime and scheduled tasks |
| Drizzle ORM | Type-safe database access and migrations |
| Cloudflare D1 | Cloudflare SQLite database |
| Nuxt I18n | Internationalization plugin for Nuxt |
📦 Deployment
The application runs on Cloudflare Workers and requires a Cloudflare D1 database bound as DB. Worker, D1, Cron Trigger, and logging settings are maintained in wrangler.jsonc.
The base URL for the site and localized links is fixed to https://kms.ikxin.com. Frontend API requests use same-origin relative paths, so no URL environment variables are required. Bind this domain to the Worker after deployment.
Create and bind a D1 database
After installing dependencies, log in to Cloudflare and create the database:
pnpm exec wrangler login
pnpm exec wrangler d1 create kms-tools
Add the returned database_id to the d1_databases entry in wrangler.jsonc, keeping the binding name DB. If a database already exists, use its ID. Local development does not require a remote database ID.
Initialize the database and deploy
# Apply remote database migrations
pnpm run db:migrate:remote
# Build and deploy the Worker
pnpm run build
pnpm run deploy
Nitro merges wrangler.jsonc into the generated Worker deployment configuration during the build. pnpm run deploy uses that configuration to publish the application. Apply any new remote migrations before subsequent deployments as well.
Configure monitored servers
Migrations create empty servers and monitor_records tables. Manage monitored servers through the host, port, and enabled fields in servers, for example:
pnpm exec wrangler d1 execute DB --remote --config wrangler.jsonc --command "INSERT OR IGNORE INTO servers (host, port) VALUES ('kms.org.cn', 1688)"
Monitoring runs at the top of every hour in production and every 10 minutes during local development. To change the production schedule, update both triggers.crons in wrangler.jsonc and monitorCron in nuxt.config.ts.
Each check is appended to D1. The calendar opens on the last 365 days in the visitor's local time. Select a year to explore older records. Darker greens indicate higher daily success rates, red means every check failed, and gray means no checks were recorded that day.
🔧 Local Development
# Clone the repository and install dependencies
git clone https://github.com/ikxin/kms-tools.git
cd kms-tools
pnpm install
# Apply local D1 migrations and start the development server
pnpm run dev
The development server accesses local D1 through Wrangler's bindings proxy. Data persists in .wrangler/state/v3 without requiring a Cloudflare login. Local API requests use the development server, and local data is separate from remote D1.
Add a local monitored server:
pnpm exec wrangler d1 execute DB --local --config wrangler.jsonc --command "INSERT OR IGNORE INTO servers (host, port) VALUES ('kms.org.cn', 1688)"
After changing server/database/schema.ts, generate and apply migrations:
pnpm run db:generate
pnpm run db:migrate:local
🤝 Contributing
Contributions of all kinds are welcome! Please read the Contributing Guide first.
- Fork this repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
⭐ Star History
💖 Sponsors
CDN acceleration and security protection for this project are sponsored by Tencent EdgeOne.
📄 License
This project is licensed under the MIT License.
🧑💻 Author
Code with ❤️ by 一纸忘忧
Explore related projects
Loading…



