{"id":27135531,"url":"https://github.com/itpey/pathcodec","last_synced_at":"2025-10-07T08:07:11.928Z","repository":{"id":285640069,"uuid":"958841850","full_name":"itpey/pathcodec","owner":"itpey","description":"Go package for compressing and decompressing Telegram vector thumbnails.","archived":false,"fork":false,"pushed_at":"2025-04-01T22:23:44.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-21T19:58:51.625Z","etag":null,"topics":["animation","dotlottie","go","golang","lottie","lottie-animation","placeholder","svg","svg-path","telegram","tg","tgs","vector"],"latest_commit_sha":null,"homepage":"https://github.com/itpey/pathcodec","language":"Go","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/itpey.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}},"created_at":"2025-04-01T21:14:10.000Z","updated_at":"2025-04-01T22:17:45.000Z","dependencies_parsed_at":"2025-06-03T06:16:09.770Z","dependency_job_id":null,"html_url":"https://github.com/itpey/pathcodec","commit_stats":null,"previous_names":["itpey/pathcodec"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itpey/pathcodec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itpey%2Fpathcodec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itpey%2Fpathcodec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itpey%2Fpathcodec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itpey%2Fpathcodec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itpey","download_url":"https://codeload.github.com/itpey/pathcodec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itpey%2Fpathcodec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278740839,"owners_count":26037481,"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-10-07T02:00:06.786Z","response_time":59,"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":["animation","dotlottie","go","golang","lottie","lottie-animation","placeholder","svg","svg-path","telegram","tg","tgs","vector"],"created_at":"2025-04-08T01:48:27.742Z","updated_at":"2025-10-07T08:07:11.909Z","avatar_url":"https://github.com/itpey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pathcodec\n\n[![Go Version][GoVer-Image]][GoDoc-Url] [![License MIT][License-Image]][License-Url] [![GoDoc][GoDoc-Image]][GoDoc-Url] [![Go Report Card][ReportCard-Image]][ReportCard-Url]\n\n[GoVer-Image]: https://img.shields.io/badge/Go-1.24%2B-blue\n[GoDoc-Url]: https://pkg.go.dev/github.com/itpey/pathcodec\n[GoDoc-Image]: https://pkg.go.dev/badge/github.com/itpey/pathcodec.svg\n[ReportCard-Url]: https://goreportcard.com/report/github.com/itpey/pathcodec\n[ReportCard-Image]: https://goreportcard.com/badge/github.com/itpey/pathcodec?style=flat\n[License-Url]: https://github.com/itpey/pathcodec/blob/main/LICENSE\n[License-Image]: https://img.shields.io/github/license/itpey/pathcodec\n\nA lightweight Go package for compressing and decompressing\n[Telegram vector thumbnails](https://core.telegram.org/api/files#vector-thumbnails).\n\n## Installation\n\n```sh\ngo get -u github.com/itpey/pathcodec\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/itpey/pathcodec\"\n)\n\nfunc main() {\n\tcompressed, err := pathcodec.Compress(\"M257,455c-56,0-109-25-146-65-143-156,31-397,224-318,201,83,136,386-78,383z\")\n\tif err != nil {\n\t\tfmt.Println(\"Compression error:\", err)\n\t\treturn\n\t}\n\tfmt.Println(\"Compressed:\", compressed)\n\n\tdecompressed, err := pathcodec.Decompress(compressed)\n\tif err != nil {\n\t\tfmt.Println(\"Decompression error:\", err)\n\t\treturn\n\t}\n\tfmt.Println(\"Decompressed:\", decompressed)\n}\n```\n\n## API\n\n### `func Compress(path string) ([]byte, error)`\n\nCompresses a path string into a compact byte format. The input must start with 'M' and end with 'z'.\n\n### `func Decompress(encoded []byte) (string, error)`\n\nDecompresses a byte slice back into a path string.\n\n## Feedback and Contributions\n\nIf you encounter any issues or have suggestions for improvement, please [open an issue](https://github.com/itpey/pathcodec/issues) on GitHub.\n\nWe welcome contributions! Fork the repository, make your changes, and submit a pull request.\n\n## License\n\npathcodec is open-source software released under the MIT License. You can find a copy of the license in the [LICENSE](https://github.com/itpey/pathcodec/blob/main/LICENSE) file.\n\n## Author\n\npathcodec was created by [itpey](https://github.com/itpey)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitpey%2Fpathcodec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitpey%2Fpathcodec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitpey%2Fpathcodec/lists"}