Introduction
The WenPai License Server is an open-source, lightweight license management service developed by WenPai. Built with Go and SQLite, it provides license activation capabilities for WordPress plugins, themes, or other digital products. It works seamlessly with the WenPai Updater client plugin to deliver a complete commercial plugin distribution and licensing system.
Core Features
- License creation, validation, activation, and revocation
- Activation limits per domain/site
- Automatic audit log rotation (default retention: 90 days)
- RESTful API for easy integration
- Single-binary deployment; Docker-ready
Quick Deployment (Docker)
git clone https://feicode.com/WenPai-org/license-server.git
cd license-server
docker compose up -d
By default, the service listens on port :8080, and the database is stored at ./data/licenses.db.
Environment Variables
| Variable | Description |
|---|---|
API_KEY |
Admin API key; if unset, all requests to the /admin endpoints are rejected |
DATABASE_PATH |
Path to the SQLite database |
PORT |
Service port; defaults to 8080 |
API Overview
Verify a License
GET /api/v1/licenses/verify?key=LICENSE_KEY&domain=example.com
Activate a License
POST /api/v1/licenses/activate
Body: {"key":"LICENSE_KEY","domain":"example.com"}
Admin API (requires API_KEY)
POST /api/v1/admin/licenses # Create a license
DELETE /api/v1/admin/licenses/{id} # Revoke a license
GET /api/v1/admin/licenses # List licenses
Integration with WPBridge
Enter the License Server URL and API Key in the WPBridge settings to manage licenses directly from the vendor dashboard—enabling automated distribution and activation.
Important Notes
- Always set a strong
API_KEYin production environments - HTTPS is strongly recommended
- Regularly clean up or back up audit logs
Use Cases
- Licensing for commercial WordPress plugins
- Site-based licensing for SaaS products
- Controlled distribution of internal tools