{"id":28097977,"url":"https://github.com/hoshinorei/typescript-bark-sdk","last_synced_at":"2026-04-05T09:01:50.809Z","repository":{"id":188883183,"uuid":"667056814","full_name":"HoshinoRei/typescript-bark-sdk","owner":"HoshinoRei","description":"An SDK for Bark written in TypeScript","archived":false,"fork":false,"pushed_at":"2026-04-04T12:52:33.000Z","size":1445,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-04T13:23:17.682Z","etag":null,"topics":["bark","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@hoshinorei/bark-sdk","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/HoshinoRei.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-16T13:55:20.000Z","updated_at":"2026-04-04T12:20:21.000Z","dependencies_parsed_at":"2024-02-14T05:27:10.245Z","dependency_job_id":"5c1645b7-5df9-406e-b0e6-8abded461009","html_url":"https://github.com/HoshinoRei/typescript-bark-sdk","commit_stats":null,"previous_names":["hoshinorei/typescript-bark-sdk"],"tags_count":9,"template":false,"template_full_name":"HoshinoRei/typescript-npm-package-template","purl":"pkg:github/HoshinoRei/typescript-bark-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoshinoRei%2Ftypescript-bark-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoshinoRei%2Ftypescript-bark-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoshinoRei%2Ftypescript-bark-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoshinoRei%2Ftypescript-bark-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HoshinoRei","download_url":"https://codeload.github.com/HoshinoRei/typescript-bark-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HoshinoRei%2Ftypescript-bark-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31430011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T08:13:15.228Z","status":"ssl_error","status_checked_at":"2026-04-05T08:13:11.839Z","response_time":75,"last_error":"SSL_read: 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":["bark","typescript"],"created_at":"2025-05-13T17:45:47.025Z","updated_at":"2026-04-05T09:01:50.804Z","avatar_url":"https://github.com/HoshinoRei.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Typescript Bark SDK\n\n## Introduction\n\nAn SDK for [Bark](https://github.com/Finb/Bark) written in TypeScript.\n\n### Features\n\n- Using Bark V2 API\n- Encrypted push\n- Working in the browser and Node.js\n- Check if the Bark server is healthy\n- Check if the Bark server is running\n- Get Bark server information\n\n### Getting started\n\n#### Install\n\n##### pnpm\n\n```shell\npnpm add @hoshinorei/bark-sdk\n```\n\n##### Yarn\n\n```shell\nyarn add @hoshinorei/bark-sdk\n```\n\n##### npm\n\n```shell\nnpm i @hoshinorei/bark-sdk\n```\n\n#### Push a simple message\n\n```ts\nimport { BarkClient, BarkMessageBuilder } from \"@hoshinorei/bark-sdk\"\n\nconst barkClient = new BarkClient(\"\u003cyour_bark_server_url\u003e\")\n\nbarkClient.push(\n  new BarkMessageBuilder()\n    .body(\"\u003cyour_body\u003e\")\n    .deviceKey(\"\u003cyour_device_key\u003e\")\n    .title(\"\u003cyour_title\u003e\")\n    .build(),\n)\n```\n\n#### Push an encrypted message\n\n```ts\nimport {\n  BarkClient,\n  BarkEncryptedPushAlgorithm,\n  BarkMessageBuilder,\n} from \"@hoshinorei/bark-sdk\"\n\nconst barkClient = new BarkClient(\"\u003cyour_bark_server_url\u003e\")\n\nbarkClient.pushEncrypted(\n  \"\u003cyour_device_key\u003e\",\n  new BarkMessageBuilder().body(\"\u003cyour_body\u003e\").title(\"\u003cyour_title\u003e\").build(),\n  BarkEncryptedPushAlgorithm.AES_128_CBC, // You can view the supported algorithms via the link below\n  \"\u003cyour_key\u003e\",\n  \"\u003cyour_iv\u003e\",\n)\n```\n\n[Supported algorithm](https://github.com/HoshinoRei/typescript-bark-sdk/wiki/BarkEncryptedPushAlgorithm#enumeration-members)\n\nFor More usage, please read [wiki](https://github.com/HoshinoRei/typescript-bark-sdk/wiki/Exports).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoshinorei%2Ftypescript-bark-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoshinorei%2Ftypescript-bark-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoshinorei%2Ftypescript-bark-sdk/lists"}