{"id":42063377,"url":"https://github.com/codypearce/christmas-mode","last_synced_at":"2026-01-26T08:04:58.894Z","repository":{"id":330216793,"uuid":"1121902671","full_name":"codypearce/christmas-mode","owner":"codypearce","description":"Forget Dark mode, use Christmas Mode","archived":false,"fork":false,"pushed_at":"2025-12-24T13:14:22.000Z","size":945,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T12:47:46.858Z","etag":null,"topics":["christmas","dark-mode"],"latest_commit_sha":null,"homepage":"https://codinhood.com/post/christmas-mode","language":"JavaScript","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/codypearce.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-23T18:46:24.000Z","updated_at":"2025-12-25T05:32:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codypearce/christmas-mode","commit_stats":null,"previous_names":["codypearce/christmas-mode"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/codypearce/christmas-mode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codypearce%2Fchristmas-mode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codypearce%2Fchristmas-mode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codypearce%2Fchristmas-mode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codypearce%2Fchristmas-mode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codypearce","download_url":"https://codeload.github.com/codypearce/christmas-mode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codypearce%2Fchristmas-mode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28770079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T07:45:00.504Z","status":"ssl_error","status_checked_at":"2026-01-26T07:45:00.070Z","response_time":59,"last_error":"SSL_read: 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":["christmas","dark-mode"],"created_at":"2026-01-26T08:04:37.566Z","updated_at":"2026-01-26T08:04:58.884Z","avatar_url":"https://github.com/codypearce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Christmas Mode\n\n### Dark mode is boring. Use Christmas mode.\n\n![Light Mode vs Dark Mode vs Christmas Mode](christmas-mode.png)\n\n[![npm](https://img.shields.io/npm/v/christmas-mode.svg)](https://www.npmjs.com/package/christmas-mode)\n[![install size](https://packagephobia.com/badge?p=christmas-mode)](https://packagephobia.com/result?p=christmas-mode)\n[![Follow on X](https://img.shields.io/badge/follow-%40codyapearce-1DA1F2?logo=x\u0026style=flat)](https://x.com/codyapearce)\n[![Follow on Bluesky](https://img.shields.io/badge/follow-%40codyapearce-0285FF?logo=bluesky\u0026style=flat\u0026logoColor=white)](https://bsky.app/profile/codyapearce.bsky.social)\n\nAdd festive Christmas decorations to any website with a single line of code.\n\n\u003ch1\u003e\n  \u003ca href=\"https://www.youtube.com/watch?v=YBwm96BnbpA\"\u003e\n    ▶️ Watch the Product Story\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n[Live Demo](https://codinhood.com/christmas-mode) | [Read the Article](https://codinhood.com/post/christmas-mode)\n\n\u003c/div\u003e\n\n## Installation\n\n```bash\nnpm install christmas-mode\n```\n\nOr include via CDN:\n\n```html\n\u003cscript src=\"https://unpkg.com/christmas-mode/dist/christmas-mode.umd.js\"\u003e\u003c/script\u003e\n```\n\n## Quick Start\n\n### ES Modules\n\n```javascript\nimport ChristmasMode from \"christmas-mode\";\n\nChristmasMode.init();\nChristmasMode.enable();\n```\n\n### CommonJS\n\n```javascript\nconst ChristmasMode = require(\"christmas-mode\");\n\nChristmasMode.init();\nChristmasMode.enable();\n```\n\n### Browser (UMD)\n\n```html\n\u003cscript src=\"https://unpkg.com/christmas-mode/dist/christmas-mode.umd.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n  ChristmasMode.init();\n  ChristmasMode.enable();\n\u003c/script\u003e\n```\n\n### Auto-Enable\n\n```javascript\nChristmasMode.init({ autoEnable: true });\n```\n\n### React\n\n```jsx\nimport { useEffect } from \"react\";\nimport ChristmasMode from \"christmas-mode\";\n\nfunction App() {\n  useEffect(() =\u003e {\n    ChristmasMode.init({ autoEnable: true });\n\n    return () =\u003e {\n      ChristmasMode.destroy();\n    };\n  }, []);\n\n  return \u003cdiv\u003eMy App\u003c/div\u003e;\n}\n```\n\n## Features\n\n![Christmas Mode Preview](thumbnail.png)\n\n- Falling snow with accumulation effect\n- Twinkling Christmas lights along the top\n- Icicles hanging from the lights\n- Decorated Christmas tree with ornaments and star\n- Snowman with hat and scarf\n- North Pole sign with candy canes\n- Caroler that plays Jingle Bells (click to toggle music)\n- Santa's sleigh with 9 reindeer (including Rudolph!)\n- Marching nutcracker soldiers\n- Walking elves carrying presents\n- Sledding elves\n- Elves having a snowball fight\n- Stockings hung along the bottom\n- Presents under the tree\n- Holly decorations\n- Festive wreath with bow\n- Toggle switch to enable/disable\n\n## API\n\n### `ChristmasMode.init(options?)`\n\nInitialize Christmas Mode with optional configuration.\n\n```javascript\nChristmasMode.init({\n  toggle: true, // Show toggle switch (default: true)\n  musicButton: true, // Show music button/caroler (default: true)\n  autoEnable: false, // Auto-enable on init (default: false)\n  snow: true, // Enable snow effect (default: true)\n  lights: true, // Enable Christmas lights (default: true)\n  tree: true, // Enable Christmas tree (default: true)\n  snowman: true, // Enable snowman (default: true)\n  northPole: true, // Enable North Pole sign (default: true)\n  target: document.body, // Target element (default: document.body)\n});\n```\n\n### Toggle Position\n\n```javascript\nChristmasMode.init({\n  toggle: {\n    position: \"bottom-right\", // 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'\n  },\n});\n```\n\n### `ChristmasMode.enable()`\n\nEnable Christmas Mode (show decorations).\n\n### `ChristmasMode.disable()`\n\nDisable Christmas Mode (hide decorations).\n\n### `ChristmasMode.toggle()`\n\nToggle Christmas Mode on/off.\n\n### `ChristmasMode.isEnabled()`\n\nReturns `true` if Christmas Mode is currently active.\n\n### `ChristmasMode.playMusic()`\n\nStart playing Jingle Bells.\n\n\u003e **Note:** Due to browser autoplay policies, music can only start after user interaction (e.g., clicking the caroler or a button). It cannot autoplay on page load.\n\n### `ChristmasMode.stopMusic()`\n\nStop the music.\n\n### `ChristmasMode.toggleMusic()`\n\nToggle music on/off.\n\n### `ChristmasMode.destroy()`\n\nCompletely remove Christmas Mode and clean up all elements.\n\n## Contained Mode\n\nYou can target a specific element instead of the entire page:\n\n```javascript\nChristmasMode.init({\n  target: document.getElementById(\"my-container\"),\n  autoEnable: true,\n});\n```\n\n## TypeScript\n\nTypeScript definitions are included:\n\n```typescript\nimport ChristmasMode, { ChristmasModeOptions } from \"christmas-mode\";\n\nconst options: ChristmasModeOptions = {\n  autoEnable: true,\n  snow: true,\n  tree: true,\n};\n\nChristmasMode.init(options);\n```\n\n## Browser Support\n\nWorks in all modern browsers (Chrome, Firefox, Safari, Edge).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodypearce%2Fchristmas-mode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodypearce%2Fchristmas-mode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodypearce%2Fchristmas-mode/lists"}