{"id":37021078,"url":"https://github.com/cloudflightio/spdx-catalog","last_synced_at":"2026-01-14T02:28:29.690Z","repository":{"id":40372828,"uuid":"468892633","full_name":"cloudflightio/spdx-catalog","owner":"cloudflightio","description":"Wraps the SPDX license list into an archive and includes a Kotlin wrapper for typesafe access","archived":false,"fork":false,"pushed_at":"2024-04-22T07:38:57.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-02T02:08:54.951Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudflightio.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}},"created_at":"2022-03-11T20:35:35.000Z","updated_at":"2024-04-22T07:39:01.000Z","dependencies_parsed_at":"2024-04-22T08:46:47.639Z","dependency_job_id":"940689bf-5ea3-47b2-93d5-5a09cf5fe681","html_url":"https://github.com/cloudflightio/spdx-catalog","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/cloudflightio/spdx-catalog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fspdx-catalog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fspdx-catalog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fspdx-catalog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fspdx-catalog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudflightio","download_url":"https://codeload.github.com/cloudflightio/spdx-catalog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudflightio%2Fspdx-catalog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T02:28:29.037Z","updated_at":"2026-01-14T02:28:29.685Z","avatar_url":"https://github.com/cloudflightio.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":" # SPDX Catalog\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-green.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Maven Central](https://img.shields.io/maven-central/v/io.cloudflight.license.spdx/spdx-catalog.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.cloudflight.license.spdx/spdx-catalog)\n\nBundles the latest version of the [SPDX Licence List](https://spdx.org/licenses/) in a JSON format\nas provided [here](https://github.com/spdx/license-list-data/tree/main/json).\n\nAdditionaly, it comes with a small [Kotlin](https://kotlinlang.org/) library powered by Kotlin Serialization\nwhich provides a convenient and typed access to that catalog.\n\nSo for example, for the `Apache-2.0` license you have access to the following data:\n\n```\nSpdxLicense(\n    reference=https://spdx.org/licenses/Apache-2.0.html, \n    isDeprecatedLicenseId=false, \n    detailsUrl=https://spdx.org/licenses/Apache-2.0.json, \n    referenceNumber=382, \n    name=Apache License 2.0, \n    licenseId=Apache-2.0, \n    seeAlso=[https://www.apache.org/licenses/LICENSE-2.0, https://opensource.org/licenses/Apache-2.0], \n    isOsiApproved=true, \n    isFsfLibre=true\n)\n```\n\n## How to install\n\nThis library is being pushed to Maven Central, so you can grab it i.e. with Gradle:\n\n````groovy\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation('io.cloudflight.license.spdx:spdx-catalog:3.16.6')\n}\n````\n\n## How to use\n\nYour entry class is the singleton `io.cloudflight.license.spdx.SpdxLicenses`.\n\nFor example:\n\n````kotlin\nimport io.cloudflight.license.spdx.SpdxLicenses\n\nprintln(SpdxLicenses.findById(\"0BSD\"))\n\nval license = SpdxLicenses.findByDescription(\"The Apache Software License, Version 2.0\")\nprintln(license?.licenseId)\n````\n\nwill print `BSD Zero Clause License` \n\nand\n\n````kotlin\nimport io.cloudflight.license.spdx.SpdxLicenses\n\nval license = SpdxLicenses.findByDescription(\"The Apache Software License, Version 2.0\")\nprintln(license?.licenseId)\n````\n\nwill print `Apache-2.0`.\n\nThe library also normalizes different variants of license description names, therefore also the following code works:\n\n````kotlin\nimport io.cloudflight.license.spdx.SpdxLicenses\n\nval license = SpdxLicenses.findByDescription(\"Apache License v2.0\")\nprintln(license?.licenseId)\n````\n\nThis will print `Apache-2.0` as well.\n\n## How to contribute\n\nAlways keep the version of that [SPDX list](https://github.com/spdx/license-list-data/tree/main/json) in sync with the version of this module.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflightio%2Fspdx-catalog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudflightio%2Fspdx-catalog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudflightio%2Fspdx-catalog/lists"}