
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
JSES is a framework for creating interactive applications. It uses a composition based architecture with entities, components, and systems to handle logic. The framework comes with optional systems that can be used, the main ones being a rendering system
JSES is a framework for creating interactive applications. It uses a composition based architecture with entities, components, and systems to handle logic. The framework comes with optional systems that can be used, the main ones being a rendering system and a physics system.
Check out some examples at mwgithub.github.io/jses

/**
* Creates an entity from JSON data.
* @param {Object} data the data to create with.
* @return {Entity} the created entity.
*/
createFromData(data) {
let entity = this._entitySystem.createEntity();
// Copy non component setup data into the entity.
for (let key in data) {
if (!data.hasOwnProperty(key)) continue;
if (key === 'components') continue;
entity[key] = data[key];
}
// Set values of components.
let components = data.components;
for (let objectKey in components) {
if (!components.hasOwnProperty(objectKey)) continue;
let componentData = components[objectKey];
let storedComponent = this._componentStore[objectKey];
if (!storedComponent) continue;
let ComponentClass = storedComponent.cls;
let type = ComponentClass.type;
// Create or update component as needed.
let component = entity[type];
if (!component) {
component = new ComponentClass(componentData);
} else {
component.setParams(componentData);
}
// Run the pre component creation callback
if (storedComponent.preSet) {
storedComponent.preSet(entity, component);
}
this._entitySystem.setComponent(entity, type, component);
if (storedComponent.postSet) {
storedComponent.postSet(entity, component);
}
}
return entity;
}
_addBody(entity) {
let bodyComponent = entity[RigidBodyComponent.type];
if (!bodyComponent) return;
let rigidBody = new RigidBody({
entity: entity,
spatial: entity[SpatialComponent.type],
body: bodyComponent
});
this._addShape(entity, rigidBody);
this._entityBodies[entity.id] = this._entityBodies[entity.id] || [];
this._entityBodies[entity.id].push(rigidBody);
this._world.add(rigidBody);
}
_remove(entity) {
let bodies = this._entityBodies[entity.id];
if (!bodies) return;
for (let i = 0; i < bodies.length; ++i) {
this._world.remove(bodies[i]);
}
delete this._entityBodies[entity.id];
}
update(dt) {
let set = this._entitySystem.getEntities(RigidBodyComponent.type);
set.eachAdded(this._addBody.bind(this));
set.eachRemoved(this._remove.bind(this));
this._world.step(dt);
}
FAQs
JSES is a framework for creating interactive applications. It uses a composition based architecture with entities, components, and systems to handle logic. The framework comes with optional systems that can be used, the main ones being a rendering system
The npm package jses receives a total of 4 weekly downloads. As such, jses popularity was classified as not popular.
We found that jses 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.