{"id":14981250,"url":"https://github.com/charliegerard/interactive-frame-tfjs","last_synced_at":"2025-10-29T05:31:34.226Z","repository":{"id":39864868,"uuid":"383534061","full_name":"charliegerard/interactive-frame-tfjs","owner":"charliegerard","description":"Interactive digital art with head-coupled perspective effect using Three.js and TensorFlow.js","archived":false,"fork":false,"pushed_at":"2021-08-01T14:55:25.000Z","size":60412,"stargazers_count":99,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-01T22:51:05.932Z","etag":null,"topics":["creative-coding","face-detection","javascript","machine-learning","tensorflow-js","tensorflowjs","three-js","threejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charliegerard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"charliegerard","ko_fi":"devdevcharlie","custom":["https://buymeacoffee.com/devdevcharlie"]}},"created_at":"2021-07-06T16:31:24.000Z","updated_at":"2025-01-06T08:37:21.000Z","dependencies_parsed_at":"2022-08-30T09:21:37.232Z","dependency_job_id":null,"html_url":"https://github.com/charliegerard/interactive-frame-tfjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charliegerard%2Finteractive-frame-tfjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charliegerard%2Finteractive-frame-tfjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charliegerard%2Finteractive-frame-tfjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charliegerard%2Finteractive-frame-tfjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charliegerard","download_url":"https://codeload.github.com/charliegerard/interactive-frame-tfjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238777454,"owners_count":19528813,"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":["creative-coding","face-detection","javascript","machine-learning","tensorflow-js","tensorflowjs","three-js","threejs"],"created_at":"2024-09-24T14:03:12.583Z","updated_at":"2025-10-29T05:31:29.178Z","avatar_url":"https://github.com/charliegerard.png","language":"JavaScript","funding_links":["https://github.com/sponsors/charliegerard","https://ko-fi.com/devdevcharlie","https://buymeacoffee.com/devdevcharlie"],"categories":[],"sub_categories":[],"readme":"# Interactive digital frame with head-tracking using Three.js \u0026 TensorFlow.js\n\nUsing [TensorFlow.js](https://www.tensorflow.org/js) and [Three.js](https://threejs.org/), this project is a prototype of an interactive digital art frame using head-tracking to create an effect of head-coupled perspective.\n\nA famous use of this effect can be seen in [Ghost Protocol](https://www.youtube.com/watch?v=ydIPKkjBlMw\u0026t=30s).\n\nI wanted to experiment with making interactive art pieces so this project is a PWA that can be run fullscreen on an iPad.\n\n:warning: This is a prototype made as a side project so the code is not production-ready. Its performance is not optimised so the first load can take a while. I developed and tested it on a Macbook Pro and iPad Pro so if you try it on another device and it doesn't work or doesn't look super responsive, I don't intend to fix it. With that in mind, here's the [live demo](https://interactive-frame.netlify.app) that works with both mouse movements and head-tracking. :warning:\n\n## Demo\n\n![](head-coupled-perspective.gif)\n\nIf you'd like to read more about it, check out the [blog post](https://charliegerard.dev/blog/interactive-frame-head-tracking)!\n\n## Local development\n\n- Clone this repo\n- Run `npm install` to install the dependencies\n- Run `npm start` to start the local server\n- Your browser should automatically open a new tab to `http://localhost:3000`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharliegerard%2Finteractive-frame-tfjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharliegerard%2Finteractive-frame-tfjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharliegerard%2Finteractive-frame-tfjs/lists"}