{"id":37019981,"url":"https://github.com/concordant/c-crdtlib","last_synced_at":"2026-01-14T02:14:28.045Z","repository":{"id":57731596,"uuid":"339753858","full_name":"concordant/c-crdtlib","owner":"concordant","description":"The Concordant Conflict-Free Replicated Datatypes (CRDT) library.","archived":false,"fork":false,"pushed_at":"2022-09-17T14:56:54.000Z","size":1379,"stargazers_count":30,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-03T21:05:20.951Z","etag":null,"topics":["concordant","conflict-free","crdt","crdt-implementations","crdts","replicated-data-types"],"latest_commit_sha":null,"homepage":"https://concordant.io","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/concordant.png","metadata":{"files":{"readme":"README.dev.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-17T14:42:42.000Z","updated_at":"2023-06-12T20:38:07.000Z","dependencies_parsed_at":"2023-01-18T12:26:53.409Z","dependency_job_id":null,"html_url":"https://github.com/concordant/c-crdtlib","commit_stats":null,"previous_names":[],"tags_count":8,"template":null,"template_full_name":null,"purl":"pkg:github/concordant/c-crdtlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concordant%2Fc-crdtlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concordant%2Fc-crdtlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concordant%2Fc-crdtlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concordant%2Fc-crdtlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/concordant","download_url":"https://codeload.github.com/concordant/c-crdtlib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/concordant%2Fc-crdtlib/sbom","scorecard":{"id":302140,"data":{"date":"2025-08-11","repo":{"name":"github.com/concordant/c-crdtlib","commit":"d01d058fbe6aa274a22934cfebd2742b8deb77f3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/mirror.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/mirror.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/concordant/c-crdtlib/mirror.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/mirror.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/concordant/c-crdtlib/mirror.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-17T20:57:10.768Z","repository_id":57731596,"created_at":"2025-08-17T20:57:10.768Z","updated_at":"2025-08-17T20:57:10.768Z"},"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":["concordant","conflict-free","crdt","crdt-implementations","crdts","replicated-data-types"],"created_at":"2026-01-14T02:14:27.355Z","updated_at":"2026-01-14T02:14:28.030Z","avatar_url":"https://github.com/concordant.png","language":"Kotlin","readme":"# About this repository\n\nDevelopment versions of this library\nare delivered as both a [Maven package](https://mavenlibs.com/maven/dependency/io.concordant/c-crdtlib) and an [NPM package](https://www.npmjs.compackage/@concordant/c-crdtlib).\n\n## Requirements\n\n- The kotlin-multiplatform gradle plugin needs [Gradle](https://gradle.org/install/) 6.0 or later.\n- Make sure you have a recent version of [Node.js](https://nodejs.org/en/download/) (required to generate Javascript).\n\n## Files\n\n### Build, configuration, metadata\n\n- `LICENSE`\n- `README.md` Doc: user\n- `README.dev.md` Doc: developer\n- `.git/` Config: Git\n- `.gitignore`\n- `settings.gradle.kts` Config: Gradle: project name\n- `build.gradle.kts` Config: Gradle: metadata, dependencies,\n  publications, config (Kotlin, kotest, ktlint)\n- `pre-commit` Git pre-commit lint script;\n  installed by `gradle assemble` (task `installGitHook`)\n- `.editorconfig` Config: ktlint (\u0026 IDE)\n- `.gitlab-ci.yml` Config: continuous integration\n\n### Code\n\n- `src/` Code\n  - `commonMain/` Source code common to all platforms\n  - `commonTest/` Tests  code common to all platforms\n    - `kotlin/crdtlib/utils/`\n      - `CustomGenerators.kt` Generators for property-based tests\n    - `**/*PropTest.kt` Property-based tests\n    - `**/*Test.kt` Tests\n  - `jvmMain/` Source code for JVM target\n    - `kotlin/crdtlib/GenerateTS.kt`\n      TS typings (`*.d.ts`) generator\n  - `nodeJsMain/` Source code for JavaScript target\n\n### Artifacts (untracked)\n\n- `build/` Project artifacts\n  - `reports/tests/allTests/` Tests results,\n    created and populated by `gradle allTests`\n  - `build/dokka/html/crdtlib/` Auto-generated documentation,\n    created and populated by `gradle dokkaHtml`\n  - `libs/` Maven packages\n  - `publications/npm/nodeJs/` NPM package\n  - … (non exhaustive)\n- `.gradle/` Gradle project cache\n\n## Build project\n\nThe build is managed by Gradle.\nKotlin sources (code and tests) are compiled to JVM Bytecode,\nand to Javascript as a Node.js package.\n\n`gradle assemble`:\n\n- compiles code and tests to JVM Bytecode;\n- compiles code and tests to Javascript (Node.js module);\n- creates a TypeScript interface\n- assembles Maven packages\n\n`gradle allTests`:\n\n- runs JVM test suite;\n- runs Node.js test suite in a server like manner;\n- generate tests reports.\n\n`gradle pack`:\n\n- pack the NPM package\n\n`gradle publish`:\n\n- publish the Maven and NPM packages to the Gitlab Packages registry (requires authentication ; better use it via CI pipelines).\n\n`gradle dokkaHtml`:\n\n- creates the HTML documentation from code comments. See `gradle tasks` for variants other than HTML.\n\n`gradle clean`:\n\n- cleans the project.\n\n`gradle tasks`:\n\n- show all available tasks with descriptions.\n\n## Getting Started with private Gitlab packages registry\n\nThis library is delivered as both a Maven package and an NPM package\nin a private [Gitlab Packages registry](\nhttps://gitlab.inria.fr/concordant/software/c-crdtlib/-/packages).\n\nTo use it, you will need to authenticate to Gitlab, using either:\n\n- a Gitlab [deploy token](https://docs.gitlab.com/ee/user/project/deploy_tokens/) with at least the `read_package_registry` scope, or\n- a Gitlab [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with at least the `read_api` scope.\n\n### Kotlin and Gradle\n\nTo setup authentication, add the token to your gradle properties file\n`~/.gradle/gradle.properties`:\n\n``` shell\ngitlabToken=\u003cdeployOrPersonalToken\u003e\n```\n\nThen, in your project configuration build file `build.gradle.kts`:\n\n- Ensure `mavenCentral()` is listed in the `repositories{}` for usual packages.\n- Add Gitlab to repositories:\n\n``` kotlin\nrepositories {\n    maven(url = \"https://jitpack.io\")\n    maven {\n        url = uri(\"https://gitlab.inria.fr/api/v4/projects/18591/packages/maven\")\n        credentials(HttpHeaderCredentials::class) {\n            // set to \"Deploy-Token\" here if appropriate\n            name = \"Private-Token\"\n            val gitlabToken: String by project\n            value = gitlabToken\n        }\n        authentication {\n            create\u003cHttpHeaderAuthentication\u003e(\"header\")\n        }\n    }\n}\n```\n\n- Add the c-crdtlib Maven package as a dependency:\n\n``` kotlin\ndependencies {\n    implementation(\"concordant:c-crdtlib:x.y.z\")\n}\n```\n\n### JavaScript/TypeScript and NPM\n\n#### Installation\n\nFirst setup authentication:\n\n``` shell\nnpm config set @concordant:registry \"https://gitlab.inria.fr/api/v4/packages/npm/\"\nnpm config set '//gitlab.inria.fr/api/v4/packages/npm/:_authToken' \"\u003cdeployOrPersonalToken\u003e\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcordant%2Fc-crdtlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconcordant%2Fc-crdtlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconcordant%2Fc-crdtlib/lists"}