Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@olane/o-gateway-interface

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@olane/o-gateway-interface

oLane gateway interface

latest
Source
npmnpm
Version
0.9.0
Version published
Weekly downloads
356
96.69%
Maintainers
1
Weekly downloads
 
Created
Source

@olane/o-gateway-interface

Interface definition for Olane gateway implementations. This package defines the contract that all gateway implementations must satisfy.

What is a Gateway?

In the Olane network, gateways act like DNS registrars for o:// addresses. When a request is made to an address like o://brendon/my-tool, the gateway is responsible for resolving the first term (brendon) to determine how to route the request. Gateways prevent conflicting namespaces, bridge into walled gardens, broker communication, and establish a system of trust for AI agents, humans, and other entities to collaborate safely.

Installation

pnpm add @olane/o-gateway-interface

The oGateway Interface

This package exports a single interface that all gateway implementations must conform to:

import { oGateway } from '@olane/o-gateway-interface';

Fields

FieldTypeDescription
namestringThe unique name identifying this gateway (e.g., "olane")
transportsstring[]List of transport protocols this gateway supports (e.g., ["/olane"])
descriptionstringHuman-readable description of the gateway and its purpose
logostringURL or path to the gateway's logo image
websitestringURL of the gateway's website

Interface Definition

export interface oGateway {
  name: string;
  transports: string[];
  description: string;
  logo: string;
  website: string;
}

Implementing a Gateway

To create a custom gateway, implement the oGateway interface and provide an address resolver that handles routing for your namespace. The resolver is responsible for inspecting incoming addresses and determining the next hop.

For a complete reference implementation, see @olane/o-gateway-olane, which resolves addresses in the olane namespace and routes them through the Olane leader node.

  • @olane/o-gateway-olane - Reference implementation of this interface for the Olane network
  • @olane/o-core - Core types including oAddress, oAddressResolver, and transport primitives
  • @olane/o-protocol - Protocol definitions used by gateways

License

(MIT OR Apache-2.0)

FAQs

Package last updated on 08 May 2026

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