{"id":15469238,"url":"https://github.com/vvmnnnkv/syft-js-worker","last_synced_at":"2025-04-22T12:18:00.715Z","repository":{"id":105806591,"uuid":"198821461","full_name":"vvmnnnkv/syft-js-worker","owner":"vvmnnnkv","description":"Javascript worker for PySyft","archived":false,"fork":false,"pushed_at":"2019-08-20T07:33:49.000Z","size":39,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T04:36:08.787Z","etag":null,"topics":["js","privacy","syft"],"latest_commit_sha":null,"homepage":"","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/vvmnnnkv.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}},"created_at":"2019-07-25T11:49:08.000Z","updated_at":"2020-08-20T00:41:41.000Z","dependencies_parsed_at":"2023-03-18T05:45:27.372Z","dependency_job_id":null,"html_url":"https://github.com/vvmnnnkv/syft-js-worker","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/vvmnnnkv%2Fsyft-js-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvmnnnkv%2Fsyft-js-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvmnnnkv%2Fsyft-js-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vvmnnnkv%2Fsyft-js-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vvmnnnkv","download_url":"https://codeload.github.com/vvmnnnkv/syft-js-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237843,"owners_count":21397403,"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":["js","privacy","syft"],"created_at":"2024-10-02T01:57:20.243Z","updated_at":"2025-04-22T12:18:00.707Z","avatar_url":"https://github.com/vvmnnnkv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Syft Web Worker\n\nThis project is created for Udacity's [Secure and Private AI](https://www.udacity.com/course/secure-and-private-ai--ud185) challenge course.\nIt explores possibility to have PySyft worker running in the web browser, \nwhich potentially expands PySyft functionality to a very large user-base. \nThe back-end for tensor operations in browser is tf.js.\n\nThe current project's state is 'proof of concept' where tensors can be moved to/from browser and a limited set of tensor operations is possible. \nFurther direction is to try to use web client for federated learning.\n\n## Demo\nFollow this [Colab jupyter notebook](https://colab.research.google.com/github/vvmnnnkv/syft-js-worker/blob/master/Syft%20Web%20Client%20Demo.ipynb).\n\nFor local installation:\n```\npip install -Ur requirements.txt\npython run_socketio_server.py\n```\nUpdate `index.html` and notebook code with server's URL (e.g. `http://localhost:5000`).\n\n## Work in progress\nThere's zero infrastructure work done (e.g. dependency management, building, etc.), and javascript is tested in Chrome only.\n\n## Acknowledgments\n * [syft.js](https://github.com/OpenMined/syft.js) - inspiration :)\n * [PySyft Android Worker](https://github.com/OpenMined/AndroidWorker) - server script and some PySyft protocol details\n * Numpy to array code borrowed from: https://gist.github.com/nvictus/88b3b5bfe587d32ac1ab519fd0009607\n * Array to numpy code borrowed from: https://github.com/propelml/tfjs-npy/blob/master/npy.ts\n * Thanks Udacity's [Secure and Private AI](https://www.udacity.com/course/secure-and-private-ai--ud185) challenge course and Andrew Trask for great content\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvmnnnkv%2Fsyft-js-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvvmnnnkv%2Fsyft-js-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvvmnnnkv%2Fsyft-js-worker/lists"}