{"id":30138281,"url":"https://github.com/nodef/infoods","last_synced_at":"2026-03-11T14:38:02.852Z","repository":{"id":57118648,"uuid":"226577536","full_name":"nodef/infoods","owner":"nodef","description":"Kit for International Network of Food Data Systems (INFOODS).","archived":false,"fork":false,"pushed_at":"2025-05-12T13:57:02.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T15:26:39.207Z","etag":null,"topics":["component","data","food","identifier","infoods","international","network","systems","tagnames"],"latest_commit_sha":null,"homepage":"https://jsr.io/@nodef/infoods","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/nodef.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}},"created_at":"2019-12-07T21:20:45.000Z","updated_at":"2025-05-12T13:57:06.000Z","dependencies_parsed_at":"2025-04-20T13:17:11.053Z","dependency_job_id":null,"html_url":"https://github.com/nodef/infoods","commit_stats":null,"previous_names":["nodef/infoods","infoods/tagnames"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nodef/infoods","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Finfoods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Finfoods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Finfoods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Finfoods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/infoods/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Finfoods/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30384106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T14:10:17.325Z","status":"ssl_error","status_checked_at":"2026-03-11T14:09:37.934Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["component","data","food","identifier","infoods","international","network","systems","tagnames"],"created_at":"2025-08-11T01:05:56.964Z","updated_at":"2026-03-11T14:38:02.834Z","avatar_url":"https://github.com/nodef.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Copyright (C) 2025 Subhajit Sahu --\u003e\n\u003c!-- SPDX-License-Identifier: AGPL-3.0-or-later --\u003e\n\u003c!-- See LICENSE for full terms --\u003e\n\nKit for International Network of Food Data Systems ([INFOODS]).\n\nThis package provides utilities for accessing standardized food composition data, including abbreviation resolution (e.g., expanding `GLVs` to `Green Leafy Vegetables`) and nutrient tagname lookups (e.g., mapping `vitamin C` to its INFOODS code `VITC`), with functions to load datasets, generate SQL/CSV schemas, and query terms through flexible pattern matching.\n\n▌\n📦 [JSR](https://jsr.io/@nodef/infoods),\n📰 [Docs](https://jsr.io/@nodef/infoods/doc).\n\n\u003cbr\u003e\n\n\n```javascript\nimport * as infoods from \"jsr:@nodef/infoods\";\n// infoods.loadAbbreviations(): Map {key =\u003e {abbr, full}}\n// infoods.abbreviationsSql([table], [options]): SQL commands to create abbreviations table\n// infoods.abbreviationsCsv(): Path to csv file\n// infoods.abbreviations(\u003cquery\u003e)\n// → {abbr, full} if supported, null otherwise.\n\n\nawait infoods.loadAbbreviations();\n// Load corpus first\n\ninfoods.abbreviations('GLVs');\ninfoods.abbreviations('g l v s');\n// → Green Leafy Vegetables\n\ninfoods.abbreviations('what is D.R.I.');\ninfoods.abbreviations('d. r. i. stands for?');\n/* (full stops must immediately follow character, if present) */\n/* (for single character abbreviations, full stop is mandatory) */\n// → Dietary reference intake\n```\n\n```javascript\nimport * as infoods from \"jsr:@nodef/infoods\";\n// infoods.loadTagnames(): Map {code =\u003e {code, name, synonyms, unit, tables, comments, examples}}\n// infoods.tagnamesSql([table], [options]): SQL commands to create tagnames table\n// infoods.tagnamesCsv(): Path to csv file\n// infoods.tagnames(\u003cquery\u003e)\n// → [{code, name, synonyms, unit, tables, comments, examples}] for matched tagnames\n\n\nawait infoods.loadTagnames();\n// Load corpus first\n\ninfoods.tagnames('vitamin c');\ninfoods.tagnames('c-vitamin');\n// → [\n// →   {\n// →     code: 'VITC',\n// →     name: 'vitamin C',\n// →     synonyms: 'ascorbic acid; ascorbate (Note that these terms are not true synonyms but are often found in food tables to refer to vitamin C.)',\n// →     unit: 'mg',\n// →     tables: 'USDA 401, SFK, MW, ETH, IND, NE, EA, PRC, DAN',\n// →     comments: 'L-ascorbic acid plus L- dehydroascorbic acid.',\n// →     examples: ''\n// →   },\n// →   ...\n// → ]\n\n\ninfoods.tagnames('what is butyric acid?');\ninfoods.tagnames('c4:0 stands for?');\n// → [\n// →   {\n// →     code: 'F4D0F',\n// →     name: 'fatty acid 4:0; expressed per quantity of total fatty acids',\n// →     synonyms: 'butyric acid; tetranoic acid',\n// →     unit: 'g/100 g fatty acid',\n// →     tables: 'MW, FRN, DAN, SWD',\n// →     comments: '',\n// →     examples: ''\n// →   },\n// →   ...\n// → ]\n```\n\n\u003cbr\u003e\n\n\n## License\n\nAs of 18 April 2025, this project is licensed under AGPL-3.0. Previous versions remain under MIT.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n[![](https://raw.githubusercontent.com/qb40/designs/gh-pages/0/image/11.png)](https://wolfram77.github.io)\u003cbr\u003e\n![](http://www.fao.org/typo3temp/pics/3e0b195db4.jpg)\n![](http://www.fao.org/typo3temp/pics/c668f2d5f2.jpg)\n![](http://www.fao.org/typo3temp/pics/57695feade.jpg)\n![](http://www.fao.org/typo3temp/pics/e4052a2c33.jpg)\u003cbr\u003e\n[![ORG](https://img.shields.io/badge/org-nodef-green?logo=Org)](https://nodef.github.io)\n![](https://ga-beacon.deno.dev/G-RC63DPBH3P:SH3Eq-NoQ9mwgYeHWxu7cw/github.com/nodef/infoods)\n\n\n[INFOODS]: http://www.fao.org/infoods/infoods/en/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Finfoods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Finfoods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Finfoods/lists"}