Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Tiny, data-driven, high performance ECS library written using JavaScript TypedArrays.
<3kb
gzippednpm i bitecs
import World from 'bitecs'
// Create a world
const world = World()
// Register some components
world.registerComponent('POSITION', { x: 'float32', y: 'float32' })
world.registerComponent('VELOCITY', { vx: 'int8', vy: 'int8', speed: 'uint16' })
// Register a system
world.registerSystem({
name: 'MOVEMENT',
components: ['POSITION', 'VELOCITY'],
update: (position, velocity) => eid => {
position.x[eid] += velocity.vx[eid] * velocity.speed[eid]
position.y[eid] += velocity.vy[eid] * velocity.speed[eid]
}
})
// Create an entity
const eid = world.addEntity()
// Add components to entity
world.addComponent('POSITION', eid, { x: 100, y: 100 })
world.addComponent('VELOCITY', eid, { vx: 1, vy: -1, speed: 100 })
// Create an event loop and step world
setInterval(() => {
world.step()
}, 1000 / 30) // 30 tick on server
// For browser, use frame rate
const loop = () => {
world.step()
requestAnimationFrame(loop)
}
loop()
Full documentation and feature rich examples can be found here.
FAQs
Functional, minimal, data-oriented, ultra-high performance ECS library written in Javascript
The npm package bitecs receives a total of 828 weekly downloads. As such, bitecs popularity was classified as not popular.
We found that bitecs 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.