
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.
Category-theoretic system design framework for scalable, modular systems using mathematical foundations
📦 npm package | 🐙 GitHub repository
CatSys is a robust framework for building scalable, modular systems using category theory principles. It provides mathematical guarantees for system correctness through 12 foundational laws.
npm install catsys
import { DomainSpec, createGenericService, adapters } from 'catsys';
// Define your domain
class CounterSpec extends DomainSpec {
constructor() {
super();
this.initialState = { count: 0 };
}
decide(state, command) {
if (command.kind === 'Increment') {
return [{ kind: 'Incremented', amount: command.amount }];
}
return [];
}
evolve(state, event) {
if (event.kind === 'Incremented') {
return { count: state.count + event.amount };
}
return state;
}
}
// Create service with in-memory adapters
const service = createGenericService(
new CounterSpec(),
{ count: 0 },
{
sql: adapters.inMemorySql(),
bus: adapters.inMemoryBus()
}
);
// Use the service
await service.handle({ count: 0 }, { kind: 'Increment', amount: 5 });
CatSys enforces 12 mathematical laws that guarantee system correctness:
CatSys uses a ports and adapters architecture with:
type Command = { kind: string, ... }
type Event = { kind: string, ... }
type State = any
type View = any
type Raw = any
interface DomainSpec {
decide(state: State, command: Command): Event[]
evolve(state: State, event: Event): State
project(view: View, event: Event): View
// ... other methods
}
CatSys includes comprehensive testing tools:
// Property-based testing
spec.verifyLaws();
// Unit testing
test('increment', async () => {
const result = await service.handle(
{ count: 0 },
{ kind: 'Increment', amount: 1 }
);
expect(result).toEqual({ count: 1 });
});
See the examples directory for:
CatSys takes security seriously:
GPL-3.0 - see LICENSE for details.
FAQs
Category-theoretic system design framework for scalable, modular systems using mathematical foundations
We found that catsys demonstrated a healthy version release cadence and project activity because the last version was released less than 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.