Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@vova/syft.js
Advanced tools
Of course, PySyft has the ability to run in its own environment. But if you would like to train FL models in the browser, you must resort to using some ML framework like TensorFlow.js.
Syft.js is a microlibrary built on top of TensorFlow.js, allowing for training and prediction of PySyft models in the browser.
PySyft acts as the parent node, instructing child nodes (Syft.js clients running in a website on users' browsers) of what tensors to add to a list, remove from a list, and operate against.
Link to full documentation here
If you're using a package manage like NPM:
npm install --save syft.js @tensorflow/tfjs
Or if Yarn is your cup of tea:
yarn add syft.js @tensorflow/tfjs
When using a package manager, TensorFlow.js will be automatically installed. If you're not using a package manager, you can also include Syft.js within a <script>
tag (see example below).
Note: If you're training or predicting with another syft.js client running somewhere else (or in another browser tab) then it's highly suggested you include the WebRTC adapter shim inside of your web application.
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.2.5/dist/tf.min.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<!-- If using WebRTC -->
<script src="https://unpkg.com/syft.js@latest"></script>
For integration into your client-side application, please check out our guide.
For further API documentation, please check that out here.
npm install
npm start
It's important to note that each of the examples are self-sustaining projects. This means that they run independent of the npm start
command run at the root syft.js directory. In order to run the demos, please do the following:
npm install
and then npm start
.cd
into one of the examples.npm install
and then npm start
inside of that example's directory. This should open a new browser tab for that example.We're accepting PR's for testing at the moment to improve our overall code coverage. In terms of core functionality, we're considering the current version of Syft.js feature complete until a further roadmap is designated.
FAQs
A Javascript Syft worker in the browser
The npm package @vova/syft.js receives a total of 1 weekly downloads. As such, @vova/syft.js popularity was classified as not popular.
We found that @vova/syft.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.