
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@webxdc/highscores
Advanced tools
Library to facilitate the process of creating score-based webxdc games. It can handle multiple scoreboards at the same time.
npm install @webxdc/highscores
Quick overview of the API:
import "@webxdc/highscores";
// always do this first, only use the API after init() finishes
await window.highscores.init();
// get current player's highscore
const score = window.highscores.getScore();
console.log(`your score: ${score}`);
// this will cause an announcement in chat only if it's a new highscore
window.highscores.setScore(score + 100);
const scoreboard = window.highscores.getHighScores();
scoreboard.forEach((player) => {
console.log(`${player.pos}. ${player.name} - ${player.score}`);
});
The webxdc.js
lib also needs to be included in your index.html
:
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<script src="webxdc.js"></script>
<script type="module">
import "@webxdc/highscores";
// you can use window.highscores here
</script>
</head>
<body>
...
</body>
</html>
Check dist/highscores.d.ts file for documentation of the available API.
For a full example check the example/index.html file.
FAQs
Highscores API for webxdc apps
We found that @webxdc/highscores demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.