{"id":17023257,"url":"https://github.com/stefanjudis/sparkly-text","last_synced_at":"2025-04-12T19:48:59.733Z","repository":{"id":210749555,"uuid":"726413497","full_name":"stefanjudis/sparkly-text","owner":"stefanjudis","description":"A small web component for making your text spark.","archived":false,"fork":false,"pushed_at":"2025-01-02T10:40:06.000Z","size":174,"stargazers_count":258,"open_issues_count":2,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-03T23:11:22.879Z","etag":null,"topics":["custom-elements","html-components","web-components"],"latest_commit_sha":null,"homepage":"https://www.stefanjudis.com/blog/a-web-component-to-make-your-text-sparkle/","language":"JavaScript","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/stefanjudis.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-12-02T10:23:18.000Z","updated_at":"2025-03-07T06:30:07.000Z","dependencies_parsed_at":"2024-10-26T21:21:08.822Z","dependency_job_id":"aab72a26-a066-4b51-8613-7c1c1f4d78cc","html_url":"https://github.com/stefanjudis/sparkly-text","commit_stats":{"total_commits":41,"total_committers":5,"mean_commits":8.2,"dds":0.3414634146341463,"last_synced_commit":"a7c8bcc8125d6712628fbe72221d9dec5d1b0677"},"previous_names":["stefanjudis/sparkly-text"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanjudis%2Fsparkly-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanjudis%2Fsparkly-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanjudis%2Fsparkly-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stefanjudis%2Fsparkly-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stefanjudis","download_url":"https://codeload.github.com/stefanjudis/sparkly-text/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"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":["custom-elements","html-components","web-components"],"created_at":"2024-10-14T07:12:43.467Z","updated_at":"2025-04-12T19:48:59.701Z","avatar_url":"https://github.com/stefanjudis.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# `sparkly-text`\n\nA small zero-dependency Web Component to add sparkles to text fragments.\n\n## Examples\n\n```html\n\u003c!-- Add sparkles  --\u003e\n\u003csparkly-text\u003eHello world\u003c/sparkly-text\u003e\n\n\u003c!-- Increase the number of sparkles  --\u003e\n\u003csparkly-text number-of-sparkles=\"5\"\u003eHello world\u003c/sparkly-text\u003e\n\n\u003c!-- Color the sparkles  --\u003e\n\u003csparkly-text style=\"--sparkly-text-color: orange\"\u003eHello world\u003c/sparkly-text\u003e\n\n\u003c!-- Add rainbow colors   --\u003e\n\u003csparkly-text style=\"--sparkly-text-color: rainbow\"\u003eHello world\u003c/sparkly-text\u003e\n\n\u003c!-- Increase the sparkle size  --\u003e\n\u003csparkly-text style=\"--sparkly-text-size: 2.5em\"\u003eHello world\u003c/sparkly-text\u003e\n```\n\n## Installation\n\nYou have a few options (choose one of these):\n\n- Install via [npm](https://www.npmjs.com/package/@stefanjudis/sparkly-text): npm install @stefanjudis/sparkly-text\n- [Download the source](https://github.com/stefanjudis/sparkly-text/blob/main/sparkly-text.js) manually from GitHub into your project.\n- Skip this step and use the script directly via a 3rd party CDN (not recommended for production use)\n\n### Usage\n\n```html\n\u003c!-- Host yourself --\u003e\n\u003cscript type=\"module\" src=\"sparkly-text.js\"\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript\n  type=\"module\"\n  src=\"https://www.unpkg.com/@stefanjudis/sparkly-text\"\n\u003e\u003c/script\u003e\n```\n\n```html\n\u003c!-- 3rd party CDN, not recommended for production use --\u003e\n\u003cscript type=\"module\" src=\"https://esm.sh/@stefanjudis/sparkly-text\"\u003e\u003c/script\u003e\n```\n\n## Kudos\n\nBig thanks goes to [Zach Leatherman](https://www.zachleat.com/) for all [his fancy components such as `table-saw`](https://github.com/zachleat/table-saw).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanjudis%2Fsparkly-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstefanjudis%2Fsparkly-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstefanjudis%2Fsparkly-text/lists"}