{"id":16516095,"url":"https://github.com/sketchingdev/feedbaby-client","last_synced_at":"2026-05-13T04:04:00.438Z","repository":{"id":40687027,"uuid":"251119788","full_name":"SketchingDev/feedbaby-client","owner":"SketchingDev","description":"Client library for the FeedBaby app","archived":false,"fork":false,"pushed_at":"2023-01-05T10:42:38.000Z","size":1172,"stargazers_count":0,"open_issues_count":12,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-13T10:37:42.432Z","etag":null,"topics":["feedbaby","library","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SketchingDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-29T19:48:19.000Z","updated_at":"2021-10-16T20:26:43.000Z","dependencies_parsed_at":"2023-02-04T01:45:29.177Z","dependency_job_id":null,"html_url":"https://github.com/SketchingDev/feedbaby-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchingDev%2Ffeedbaby-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchingDev%2Ffeedbaby-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchingDev%2Ffeedbaby-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SketchingDev%2Ffeedbaby-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SketchingDev","download_url":"https://codeload.github.com/SketchingDev/feedbaby-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241541451,"owners_count":19979121,"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":["feedbaby","library","nodejs"],"created_at":"2024-10-11T16:19:28.497Z","updated_at":"2026-05-13T04:04:00.354Z","avatar_url":"https://github.com/SketchingDev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FeedBaby Client\n\n[![npm](https://img.shields.io/npm/v/feedbaby-client)](https://www.npmjs.com/package/feedbaby-client)\n![](https://github.com/SketchingDev/feedbaby-client/workflows/On%20Push/badge.svg)\n[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/SketchingDev/feedbaby-client.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/SketchingDev/feedbaby-client/context:javascript)\n\nFeedBaby is an exceptionally useful app for tracking aspects of raising a child, such as time and duration of feeds.\nI've found it so useful in fact that I've created this client library to allow you to communicate with its API.\n\n## Features\n\n * Ping the server\n * Register a new device\n * Retrieve/Upload Baby's data (incomplete, see below)\n * Determine the version of the synchronised data\n  \n_The library will currently only let you download the data the first time you provide a new device ID. I'm yet to\ndetermine why subsequent calls with a known device ID fail._\n\n## Warning!\n\n**Backup your Baby's data before using this library**.\n\nUnfortunately FeedBaby's API doesn't make it possible to read your data without potentially modifying it. This is \nbecause the endpoint for downloading your baby's data also requires you to upload it - except for the first\ntime a new device downloads the data.\n\n## Usage\n\nExamples can be found in [./examples](./examples).\n\n```ts\nconst auth: Authentication = {\n    passphrase: 'example',\n    dateOfBirth: new Date('10-10-2019'),\n};\n\nconst feedBaby = new FeedBabyClient();\nfeedBaby.ping().then(async () =\u003e {\n    const newDevice = Device.create();\n    const mergedData = await feedBaby.merge(auth, newDevice);\n\n    const medicines = await mergedData.getMedicines();\n    console.log(\"Medicines\", medicines);\n});\n```\n\n## Development\n\n### How to publish a release\n\n1. Merge functionality to master along with an increase in the package's version\n2. Create a release in GitHub - the version will be the package's version prefixed with 'v'\n\nCreating the release with trigger the [GitHub workflow](./.github/workflows/on-release.yml) that will publish to npmjs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketchingdev%2Ffeedbaby-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsketchingdev%2Ffeedbaby-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketchingdev%2Ffeedbaby-client/lists"}