{"id":49341317,"url":"https://github.com/redborder/license-generator","last_synced_at":"2026-04-27T04:03:56.662Z","repository":{"id":143877268,"uuid":"89237140","full_name":"redBorder/license-generator","owner":"redBorder","description":"Simple script for generating demo licenses using a RESTful API","archived":false,"fork":false,"pushed_at":"2026-04-15T10:36:23.000Z","size":277,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-04-15T12:27:08.909Z","etag":null,"topics":["license-server"],"latest_commit_sha":null,"homepage":"http://petstore.swagger.io/?url=https://redborder.github.io/license-generator/swagger.yaml","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redBorder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-04-24T12:23:45.000Z","updated_at":"2024-12-14T15:34:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6d35249-b81d-4cff-92c1-097b5a275726","html_url":"https://github.com/redBorder/license-generator","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/redBorder/license-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Flicense-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Flicense-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Flicense-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Flicense-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redBorder","download_url":"https://codeload.github.com/redBorder/license-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redBorder%2Flicense-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32321945,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["license-server"],"created_at":"2026-04-27T04:03:55.866Z","updated_at":"2026-04-27T04:03:56.655Z","avatar_url":"https://github.com/redBorder.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/redBorder/license-generator.svg?branch=master)](https://travis-ci.org/redBorder/license-generator)\n[![Coverage Status](https://coveralls.io/repos/github/redBorder/license-generator/badge.svg?branch=master)](https://coveralls.io/github/redBorder/license-generator?branch=master)\n[![Documentation](https://img.shields.io/badge/api-documentation-blue.svg)](https://redborder.github.io/license-generator/)\n\n# License Generator\n\n## Overview\n\nThis is the **redBorder License Generator**. It's a simple script for generating\ndemo licenses using a RESTful API.\n\nThe API can be used to request demo licenses valid for 30 days for a\ncluster. **Only one license per cluster is allowed**.\n\n## Install\n\nA mariadb instance running is required. Just clone the repo and then:\n\n```bash\nnpm install\nnpm run build\n```\n\n### Configuration\n\nThe configuration is done using environment variables:\n\n- `DB_DATABASE (\"licenses\")`: Name of the database.\n- `DB_HOST (\"mariadb\")`: Hostname where the database is running.\n- `DB_PASSWORD (\"qwerty\")`: Password for the database connection.\n- `DB_PORT (3306)`: Port for the connection to the database.\n- `DB_USERNAME (\"root\")`: Username for the connection to the database.\n- `LOG_LEVEL (\"info\")`: Allowed: [\"error\", \"warn\", \"info\", \"debug\", \"trace\"].\n- `PORT (3000)`: Por to listen for HTTP connections.\n- `PRIVATE_KEY (\"\")`: Private key for signing licenses. Should be on PEM format\nand must be separate by '\\n' chars. Example:\n```\n-----BEGIN RSA PRIVATE KEY-----\\nMIICXAIBAAKBgQCqGKukO1De7zhZj6+H0qtjTkVxwTCpvKe4eCZ0FPqri0cb2JZfXJ/DgYSF6vUp\\n...\n```\n\n### Using Docker\n\nRunning with docker compose:\n\n```yaml\nversion: '2'\n\nservices:\n  server:\n    image: redborder/license-generator\n    environment:\n      - PRIVATE_KEY=\"\u003cyour private key here\u003e\"\n\n  mariadb:\n    image: mariadb\n    environment:\n      - MYSQL_DATABASE=\"licenses\"\n      - MYSQL_ROOT_PASSWORD=qwerty\n```\n\n## Usage\n\nFirst, you need to run the server:\n\n```bash\nenv PRIVATE_KEY=\"PRIVATE KEY GOES HERE\" npm run app\n```\n\nTo get a license you can simply `POST` to the `/api/v1/licenses` sending a\ncluster UUID.\n\n```\nPOST /api/v1/licenses\nContent-Type: application/json\n\n{\"cluster_uuid\": \"dfe7e4a8-5d2d-4835-b381-926085802e98\"}\n```\n\nYou can test it with curl:\n\n```bash\ncurl -X POST \\\n  http://localhost:3000/api/v1/licenses \\\n  -H 'content-type: application/json' \\\n  -d '{\"cluster_uuid\": \"dfe7e4a8-5d2d-4835-b381-926085802e98\"}'\n```\n\nFor more information check [documentation](https://redborder.github.io/license-generator/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Flicense-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredborder%2Flicense-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredborder%2Flicense-generator/lists"}