Skip to content
Back to skills

114 Software 5eb6450e

ASecurity

Software licensing with device activation management.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
developmentjavascriptjavanodeapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 114-software_5eb6450e --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 114 Software 5eb6450e?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 114 Software 5eb6450e
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-114-software-5eb6450e/badge)](https://www.skillsdirectory.com/skills/tools-only-114-software-5eb6450e)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Creem.io Licensing

Software licensing with device activation management.

## License Flow

```
purchase → license_key issued → activate device → validate → deactivate
```

## Activate License

Register a device against a license key:

```javascript
// POST /v1/licenses/activate
const activation = await creem.licenses.activate({
  license_key: 'XXXX-XXXX-XXXX-XXXX',
  instance_id: 'device_fingerprint_123',  // Unique device identifier
  instance_name: 'MacBook Pro'            // Optional friendly name
});

// Returns: {
//   id: 'act_xxx',
//   license_key: '...',
//   instance_id: '...',
//   activated_at: '...',
//   valid_until: '...'
// }
```

## Validate License

Check if license is active for specific device:

```javascript
// POST /v1/licenses/validate
const validation = await creem.licenses.validate({
  license_key: 'XXXX-XXXX-XXXX-XXXX',
  instance_id: 'device_fingerprint_123'
});

// Returns: {
//   valid: true,
//   license_key: '...',
//   product_id: 'prod_xxx',
//   customer_id: 'cus_xxx',
//   expires_at: '2025-01-15T00:00:00Z',
//   activations_used: 2,
//   activations_limit: 5
// }
```

## Deactivate License

Remove device activation to free slot:

```javascript
// POST /v1/licenses/deactivate
await creem.licenses.deactivate({
  license_key: 'XXXX-XXXX-XXXX-XXXX',
  instance_id: 'device_fingerprint_123'
});
```

## Client-Side Implementation

```javascript
// Desktop app example (Electron, Tauri, etc.)
class LicenseManager {
  constructor(apiKey) {
    this.apiKey = apiKey;
    this.instanceId = this.getDeviceFingerprint();
  }

  getDeviceFingerprint() {
    // Generate unique device ID (machine ID, hardware hash, etc.)
    return require('node-machine-id').machineIdSync();
  }

  async activate(licenseKey) {
    const response = await fetch('https://api.creem.io/v1/licenses/activate', {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${this.apiKey}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        license_key: licenseKey,
        instance_id: this.instanceId,
        instance_name: os.hostname()
      })
    });
    return response.json();
  }

  async validate(licenseKey) {
    const response = await fetch('https://api.creem.io/v1/licenses/validate', {
      method: 'POST',
      headers: {
        'Authorization': `Bearer ${this.apiKey}`,
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        license_key: licenseKey,
        instance_id: this.instanceId
      })
    });
    const data = await response.json();
    return data.valid;
  }
}
```

## Activation Limits

Configure per product - limits simultaneous device activations:

```javascript
const product = await creem.products.create({
  name: 'Desktop App License',
  price: 4900,
  currency: 'usd',
  license_config: {
    activations_limit: 3  // Max 3 devices per license
  }
});
```

## License Events (Webhooks)

- `license.activated` - Device activated
- `license.deactivated` - Device deactivated
- `license.expired` - License expired (subscription ended)

See `references/creem/webhooks.md` for webhook handling.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.