New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

n0star

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n0star

an alternative core model for atomic systems. neutrons orbit the neutron star, promoting direct communication systems. alt: object event distributor

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

n0Star

Event routing system with no managers, no inheritance, just objects with methods.

Install

npm install @n0coder/n0star

Usage

import { n0Star } from '@n0coder/n0star';

// Add objects with methods
n0Star.add({
  draw() {
    console.log('drawing');
  },
  
  update(deltaTime) {
    console.log('updating', deltaTime);
  }
});

// Invoke all objects that have this method
n0Star.invoke('draw');
n0Star.invoke('update', 16.67);

API

  • n0Star.add(neutron, renderOrder?) - Add object to system
  • n0Star.remove(neutron) - Remove object
  • n0Star.invoke(methodName, ...args) - Call method on all objects that have it
  • n0Star.getNeutronsByFunction(name) - Get all objects with this method
  • n0Star.getEntitiesByType(type) - Get all objects of this constructor type

Philosophy

No managers. No abstraction. Everything visible. Objects define themselves. Systems read shared space.

Powered by n0coder.


**LICENSE:**

MIT License

Copyright (c) 2025 n0coder

Permission is hereby granted, free of charge, to any person obtaining a copy...

Keywords

core

FAQs

Package last updated on 13 Dec 2025

Did you know?

Socket

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.

Install

Related posts