npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@manifesto-ai/world

v1.0.0

Published

Manifesto World Protocol - Governance, Authority, and Lineage layer

Readme

@manifesto-ai/world

World is the governance layer of Manifesto. It manages authority, proposals, decision records, and lineage.


What is World?

World operates above Core and Host, governing who can propose changes, who can approve them, and tracking the complete history of all state transitions.

In the Manifesto architecture:

Bridge ──→ WORLD ──→ Host ──→ Core
             │
    Governs legitimacy, authority, lineage
    Tracks WHO proposed WHAT, WHEN, WHY

What World Does

| Responsibility | Description | |----------------|-------------| | Manage actors | Register and track actors (human, agent, system) | | Evaluate authority | Route proposals to appropriate authority handlers | | Track proposals | Full lifecycle from submission to completion | | Maintain lineage | DAG of World ancestry (who came from where) | | Create decision records | Immutable audit trail of authority decisions |


What World Does NOT Do

| NOT Responsible For | Who Is | |--------------------|--------| | Compute state transitions | Core | | Execute effects | Host | | Handle UI bindings | Bridge / React | | Define domain logic | Builder |


Installation

npm install @manifesto-ai/world @manifesto-ai/host @manifesto-ai/core
# or
pnpm add @manifesto-ai/world @manifesto-ai/host @manifesto-ai/core

Quick Example

import { createManifestoWorld, createAutoApproveHandler } from "@manifesto-ai/world";
import { createHost } from "@manifesto-ai/host";

// Create world with auto-approve authority
const world = createManifestoWorld({
  schemaHash: "todo-v1",
  host: createHost({ schema, snapshot }),
  defaultAuthority: createAutoApproveHandler(),
});

// Register an actor
world.registerActor({
  actorId: "user-1",
  kind: "human",
  name: "Alice",
});

// Submit a proposal
const result = await world.submitProposal({
  actorId: "user-1",
  intent: {
    type: "todo.add",
    input: { title: "Buy milk" },
  },
});

console.log(result.status); // → "completed"
console.log(result.world.worldId); // → "w_abc123..."

See GUIDE.md for the full tutorial.


World API

Main Exports

// Factory
function createManifestoWorld(config: ManifestoWorldConfig): ManifestoWorld;

// World class
class ManifestoWorld {
  registerActor(actor: ActorRef): void;
  bindAuthority(actorId, authorityId, policy): void;
  submitProposal(proposal: ProposalInput): Promise<ProposalResult>;
  getWorld(worldId: WorldId): World | undefined;
  queryProposals(query: ProposalQuery): Proposal[];
}

// Authority handlers
function createAutoApproveHandler(): AuthorityHandler;
function createPolicyRulesHandler(rules): AuthorityHandler;
function createHITLHandler(options): AuthorityHandler;
function createTribunalHandler(options): AuthorityHandler;

// Key types
type World = { worldId, schemaHash, snapshotHash, createdAt, createdBy };
type Proposal = { proposalId, actorId, intent, baseWorld, status, decision? };
type DecisionRecord = { decisionId, proposalId, authority, decision, timestamp };
type ActorRef = { actorId, kind: "human" | "agent" | "system", name?, meta? };

See SPEC.md for complete API reference.


Core Concepts

Authority System

World supports multiple authority types:

| Authority | Description | |-----------|-------------| | auto | Auto-approve all proposals (no deliberation) | | policy | Rule-based decisions (path restrictions, rate limits) | | human | Human-in-the-loop approval required | | tribunal | Multi-agent review process |

// Human-in-the-loop example
const hitlAuthority = createHITLHandler({
  notify: (proposal) => sendToApprovalQueue(proposal),
  timeout: 30_000, // 30 second timeout
});

world.bindAuthority("agent-1", "hitl-authority", hitlAuthority);

Proposal Lifecycle

submitted → pending → approved → executing → completed
                  ↓                    ↓
               rejected              failed

Immutable Worlds

Each successful proposal creates a new World. Worlds are immutable and form a DAG (directed acyclic graph) of lineage.


Relationship with Other Packages

┌─────────────┐
│   Bridge    │ ← Uses World for governance
└──────┬──────┘
       │
       ▼
┌─────────────┐
│    WORLD    │
└──────┬──────┘
       │
       ▼
┌─────────────┐
│    Host     │ ← World uses Host to execute
└─────────────┘

| Relationship | Package | How | |--------------|---------|-----| | Depends on | @manifesto-ai/host | Uses Host to execute proposals | | Depends on | @manifesto-ai/core | Uses Core types | | Used by | @manifesto-ai/bridge | Bridge submits proposals through World |


When to Use World Directly

Use World directly when:

  • Building applications with governance requirements
  • Implementing human-in-the-loop approval flows
  • Tracking audit trails for compliance
  • Building multi-agent systems with authority policies

For simple applications without governance, you can use Host directly.


Documentation

| Document | Purpose | |----------|---------| | GUIDE.md | Step-by-step usage guide | | SPEC.md | Complete specification | | FDR.md | Design rationale |


License

MIT