{"id":15016765,"url":"https://github.com/yplog/asmarss","last_synced_at":"2025-04-12T10:41:53.865Z","repository":{"id":205480690,"uuid":"714070596","full_name":"yplog/asmarss","owner":"yplog","description":"A package that enables tracking the most recent posts of a Mastodon account and rendering them as an RSS feed in a Astro Component.","archived":false,"fork":false,"pushed_at":"2025-03-11T16:27:07.000Z","size":262,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T05:33:20.709Z","etag":null,"topics":["astro-component","astrojs","mastodon","rss","withastro"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/asmarss","language":"Astro","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/yplog.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":"2023-11-03T21:15:44.000Z","updated_at":"2025-03-11T16:27:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"febb5e26-9f67-49bd-b1fc-28f7242f5e32","html_url":"https://github.com/yplog/asmarss","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"20e69c51b83978546efd97bcefde2c712b582e25"},"previous_names":["yplog/asmarss"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yplog%2Fasmarss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yplog%2Fasmarss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yplog%2Fasmarss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yplog%2Fasmarss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yplog","download_url":"https://codeload.github.com/yplog/asmarss/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248556963,"owners_count":21124156,"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":["astro-component","astrojs","mastodon","rss","withastro"],"created_at":"2024-09-24T19:49:21.357Z","updated_at":"2025-04-12T10:41:53.838Z","avatar_url":"https://github.com/yplog.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asmarss\n\n[![npm version](https://badge.fury.io/js/asmarss.svg)](https://badge.fury.io/js/asmarss)\n\nA package that enables tracking the most recent posts of a Mastodon account and rendering them as an RSS feed in a Astro Component.\n\n## Installation\n\nIn your Astro project, run:\n\n```bash\nnpm i asmarss\n```\n\n## Usage\n\nAsmarss component take 3 props url, classList (optional), seperate (optional)\n  - url: the url of the Mastodon account you want to track\n  - classList: the class you want to add to the component\n  - seperate: if you want to seperate the posts in hr element, default value is false\n\nFor example css file:\n\n```css\n.global-text-color {\n  color: #000;\n}\n\n.global-font-size {\n  font-size: 1.5rem;\n}\n```\n\nIn your Astro file:\n\n```html\n---\nimport Asmarss from 'asmarss';\n---\n\n\u003cAsmarss url={\"https://mastodon-instance/@username.rss\"}\u003e\n\n\u003cAsmarss \n  url={\"https://mastodon.instance/@username.rss\"} \n  classList={{\n    toot__content: \"global-text-color global-font-size\",\n  }} \n  seperate={true} /\u003e\n```\n\nClassList is an object that contains the classes you want to add to the component, the default value is:\n\n```ts \ntype ClassList = {\n  separator?: string; // the class of the hr element\n  error_loading_feed?: string; // the class of the error message\n  no_items_in_feed?: string; // the class of the no items message\n  see_more?: string; // the class of the see more link\n  toot?: string; // the class of the toot\n  toot__header?: string; // the class of the toot header\n  toot__header__date?: string; // the class of the toot date\n  toot__content?: string; // the class of the toot content\n  toot__footer?: string; // the class of the toot footer\n  toot__footer__link?: string; // the class of the toot footer link\n};\n```\n\n## Contributing\n\nIf you would like to contribute to this project, please follow the steps below:\n\n  - Fork this project.\n  - Create a new branch: git checkout -b my-new-feature.\n  - Make changes and commit them: git commit -am 'Add some feature'.\n  - Push to the branch: git push origin my-new-feature.\n  - Create a new pull request (PR).\n\n\n## License\n\nThis project is licensed under the MIT License. Please refer to the license file for details.\n\n\n## Dependencies\n\n* [rss-parser](https://github.com/rbren/rss-parser#readme) - A small library for turning RSS XML feeds into JavaScript objects.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyplog%2Fasmarss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyplog%2Fasmarss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyplog%2Fasmarss/lists"}