DEV Community

Cover image for Stop Shipping Software Without a License System — Meet SunLicense
Kasun Hapangama
Kasun Hapangama

Posted on

Stop Shipping Software Without a License System — Meet SunLicense

If you've ever shipped a software product — a Minecraft plugin, a Discord bot, a Java library, anything paid — you know the feeling.

Someone reposts your download link. A customer's key gets leaked. You have no way to invalidate it, no idea how many installs are out there, and no system to do anything about it.

License management is one of those unsexy problems every indie dev eventually hits. Most either skip it entirely, roll a janky home-baked solution, or find enterprise tools that cost more per month than the product earns.

SunLicense is a different answer — built by an indie dev, for indie devs, priced as a one-time $14.99.

Disclosure: I'm Kasun Hapangama, the creator of SunLicense. Stats and review excerpts are pulled directly from the BuiltByBit listing.


What Is SunLicense?

SunLicense is a self-hosted license management system that ships with:

  • A web admin dashboard
  • A customer-facing dashboard (with Discord OAuth2 login)
  • A Discord bot for automated license workflows
  • A RESTful license API
  • A Java API wrapper
  • BuiltByBit marketplace integration for fully automated license issuance

It's currently at v1.2.4, with 11 updates since launch in January 2025, 212 purchases, and a 5.0 average rating across 16 reviews on BuiltByBit.


How It Works

The core model is dead simple — intentionally so.

1. You create a license key (dashboard or API)
2. The user enters the key in your product
3. Your product calls the SunLicense validation endpoint
4. The server applies your rules → grants or denies access
Enter fullscreen mode Exit fullscreen mode

Rules you can configure per license:

  • Expiry dates
  • Device (HWID) restrictions
  • IP restrictions / blacklists
  • Temporary licenses
  • Max activations

Integrating Into Your Product

Java (using the official API wrapper)

// Initialize the client
SunLicense client = new SunLicenseClient(
    "https://your-sunlicense-host.com",
    "your-product-secret-key"
);

// Validate at startup
ValidationResult result = client.validate(
    userInputKey,
    HardwareID.generate() // auto HWID binding
);

if (!result.isValid()) {
    System.out.println("License invalid: " + result.getReason());
    System.exit(1);
}

// License valid — continue loading your product
Enter fullscreen mode Exit fullscreen mode

Other Languages (REST API)

POST /api/v1/license/validate
Content-Type: application/json

{
  "key": "XXXX-XXXX-XXXX-XXXX",
  "hwid": "generated-hardware-id",
  "product_id": "your-product-id"
}
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "valid": true,
  "expires_at": "2026-12-31T00:00:00Z",
  "message": "License validated successfully"
}
Enter fullscreen mode Exit fullscreen mode

Support guides exist for PHP, Python, JavaScript, Lua, and more — so you're not starting from scratch regardless of your stack.


Feature Breakdown

Core

Feature Status
Web Admin Dashboard
Customer Dashboard (Discord OAuth2) ✅ New in 1.2
Discord Bot Integration
RESTful License API
Java API Wrapper
Temporary Licenses
IP Restrictions
HWID Restrictions
Unlimited Products & Licenses
Graphs & Analytics
Dark Theme

Automation

Feature Status
Auto License Creation via BuiltByBit Purchase ✅ New in 1.1
Auto License Creation via Discord Role ✅ New in 1.1
Product Discord Role on License Claim ✅ New in 1.1
DM Discord Commands ✅ New in 1.1
Custom Discord Embeds ✅ New in 1.1
Blacklists (IP / HWID) ✅ New in 1.1

Security & Ops

Feature Status
Secure Developer API ✅ New in 1.2
Disaster Mode (Panic Mode) ✅ New in 1.2
Automated + Manual Backups ✅ New in 1.2
System Health Checks
Blacklisting

Platform Support

SunLicense ships with integration guides for:

  • Minecraft — Plugins, Mods, Server Software
  • Discord Bots
  • FiveM Projects (added in 1.1)
  • Java Projects
  • PHP Projects
  • Python Projects
  • JavaScript Projects
  • Lua Projects

Infrastructure: runs on ARM and x86, supports Pterodactyl Panel (a Pterodactyl Egg is included), and managed hosting is available if you'd rather not self-host.


Who Should Be Using This

Marketplace sellers (BuiltByBit, Spigot, etc.)

The BuiltByBit automation is the headline feature. When someone buys your resource, SunLicense auto-generates their key and optionally assigns a Discord role — zero manual steps. If you're actively selling on a marketplace and handling license requests by hand, this alone pays for itself.

Discord bot developers

The Discord-native workflow is genuinely polished. Customers can claim and check licenses entirely via DM commands. Role-gated access works automatically on claim. Custom embed support means it fits your branding without looking like someone else's bot.

Java / backend developers

The Java API wrapper is well-maintained, there's a sample project in the docs, and HWID + IP binding gives you real protection for desktop software without running your own validation infrastructure.

Small studios with multiple products

Unlimited products and licenses out of the box. If you're at three or four products and still handling key distribution manually over Discord — this is the inflection point where a system like this pays for itself in hours saved per week.


The Honest Take

No tool is perfect, and the reviews are candid about where SunLicense has room to grow.

The setup process has a learning curve, especially outside the Java ecosystem. One reviewer noted:

"Not being able to configure things outside the Java experience makes it harder than it needs to be sometimes."

This is fair feedback. The creator has acknowledged it publicly and is active on the Discord server taking suggestions.

The flip side: 11 updates since January 2025, covering things users actually asked for — customer dashboards, automated backups, FiveM support, the secure developer API. That pace of iteration matters a lot when your product's license validation depends on a tool staying maintained.

One other thing worth knowing: this is a self-hosted system. You're responsible for running the server, or you pay for managed hosting. If zero-ops is a hard requirement, factor that into your evaluation.


What Users Are Saying

"The dashboard is intuitive, the automation works flawlessly, and every feature feels like it was built with real developers' needs in mind. It's rare to find a product that combines such a smooth user experience with this level of power and reliability."
gOOvER, ★★★★★

"By far the best License Management system. The owner even helped me in a private voice call to set everything up — 10/10."
xByNovaTV, ★★★★★

"It's a solid and promising product. The Discord bot is super helpful. You can tell there's real passion behind it. Setup can be a pain outside Java, but despite those bumps, it's still a great tool overall."
bestiebeate, ★★★★☆

"This is the first and probably last license system I have to buy."
workattack, ★★★★★


Pricing

Tier Price
Base License $14.99 one-time
Enhanced Support (install & setup) +$20.00
Source Code +$99.00
Support Duration Lifetime

Bundles are also available:

  • SunLicense Bundle — Total Protection & Control for Your Software (~$25.48, was $29.98)
  • SunDevs Developer Bundle — All SunDevs products (~$47.96, was $59.96)

Links


Built and maintained by Kasun Hapangama @ SunDevs · Sri Lanka

Top comments (0)