Available SDKs
KeyBox provides official SDKs for the most popular programming languages and frameworks. Each SDK offers the same core functionality with language-specific idioms and best practices.Node.js SDK
For Express, Next.js, and Node.js applications
Python SDK
For FastAPI, Django, and Python applications
.NET SDK
For ASP.NET Core and .NET applications
Core Features
All KeyBox SDKs provide:License Activation
License Activation
One-time activation to verify a license key before your application starts. Prevents unauthorized usage from the start.
Background Validation Daemon
Background Validation Daemon
Continuous license validation every 15 minutes. Automatically shuts down your application if a license is revoked or expires.
One-Line App Protection
One-Line App Protection
Framework-specific helpers that wrap your entire application with license protection in a single function call.
Graceful Shutdown
Graceful Shutdown
When a license becomes invalid, the SDK gracefully closes connections and shuts down your application to prevent data corruption.
Choosing the Right SDK
- Node.js
- Python
- .NET
Best for:
- Express.js applications
- Next.js API routes
- Electron desktop apps
- CLI tools built with Node.js
keybox-sdkCurrent Version: 1.0.1View Node.js SDK Documentation →Common Use Cases
Protecting a Web API
All SDKs provide a simple way to protect your web API:Manual License Management
For applications that need more control:Configuration
API URL
All SDKs default to the production KeyBox API athttps://api-keybox.vercel.app. You can override this for self-hosted instances:
Validation Interval
All SDKs validate licenses every 15 minutes (900 seconds) by default. This interval is fixed to balance license enforcement with API costs.The validation daemon runs in the background and does not block your application. Network errors are handled gracefully - your app continues running if the validation server is temporarily unreachable.
Error Handling
Activation Errors
All SDKs throw exceptions when activation fails:Validation Errors
The background daemon logs errors but keeps your app running during temporary network issues. Only permanent failures (revoked, expired, invalid) trigger shutdown.Next Steps
Quick Start
Get started with KeyBox in under 5 minutes
API Reference
Explore the complete API documentation
Examples
See real-world integration examples
Troubleshooting
Common issues and solutions