
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
scatter-js
Advanced tools
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
import scatter from 'scatter-js'
//or
const scatter = require('scatter-js');
You can also just drop the scatter.min.js
bundle from the dist/
directory here right into
your html file use it from there.
<script src="path/to/scatter.min.js"></script>
Coming soon.
Setting this up is easy.
let KEY = ``;
// This should be some getter for a private pairing key.
// You'll probably want to store this in a cookie or localstorage
// or perhaps something more secure as it validates that requests
// are coming from your application
function getter(){
return new Promise(resolve => resolve(KEY));
}
// This should be some setter if you are not pre-generating a
// RSA key used for the local socket's encryption.
// If you provide a `null` key from the getter initially this
// library will generate an RSA key for you.
function setter(x){
return new Promise(resolve => resolve(KEY = x));
}
// Creates a connection to Scatter Desktop and will prompt the user
// to authorize your application from within their Scatter.
scatter.connect("TestPage", getter, setter).then(connected => {
// Use `scatter` normally now.
})
See the Developer Documentation to find out how to interact with Scatter and various blockchains.
Scatter sits on top of eosjs or web3, so learn to use those depending on which blockchain you are interfacing with.
FAQs
This is an importable javascript library that allows web applications to directly interface with Scatter Desktop.
The npm package scatter-js receives a total of 1 weekly downloads. As such, scatter-js popularity was classified as not popular.
We found that scatter-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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.