{"id":20054361,"url":"https://github.com/divriots/flying-boo","last_synced_at":"2026-02-03T13:01:55.025Z","repository":{"id":57108647,"uuid":"422139664","full_name":"divriots/flying-boo","owner":"divriots","description":"boo-ghost halloween component","archived":false,"fork":false,"pushed_at":"2022-02-10T11:06:31.000Z","size":508,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-10T03:28:46.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://webcomponents.dev/view/YnTmdvNX77ccZIphMD0p","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/divriots.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":"2021-10-28T09:17:11.000Z","updated_at":"2021-11-02T10:51:38.000Z","dependencies_parsed_at":"2022-08-21T04:30:41.265Z","dependency_job_id":null,"html_url":"https://github.com/divriots/flying-boo","commit_stats":null,"previous_names":["divriots/boo-ghost"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/divriots/flying-boo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divriots%2Fflying-boo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divriots%2Fflying-boo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divriots%2Fflying-boo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divriots%2Fflying-boo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/divriots","download_url":"https://codeload.github.com/divriots/flying-boo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/divriots%2Fflying-boo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29046503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T10:09:22.136Z","status":"ssl_error","status_checked_at":"2026-02-03T10:09:16.814Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-13T12:40:05.766Z","updated_at":"2026-02-03T13:01:53.629Z","avatar_url":"https://github.com/divriots.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flying Boo\n\n\u003cp\u003e\n  \u003ca href=\"https://divRIOTS.com\"\u003eBrought to you by\u003cbr/\u003e\u003c/a\u003e\n  \u003ca href=\"https://divRIOTS.com#gh-light-mode-only\"\u003e\n    \u003cimg width=\"150\" height=\"40\" src=\"https://divRIOTS.com/divriots.svg\" alt=\"‹div›RIOTS\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://divRIOTS.com#gh-dark-mode-only\"\u003e\n    \u003cimg width=\"150\" height=\"40\" src=\"https://divRIOTS.com/divriots-dark.svg\" alt=\"‹div›RIOTS\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nFun little halloween gimmick Web Component, works anywhere, based on [Lit](https://lit.dev) and [TypeScript](https://www.typescriptlang.org/).\n\n[See landing page](https://divriots.github.io/flying-boo/)\n\n[See the full demos \u0026 code](https://webcomponents.dev/edit/YnTmdvNX77ccZIphMD0p/stories/index.stories.js)\n\n## Usage\n\n```sh\nnpm i @divriots/flying-boo\n```\n\n```html\n\u003cscript type=\"module\"\u003e\nimport '@divriots/flying-boo';\n\u003c/script\u003e\n\u003cflying-boo\u003e\u003c/flying-boo\u003e\n```\n\nOr if you want to extend the component\n\n```js\nimport { FlyingBoo } from '@divriots/flying-boo';\n```\n\nOr from a CDN without needing NPM\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/@divriots/flying-boo/dist/index.js?module\"\u003e\u003c/script\u003e\n\u003cflying-boo\u003e\u003c/flying-boo\u003e\n```\n\n## Features\n\n- Configure the interval speed at which Boo changes direction with the `change-speed` attribute (default 5000, which is milliseconds)\n- Configure speed amplifier to change how fast Boo travels with the `speed` attribute (default 1)\n- Change the distance at which Boo gets scared with the `scare-distance` attribute (default 100, which is in pixels)\n\n## SPA accumulating Boos\n\nNote that Boo can be put anywhere on the page, and then it will insert itself into `\u003chtml\u003e` element and fly all over your page.\nIf you use SPA pattern and have the flying-boo on multiple pages, the number of Boos will accumulate.\n\nTherefore, you probably want to clean up the Boos on route switching, there's a util for that:\n\n```js\nimport { cleanup } from '@divriots/flying-boo';\n\n// whenever you switch routes call this before the new page renders\n// if you're using a different tag-name for your Boo element, pass it as an argument\ncleanup();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivriots%2Fflying-boo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivriots%2Fflying-boo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivriots%2Fflying-boo/lists"}