{"id":27422538,"url":"https://github.com/fklr/smoloneko","last_synced_at":"2025-06-16T09:38:36.956Z","repository":{"id":259173992,"uuid":"868234283","full_name":"fklr/smoloneko","owner":"fklr","description":"A hand-minified implementation of oneko.js with touch support","archived":false,"fork":false,"pushed_at":"2025-03-07T04:16:39.000Z","size":167,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T20:12:53.557Z","etag":null,"topics":["gif","javascript","minify","script","web"],"latest_commit_sha":null,"homepage":"https://fklr.github.io/smoloneko/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fklr.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,"zenodo":null},"funding":{"github":"mekaem","ko_fi":"mekaem","liberapay":"em"}},"created_at":"2024-10-05T20:31:06.000Z","updated_at":"2025-05-06T00:49:37.000Z","dependencies_parsed_at":"2024-10-23T08:22:23.584Z","dependency_job_id":"73d53352-7d49-4a92-8f91-7cbc894c101e","html_url":"https://github.com/fklr/smoloneko","commit_stats":null,"previous_names":["ovnanova/smoloneko","mekaem/smoloneko","fklr/smoloneko"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fklr/smoloneko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fklr%2Fsmoloneko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fklr%2Fsmoloneko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fklr%2Fsmoloneko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fklr%2Fsmoloneko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fklr","download_url":"https://codeload.github.com/fklr/smoloneko/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fklr%2Fsmoloneko/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260134202,"owners_count":22963865,"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":["gif","javascript","minify","script","web"],"created_at":"2025-04-14T10:23:33.245Z","updated_at":"2025-06-16T09:38:36.932Z","avatar_url":"https://github.com/fklr.png","language":"HTML","funding_links":["https://github.com/sponsors/mekaem","https://ko-fi.com/mekaem","https://liberapay.com/em"],"categories":[],"sub_categories":[],"readme":"# 🐱 smol oneko\n\nWant to add `oneko.js` to your site, but 5.41 KB is just too much? Now it's 1.65 KB!\n\nThe default image is `oneko.gif` in the same directory as the `index.html`. This allows for a shorter directory reference in the script, which saves a few bytes. This can be changed by modifying the `backgroundImage=\"url('oneko.gif')` variable in `oneko.js`.\n\n**You should not do this unless your image is formatted as a sprite sheet with the individual frames mapped in the same positions as `oneko.gif`.** Improperly formatted images will **not** display correctly, as the script makes assumptions about the GIF grid.\n\n*Optional: smol oneko also supports mobile via a helper script (minified to 229 bytes)! Add both `oneko.js` and `oneko_touch.js` to your directory with the corresponding `\u003cscript\u003e` tags in your HTML.*\n\n**Implementation:**\n\nAll scripts for smol oneko are located in the `/scripts` directory, and `oneko.gif` is located in the top-level directory.\n\n```html\n\u003cscript\u003esrc=\"oneko.js\"\u003e\u003c/script\u003e\n\u003cscript\u003esrc=\"oneko_touch.js\"\u003c/script\u003e\n```\n\n## 📖 Lexicon\n\nThe variable names in the scripts have been truncated (and, as a side effect, obfuscated) to reduce file size. If you would like to tweak the scripts to your liking, see the [LEXICON.md](https://github.com/ovnanova/smoloneko/blob/main/LEXICON.md) for help.\n\n## 🏆 Contributing\n\nFeel free to submit a pull request if you see any fixes or further optimizations to be made. If you want to add functionality, I would suggest starting your own fork.\n\n## 📜 License\n\nThis project is licensed under the MPL-2.0 License.\n\n## 🤝 Acknowledgments\n\nCredit to [adryd](https://github.com/adryd325/oneko.js) for the original script.\n\n## 📺 Demo\n\n[oneko.webm](https://github.com/user-attachments/assets/c1ce686e-207a-444f-8fc5-aa1b385223df)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffklr%2Fsmoloneko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffklr%2Fsmoloneko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffklr%2Fsmoloneko/lists"}