registry.lua is a Lua script implementing a Registry Zone within the AO/Arweave ecosystem, designed to register and manage Zones as defined in permaweb-libs/specs/spec-zones.md. It provides a generic, dynamic, and scalable solution for discovering and organizing Zones—modular, programmable entities representing users, organizations, channels, and more. Built by SpaceTurtle-DAO, this registry supports self-registration and updates, ensuring authenticity and flexibility.
This repository contains:
registry.lua: The core script for the Registry Zone.specs/: Documentation for supported Zone Kinds (see below).
The Registry Zone addresses the need for a decentralized directory in the AO ecosystem, enabling:
- Discovery: Clients can find Zones (e.g., Velocity hubs, user profiles) by type and metadata.
- Management: Zones self-register and update their specs, maintaining a live, trusted index.
- Interoperability: Aligns with
spec-zones.mdand integrates withvelocity-protocolfor hub discovery.
- Self-Registration: Zones register using their own process ID (
msg.From), ensuring authenticity. - Updates: Zones can update their metadata dynamically via the
Registerhandler. - Filtering and Paging: The
GetZoneshandler supports filtering byKind(e.g.,"hub") and spec fields, with pagination for scalability.