{"id":20093093,"url":"https://github.com/lottiefiles/tgskit","last_synced_at":"2025-07-27T03:33:43.813Z","repository":{"id":43167320,"uuid":"195906792","full_name":"LottieFiles/tgskit","owner":"LottieFiles","description":"Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.","archived":false,"fork":false,"pushed_at":"2022-10-19T05:59:03.000Z","size":113,"stargazers_count":68,"open_issues_count":4,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T04:40:46.840Z","etag":null,"topics":["bodymovin","lottie","stickers","telegram","tgs"],"latest_commit_sha":null,"homepage":null,"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/LottieFiles.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":"2019-07-09T01:01:48.000Z","updated_at":"2025-03-03T08:13:21.000Z","dependencies_parsed_at":"2022-08-30T11:11:40.111Z","dependency_job_id":null,"html_url":"https://github.com/LottieFiles/tgskit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LottieFiles/tgskit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LottieFiles%2Ftgskit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LottieFiles%2Ftgskit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LottieFiles%2Ftgskit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LottieFiles%2Ftgskit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LottieFiles","download_url":"https://codeload.github.com/LottieFiles/tgskit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LottieFiles%2Ftgskit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267294180,"owners_count":24065343,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["bodymovin","lottie","stickers","telegram","tgs"],"created_at":"2024-11-13T16:45:50.861Z","updated_at":"2025-07-27T03:33:43.786Z","avatar_url":"https://github.com/LottieFiles.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Telegram Sticker Kit by LottieFiles\n\nToolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations\n\n## Installation\n\n#### In HTML, import from CDN or from the local Installation:\n\n##### Lottie Player:\n- Import from CDN.\n```html\n\u003cscript src=\"https://unpkg.com/@lottiefiles/tgskit@0.0.4/dist/tgskit.js\"\u003e\u003c/script\u003e\n```\n\n- Import from local node_modules directory.\n```html\n\u003cscript src=\"/node_modules/@lottiefiles/tgskit/dist/tgskit.js\"\u003e\u003c/script\u003e\n```\n\n#### In Javascript or TypeScript:\n\n1. Install package using npm or yarn.\n```shell\nnpm install --save @lottiefiles/tgskit\n```\n\n2. Import package in your code.\n```javascript\nimport { TGSKit } from '@lottiefiles/tgskit';\n```\n\n## Usage\n\n```js\nconst anim = new TGSKit();\n\nanim.load('http://localhost:1234/bodymovin.json')\n  .then(() =\u003e {\n    const errors = anim.validate();\n\n    if (errors.length === 0) {\n      anim.download('sticker');\n    } else {\n      console.log('Given JSON does not meet requirements for a TGS:');\n      console.log(errors);\n    }\n  })\n  .catch(err =\u003e {\n    console.log('There was an error loading the src resource', err);\n  });\n```\n\n## Docs\n\nTGSKit class documentation is available in the /docs/ directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flottiefiles%2Ftgskit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flottiefiles%2Ftgskit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flottiefiles%2Ftgskit/lists"}