{"id":23679205,"url":"https://github.com/reslear/dotlottie-player-core","last_synced_at":"2026-02-27T08:33:53.447Z","repository":{"id":66337561,"uuid":"551464440","full_name":"reslear/dotlottie-player-core","owner":"reslear","description":"dotLottie player core","archived":false,"fork":false,"pushed_at":"2024-03-25T13:58:41.000Z","size":215,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-04-28T01:29:22.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"dotlottie-player-core-playground.vercel.app","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/reslear.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-10-14T12:58:03.000Z","updated_at":"2023-03-02T21:33:31.000Z","dependencies_parsed_at":"2024-10-24T02:18:33.141Z","dependency_job_id":null,"html_url":"https://github.com/reslear/dotlottie-player-core","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reslear%2Fdotlottie-player-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reslear%2Fdotlottie-player-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reslear%2Fdotlottie-player-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reslear%2Fdotlottie-player-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reslear","download_url":"https://codeload.github.com/reslear/dotlottie-player-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231766917,"owners_count":18423587,"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":[],"created_at":"2024-12-29T17:32:26.391Z","updated_at":"2026-02-27T08:33:48.407Z","avatar_url":"https://github.com/reslear.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dotLottie-player-core\n\nOnly fetching and parse functions.\n\n[![npm](https://img.shields.io/npm/v/@reslear/dotlottie-player-core)](https://www.npmjs.com/package/@reslear/dotlottie-player-core)\n[![npm](https://img.shields.io/npm/dw/@reslear/dotlottie-player-core)](https://www.npmjs.com/package/@reslear/dotlottie-player-core)\n![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/npm/%40reslear%2Fdotlottie-player-core)\n![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40reslear%2Fdotlottie-player-core)\n[![install size](https://packagephobia.com/badge?p=@reslear/dotlottie-player-core)](https://packagephobia.com/result?p=@reslear/dotlottie-player-core)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n![](./splash.png)\n\n\u003ccenter\u003e\n\n🕹 [**Live Playground**](https://dotlottie-player-core-playground.vercel.app)\n\n\u003c/center\u003e\n\n## Features\n\n- 🏎 High performance (using [`fflate`](https://github.com/101arrowz/fflate))\n- ⚙️ [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) based\n- 📦 **CJS** and **ESM** support\n- 💪 fylly typed with **TypeScript**\n- 🏋️‍♀️ Lightweight with **~13kb** size\n\n## Install\n\n```bash\npnpm add @reslear/dotlottie-player-core\n```\n\n## Usage\n\n### fetchLottie\n\nfetch method for get animation and parse to lottie json.\n\n```ts\nimport { fetchLottie } from '@reslear/dotlottie-player-core'\n\nconst lottieJson = await fetchLottie('/my-animation.lottie')\n\n// {\"v\":\"5.6.8\",\"fr\":24,\"ip\":0,\"op\":144,\"w\":2161,\"h\"...}\n```\n\n#### Arguments:\n\n1. **`url`** - path to `.lottie`, `.json` animation file\n\nalso support [base64 data URI](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs)\n\n```ts\nfetchLottie('data:application/json;base64,\u003cbase64\u003e')\n```\n\n2. **`fetchOptions`** - Fetch API [options](https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)\n\n```ts\nfetchLottie(url, {\n  mode: 'no-cors',\n})\n```\n\n## Inspired\n\n- [dotlottie-player](https://github.com/dotlottie/player-component/blob/master/src/dotlottie-player.ts)\n\n## License\n\nMIT by [@reslear](github.com/reslear)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freslear%2Fdotlottie-player-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freslear%2Fdotlottie-player-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freslear%2Fdotlottie-player-core/lists"}