{"id":18488114,"url":"https://github.com/openfoodfacts/openfoodfacts-nodejs","last_synced_at":"2025-04-08T09:09:12.758Z","repository":{"id":27872180,"uuid":"115103771","full_name":"openfoodfacts/openfoodfacts-nodejs","owner":"openfoodfacts","description":"Official Node package for Open Food Facts","archived":false,"fork":false,"pushed_at":"2025-03-31T19:18:40.000Z","size":6884,"stargazers_count":175,"open_issues_count":18,"forks_count":36,"subscribers_count":16,"default_branch":"develop","last_synced_at":"2025-04-01T08:44:06.133Z","etag":null,"topics":["food","hacktoberfest","nodejs","openfoodfacts"],"latest_commit_sha":null,"homepage":"https://openfoodfacts.github.io/openfoodfacts-nodejs/","language":"TypeScript","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/openfoodfacts.png","metadata":{"funding":{"patreon":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"open_collective":"openfoodfacts-server","github":"openfoodfacts","custom":"https://donate.openfoodfacts.org"},"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-22T10:12:06.000Z","updated_at":"2025-03-29T11:54:51.000Z","dependencies_parsed_at":"2023-10-16T04:22:51.351Z","dependency_job_id":"980dffbc-344e-4cdc-bdde-987fcabb1332","html_url":"https://github.com/openfoodfacts/openfoodfacts-nodejs","commit_stats":{"total_commits":271,"total_committers":16,"mean_commits":16.9375,"dds":0.5424354243542435,"last_synced_commit":"eb94452503d58f602f20fd947547476851fea36d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfoodfacts%2Fopenfoodfacts-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfoodfacts%2Fopenfoodfacts-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfoodfacts%2Fopenfoodfacts-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openfoodfacts%2Fopenfoodfacts-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openfoodfacts","download_url":"https://codeload.github.com/openfoodfacts/openfoodfacts-nodejs/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246748865,"owners_count":20827401,"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":["food","hacktoberfest","nodejs","openfoodfacts"],"created_at":"2024-11-06T12:51:17.263Z","updated_at":"2025-04-08T09:09:12.718Z","avatar_url":"https://github.com/openfoodfacts.png","language":"TypeScript","funding_links":["https://opencollective.com/openfoodfacts-server","https://github.com/sponsors/openfoodfacts","https://donate.openfoodfacts.org"],"categories":["TypeScript"],"sub_categories":[],"readme":"# Open Food Facts - JS SDK\n\nThis is the official JS/TS SDK for the Open Food Facts API.\n\n## Installation\n\n### Development version\n\n```shell\nnpm install git+https://github.com/openfoodfacts/openfoodfacts-nodejs.git\n# or\nyarn add git+https://github.com/openfoodfacts/openfoodfacts-nodejs.git\n# or\npnpm add git+https://github.com/openfoodfacts/openfoodfacts-nodejs.git\n```\n\n#### Example code snippet:\n\n```ts\nimport OpenFoodFacts from \"openfoodfacts-nodejs\";\n\nconst client = new OpenFoodFacts();\nclient.getProduct(\"5000112546415\").then((it) =\u003e console.log(it));\n```\n\n## Development\n\n### Prerequisites\n\n- Node.js\n- Yarn v4\n\n### API bindings\n\nThe project uses [openapi-typescript](https://github.com/drwpow/openapi-typescript) to generate the API bindings automatically from the OpenAPI specification.\n\nTo generate the API bindings, run `yarn api`.\nThe files are to be committed to the repository, so that the SDK can be used without having to download the specs every time.\n\n### Building\n\n- Clone the repository and run `yarn install` in the directory.\n- Run `yarn build` to generate the OpenAPI bindings and build the project.\n- Run `yarn test` to run the tests.\n\n## Contribute\n\nWe accept contributions of any kind: new features, bug fixes, documentation improvements, etc.\n\nYou can also help us by reporting bugs, suggesting improvements or testing new features.\n\nWhen submitting a PR, please use the [angular commit guideline](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits).\n\n## Third party applications\n\nIf you use this SDK, feel free to open a PR to add your application in this list.\n\n- openfoodfacts-explorer : https://github.com/openfoodfacts/openfoodfacts-explorer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfoodfacts%2Fopenfoodfacts-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenfoodfacts%2Fopenfoodfacts-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenfoodfacts%2Fopenfoodfacts-nodejs/lists"}