
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
  [](https://coveralls.io/g
A performant Entity Component System library for Typescript and Javascript.
Entity–component–system (ECS) is an architectural pattern that is mostly used in game development. ECS follows the composition over inheritance principle that allows greater flexibility in defining entities where every object in a game's scene is an entity (e.g. enemies, bullets, vehicles, etc.). Every entity consists of one or more components which contains data or state.
npm i light-ecs --save
yarn add light-ecs
import * as ECS from 'light-ecs';
or
import { Component, ComponentField, Engine, System, World } from 'light-ecs';
LightECS uses protobufjs for serialization under the hood. Component types just need to extend from ECS.Component class and then fields can be defined using any approach supported by protobufjs documented here. We recommend using decorators through typescript.
// ECS.Component is a subclass of the Message class from protobufjs.
class MyComponentType extends ECS.Component {
// ECS.ComponentField is simiply an alias for Field.d from protobufjs.
@ECS.ComponentField(1, 'uint32')
public int: number = 0;
@ECS.ComponentField(2, 'string')
public text: string = '';
}
const engine = new ECS.Engine([MyComponentType, ...otherComponentTypes]);
const world = engine.createWorld();
const entityId = world.createEntity();
const myComponent = world.addComponentToEntity(entityId, MyComponentType);
myComponent.int = 100;
myComponent.text = 'my text';
class MySystem extends ECS.System {
public run(world: ECS.World): void {
// queryEntities is a protected method from ECS.System
this.queryEntities(
world,
MyComponentType
// anotherComponentType, ...
).forEach(([entityId, myComponent /*, anotherComponent, ... */]) => {
// do something
});
}
}
const mySystem = new MySystem();
mySystem.run(world);
const serialized = engine.serializeWorld(world);
// this deserialized object should contain the exact same data as the
// pre-serialization world object.
const deserialized = engine.createWorld(serialized);
FAQs
  [](https://coveralls.io/g
We found that light-ecs 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.