{"id":14483553,"url":"https://github.com/publicodes/tools","last_synced_at":"2025-03-20T07:30:52.888Z","repository":{"id":65231783,"uuid":"588175222","full_name":"publicodes/tools","owner":"publicodes","description":"Set of utility functions to write tooling for Publicodes models","archived":false,"fork":false,"pushed_at":"2024-04-24T18:46:31.000Z","size":1708,"stargazers_count":7,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T03:14:21.258Z","etag":null,"topics":["compilation","optimization","publicodes","utility-library"],"latest_commit_sha":null,"homepage":"https://publicodes.github.io/tools/","language":"TypeScript","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/publicodes.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}},"created_at":"2023-01-12T14:01:48.000Z","updated_at":"2024-05-08T14:38:27.421Z","dependencies_parsed_at":"2023-11-09T13:00:31.639Z","dependency_job_id":"11c1217b-de27-4da6-a2f1-14152ecedfd9","html_url":"https://github.com/publicodes/tools","commit_stats":null,"previous_names":["incubateur-ademe/publiopti","incubateur-ademe/publicodes-tools","datagir/publiopti","publicodes/tools"],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicodes%2Ftools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicodes%2Ftools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicodes%2Ftools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicodes%2Ftools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/publicodes","download_url":"https://codeload.github.com/publicodes/tools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244570572,"owners_count":20474093,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["compilation","optimization","publicodes","utility-library"],"created_at":"2024-09-03T00:01:51.527Z","updated_at":"2025-03-20T07:30:47.880Z","avatar_url":"https://github.com/publicodes.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch3 align=\"center\"\u003e\n\t\u003cbig\u003e\u003ccode\u003e@publicodes/tools\u003c/code\u003e\u003c/big\u003e\n  \u003c/h3\u003e\n  \u003cp align=\"center\"\u003e\n   \u003ca href=\"https://github.com/publicodes/tools/issues\"\u003eReport Bug\u003c/a\u003e\n   •\n   \u003ca href=\"https://publicodes.github.io/tools/\"\u003eAPI docs\u003c/a\u003e\n   •\n   \u003ca href=\"https://github.com/publicodes/tools/blob/master/CONTRIBUTING.md\"\u003eContribute\u003c/a\u003e\n   •\n   \u003ca href=\"https://publi.codes\"\u003ePublicodes\u003c/a\u003e\n  \u003c/p\u003e\n\n![CI][ci-link] ![NPM][npm-link]\n\nSet of utility functions that could be used to easily write tooling around [Publicodes](https://publi.codes) models.\n\n:warning: \u003ci\u003eThe project is not stable yet, don't hesitate [to open an issue](https://github.com/publicodes/tools/issues) if you face a problem!\u003c/i\u003e :warning:\n\n\u003c/div\u003e\n\n## Features\n\n- 🏗️ Compiles your set of Publicodes files into a standalone JSON file - [[doc](https://publicodes.github.io/tools/modules/compilation.html#md:compile-a-model-from-a-source)]\n- 📦 Resolves import from external Publicodes models, from source and from published [NPM packages](https://www.npmjs.com/package/futureco-data) - [[doc](https://publicodes.github.io/tools/modules/compilation.html#md:import-rules-from-a-npm-package)]\n- 🪶 Pre-computes your model at compile time and reduces [the number of rules by ~65%](https://github.com/incubateur-ademe/nosgestesclimat/pull/1697) - [[doc](https://publicodes.github.io/tools/modules/optims.html)]\n- ➡️ Use a migration function for user situation to deal with breaking changes in your models - [[doc](https://publicodes.github.io/tools/modules/migration.html)]\n\n## Installation\n\n```\nnpm install --dev-dependency @publicodes/tools\n\nyarn add -D @publicodes/tools\n```\n\n## Usage in local\n\nWhen developing in local:\n\n1. you can link the local package with `yarn link`,\n2. launch the compilation in watch mode with `yarn watch`,\n3. and use it in your project with `yarn link @publicodes/tools`.\n\n[ci-link]: https://img.shields.io/github/actions/workflow/status/publicodes/tools/build.yml?logo=github\u0026logoColor=white\u0026label=build%20%26%20test\n[npm-link]: https://img.shields.io/npm/v/%40publicodes%2Ftools?logo=npm\u0026logoColor=white\u0026color=%23185dae\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicodes%2Ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpublicodes%2Ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicodes%2Ftools/lists"}