Skip to content

ssmithx/atob

Repository files navigation

atob

This monorepo contains the reference implementation for the AtoB Delivery Protocol, a system for coordinating peer-to-peer physical package deliveries over Nostr.

The protocol is a specific application of the general-purpose State Machines on Nostr specification, which allows for creating and managing verifiable, self-contained state machines in a decentralized environment.

The Protocol

The AtoB protocol models a delivery process as a state machine, enabling a creator to offer a delivery job and an executor to accept and complete it. The entire lifecycle—from creation to completion—is managed through Nostr events, ensuring a transparent and auditable trail.

Packages

This monorepo is organized into the following packages:

  • packages/lib: A TypeScript library that provides the core logic for the AtoB protocol, including the state machine definition, guards, and actions. It is designed to be used by any client that wants to implement the AtoB protocol.
  • packages/web: A SvelteKit web application that provides a user interface for creating and managing AtoB deliveries. It uses the @atob/protocol library to handle the protocol logic.

Getting Started

To get started with this project, you'll need to have Bun installed.

  1. Install dependencies:

    bun install
  2. Run the web app:

    Navigate to the packages/web directory and start the development server:

    cd packages/web
    bun run dev

This will start the web application, which you can access in your browser to interact with the AtoB protocol.

About

Bitcoin Based Logistics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors