{"id":13998580,"url":"https://github.com/jj811208/watching-you","last_synced_at":"2025-05-14T05:10:47.426Z","repository":{"id":59088196,"uuid":"534763581","full_name":"jj811208/watching-you","owner":"jj811208","description":"watching-you is a javascript library for building animations that watch anything on DOM 👀.","archived":false,"fork":false,"pushed_at":"2025-04-01T08:33:50.000Z","size":11202,"stargazers_count":1640,"open_issues_count":7,"forks_count":48,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-11T00:45:44.084Z","etag":null,"topics":["animation","dom","frontend","javascript","javascript-library","open-source","react","storybook","typescript","vanilla-js","vue","web","xeyes"],"latest_commit_sha":null,"homepage":"https://jj811208.github.io/watching-you","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jj811208.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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}},"created_at":"2022-09-09T18:35:59.000Z","updated_at":"2025-04-03T09:26:24.000Z","dependencies_parsed_at":"2025-01-16T08:03:55.746Z","dependency_job_id":"6ef82689-68a4-4078-869d-b1945fef95ff","html_url":"https://github.com/jj811208/watching-you","commit_stats":{"total_commits":169,"total_committers":2,"mean_commits":84.5,"dds":"0.10059171597633132","last_synced_commit":"940c86e209a085e2f6a012fb650d70586bfd20ab"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jj811208%2Fwatching-you","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jj811208%2Fwatching-you/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jj811208%2Fwatching-you/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jj811208%2Fwatching-you/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jj811208","download_url":"https://codeload.github.com/jj811208/watching-you/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254076850,"owners_count":22010611,"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":["animation","dom","frontend","javascript","javascript-library","open-source","react","storybook","typescript","vanilla-js","vue","web","xeyes"],"created_at":"2024-08-09T19:01:47.783Z","updated_at":"2025-05-14T05:10:47.380Z","avatar_url":"https://github.com/jj811208.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003ca href=\"https://github.com/jj811208/watching-you\"\u003e\n  \u003cimg alt=\"watching-you\" src=\"https://github.com/jj811208/watching-you/blob/main/.github/static/banner.png\"/\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/watching-you\"\u003e\u003cimg src=\"https://badge.fury.io/js/watching-you.svg\" alt=\"npm version\" height=\"18\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jj811208/watching-you/actions/workflows/deploy-page.yml\"\u003e\u003cimg src=\"https://github.com/jj811208/watching-you/actions/workflows/deploy-page.yml/badge.svg\" alt=\"deploy-page\" height=\"18\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-core.yml\"\u003e\u003cimg src=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-core.yml/badge.svg\" alt=\"npm-publish-core\" height=\"18\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-react.yml\"\u003e\u003cimg src=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-react.yml/badge.svg\" alt=\"npm-publish-react\" height=\"18\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-vue.yml\"\u003e\u003cimg src=\"https://github.com/jj811208/watching-you/actions/workflows/npm-publish-vue.yml/badge.svg\" alt=\"npm-publish-vue\" height=\"18\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"watching your mouse\" src=\"https://github.com/jj811208/watching-you/blob/main/.github/static/1.gif\" height=\"320\" /\u003e\n  \u003cimg alt=\"watching your input value\" src=\"https://github.com/jj811208/watching-you/blob/main/.github/static/2.gif\" height=\"320\" /\u003e\n\u003c/p\u003e\n\n## Features\n\n- Be able to watch the mouse or another DOM, or even input values, watch anything you want!\n- Because it is DOM-based, it is easy to support RWD\n- Supports multiple frameworks\n- Zero dependency (every framework is!)\n- Written in typescript\n- The size of the core code is only 3kb after gzip compression\n- If the element is not on the screen, it will automatically stop watching\n\n## Example\n\n- \u003ca href=\"https://jj811208.github.io/watching-you/#/example/login\" target=\"_blank\"\u003eLogin Form\u003c/a\u003e\n- \u003ca href=\"https://jj811208.github.io/watching-you/#/example/iron-chain\" target=\"_blank\"\u003eIron Chain\u003c/a\u003e\n- \u003ca href=\"https://jj811208.github.io/watching-you/#/example/cena\" target=\"_blank\"\u003eCena is watching you\u003c/a\u003e\n- \u003ca href=\"https://jj811208.github.io/watching-you/#/example/svg-path\" target=\"_blank\"\u003eSvg Path Watcher\u003c/a\u003e\n\nThe source code can be found \u003ca href=\"https://github.com/jj811208/watching-you/blob/main/packages/website/README.md\" target=\"_blank\"\u003ehere\u003c/a\u003e\n\n## Storybook\n\nwatching-you's storybook using react, but every framework can do the same thing!\n\n\u003ca href=\"https://jj811208.github.io/watching-you/storybook\" target=\"_blank\"\u003ehttps://jj811208.github.io/watching-you/storybook\u003c/a\u003e\n\n## Documents\n\n⚠️ The API is still subject to change until version 1.0.0 is released ⚠️\n\n- [Vanilla.js](https://github.com/jj811208/watching-you/tree/main/packages/core)\n- [React](https://github.com/jj811208/watching-you/tree/main/packages/react)\n- [Vue](https://github.com/jj811208/watching-you/tree/main/packages/vue)\n\n## Compatibility\n\nIf you use `watching-you` directly without any compiler(babel), (e.g. Wordpress project using [CDN](https://cdn.jsdelivr.net/npm/watching-you/dist/watching-you.umd.cjs) import `watching-you`)\n\n|           | Chrome | Firefox | Safari | Edge | Opera | iOS Safari/Chrome | Android Chrome |\n|-----------|--------|---------|--------|------|-------|-------------------|----------------|\n| Supported |   70+  |   73+   |  14.1+ |  80+ |  70+  |        14.1+      |        ✔       |\n\nBut if you use a compiler like babel and import polyfill, it can even support IE11\n\nSome references: \u003cbr/\u003e\nhttps://babeljs.io/ \u003cbr/\u003e\nhttps://github.com/vitejs/vite/tree/main/packages/plugin-legacy\n\n## Note\n\n- When watching `input` or `textarea`, the `text-align` attribute must be `left`\n- Some inline elements ignore the `transform` attribute (let's say `span`), so you have to give them the `display` attribute to work properly. (see: https://stackoverflow.com/questions/24961795/how-can-i-use-css3-transform-on-a-span)\n- You may need something like `transition: transform .1s` depending on your needs\n\n## Contributing\n[see](https://github.com/jj811208/watching-you/blob/main/CONTRIBUTING.md)\n\n## License\n\n[ISC](https://github.com/jj811208/watching-you/blob/main/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjj811208%2Fwatching-you","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjj811208%2Fwatching-you","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjj811208%2Fwatching-you/lists"}