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

godprotocol

v2.3.44

Published

A distributed computing environment for Web 4.0 — integrating AI, decentralisation, and virtual computation.

Readme

GodProtocol

A distributed computing environment for Web 4.0 — integrating AI, decentralization, and virtual computation.

GodProtocol is the core implementation of Trinity, a modular, extensible runtime designed to organize computation through Objects, Instances, Datatypes, and Callables (action primitives). It enables developers to build distributed, AI-native applications while abstracting computation into composable virtual components.


Highlights

  • Purpose: Build a flexible virtual computation environment (Trinity) that can be embedded, extended, and deployed locally or across distributed systems.
  • AI Native: Designed for intelligent, autonomous computation.
  • Decentralized: Built with distributed execution in mind.
  • Runtime: Modern Node.js (ES Modules).
  • Minimum Node Version: 18+

Quick Start

Prerequisites

  • Node.js 18 or newer

Install

npm install

Development

Runs using nodemon.

npm run start

Production

Runs the application once without nodemon.

npm run dev

Note

  • npm run start uses nodemon and automatically reloads on file changes.
  • npm run dev executes the runtime a single time.
  • GodProtocol is an ES Module package ("type": "module").

Programmatic Usage

The runtime is bootstrapped from Index.js, which creates a Trinity instance.

import trinity from "./Index.js";

// Trinity runtime instance

Index.js exports the instantiated runtime so it can be embedded inside another project.


Environment Variables

| Variable | Description | | --------- | --------------------------------------------------------- | --- | --------------- | | Trinity | Runtime name passed into new Trinity(process.env.Trinity | | "GodProtocol") |


Project Structure

.
├── Index.js
├── package.json
├── Objects/
├── Instances/
├── Datatypes/
├── callables/
├── html/
└── utils/

Index.js

Entry point that instantiates the Trinity runtime.


Objects/

Contains the core runtime classes.

Examples include:

  • Trinity
  • Oracle
  • Repository
  • Manager
  • Virtual Machine
  • Block

These implement the primary execution model of GodProtocol.


Instances/

Contains runtime-specific objects such as:

  • Accounts
  • Events
  • Folders
  • Responses

These represent live entities within the runtime.


Datatypes/

Contains the primitive and compound data structures used throughout Trinity.

Examples include:

  • String
  • Number
  • Boolean
  • Array
  • Callable wrappers

Also includes:

Datatypes/functions/

which provides helper modules like storage and wallet utilities.


Callables/

Contains the runtime's action primitives.

Each callable is a lightweight executable module registered through:

callables/register.js

HTML/

Provides utilities for:

  • Loading
  • Parsing
  • Rendering
  • Executing HTML-based runtime assets

Utils/

Contains shared infrastructure including:

  • HTTP services
  • Socket server
  • HTTPS server creation
  • Cryptography
  • Hashing
  • Certificates

Important files:

  • create_server.js
  • socket_server.js
  • services.js

Files to Read First

If you're exploring the codebase, start here.

Objects/Trinity.js

The heart of the runtime.

Responsible for wiring together:

  • Objects
  • Instances
  • Datatypes
  • Callables

Objects/Oracle.js

Implements communication with Oracle endpoints using the HTTP service layer.


utils/create_server.js

Server initialization.


utils/socket_server.js

Socket infrastructure for runtime communication.


Core Concepts

Trinity

The root runtime.

Responsible for orchestrating every component in GodProtocol.


Objects

Large runtime components.

Examples:

  • Repository
  • Block
  • Manager
  • Oracle
  • Virtual Machine

Instances

Runtime-bound entities representing live state.

Examples:

  • Accounts
  • Events
  • Responses

Datatypes

Strongly typed wrappers responsible for:

  • Validation
  • Serialization
  • Runtime consistency

Callables

Small executable modules that perform runtime actions.

They are dynamically registered and invoked throughout Trinity.


Development

Creating a Callable

  1. Create a module inside:
callables/functions/
  1. Register it in:
callables/register.js

Creating a Datatype

Follow the existing patterns inside:

Datatypes/

Examples:

  • str.js
  • num.js
  • bool.js
  • arr.js

Creating Runtime Objects

Core runtime behavior belongs inside:

Objects/

Whenever adding a new runtime capability, implement it as an Object and wire it into Trinity.


Runtime State

Per-runtime state should live inside:

Instances/

Keep Objects as stateless as possible.


HTTPS Certificates

Development certificates are included:

utils/server.cert
utils/server.key

These are intended only for local development.

Do not use them in production.


Dependencies

Runtime

  • aircode4
  • generalised-datastore

Development

  • nodemon

Install everything with:

npm install

Testing

The repository currently ships without automated tests.

Recommended frameworks include:

  • Vitest
  • Jest
  • Ava

Suggested test coverage:

  • Trinity startup
  • Trinity shutdown
  • Callable registration
  • Callable execution
  • Datatype validation
  • Datatype serialization

Troubleshooting

Node Version Errors

Ensure you're using:

  • Node.js 18+

ES Module Errors

Verify that your environment respects:

"type": "module"

inside package.json.


Missing Imports

Reinstall dependencies:

npm install

If using VS Code or another IDE, restart the language server.


HTTPS Issues

Development certificates are included.

Either:

  • trust the local certificates, or
  • switch to HTTP during development.

Contributing

  1. Fork the repository.
  2. Create a feature branch.
  3. Implement your changes.
  4. Add tests where appropriate.
  5. Open a Pull Request with a clear description.

Please follow the existing architecture and coding conventions.


License

Licensed under the ISC License.

See package.json for details.


Author

Savvy


Repository

https://github.com/immanuel-savvy/GodProtocol


Roadmap

Future improvements include:

  • GitHub Actions CI
  • Automated testing
  • Public Trinity API documentation
  • Architecture diagrams
  • Runtime examples
  • Embedding examples
  • Oracle client tutorials
  • Distributed execution examples

GodProtocol is the computational substrate behind Trinity—a virtual runtime where AI, decentralized systems, and programmable computation converge to power the next generation of intelligent applications.