Skip to content

SpecDoc is an automated documentation engine that transforms smart contract ABIs and Soroban specs into interactive, Swagger-style portals. It allows developers to generate "Try-it-now" API docs directly from their code, enabling instant testing and easier integration for decentralized apps.

License

Notifications You must be signed in to change notification settings

MDTechLabs/SpecDoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

SpecDoc: Documentation-as-Code Translator

License: MIT Ecosystem: Stellar/EVM DX: Interactive

SpecDoc is an open-source tool that automatically converts Smart Contract ABIs (Ethereum) and Spec Files (Soroban/Stellar) into beautiful, interactive documentation portals. Designed as the "Swagger for Web3," SpecDoc bridges the gap between raw code and developer adoption.


1. Executive Summary

The hardest part of a new developer’s journey is the first integration. SpecDoc removes this friction by turning complex contract metadata into a hosted sandbox. It doesn't just list functions; it provides a live environment where developers can connect their wallets, input parameters, and execute contract calls directly from the documentation.

2. The Problem

Web3 onboarding is currently broken by "Documentation Decay":

  • Outdated Docs: Documentation is often a manual effort that falls behind the actual deployed code.
  • High Friction: Developers must often build custom UIs or use complex CLI tools just to test a single function of a new protocol.
  • Ecosystem Silos: Tooling is often fragmented between Stellar's Rust-based specs and Ethereum's JSON ABIs.

3. Key Features

  • ⚑ Instant Portal Generation: Upload an ABI or Soroban Spec file and generate a fully-functional documentation site in seconds.
  • πŸ§ͺ Integrated Sandbox: A built-in "Try It Now" feature with native support for Freighter (Stellar) and MetaMask (EVM) wallets.
  • doc-as-code Sync: A GitHub Action that automatically updates your hosted documentation whenever your contract code changes.
  • πŸ“˜ Multi-Language Snippets: Automatically generates code examples in JavaScript, Rust, and Python for every contract function.

4. Roadmap for this Wave

  • Phase 1: Core Parser for Soroban .wasm spec files and EVM JSON ABIs.
  • Phase 2: Launch the "Live Sandbox" UI components with wallet injection.
  • Phase 3: Release the SpecDoc CLI for automated deployment to IPFS or Vercel.

5. Why SpecDoc belongs in Drips Wave

SpecDoc is an Ecosystem Multiplier. When documentation is easy to read and test, more developers build on the network.

  • Public Good: SpecDoc will always be free for open-source projects.
  • Sustainability: 15% of all funding received via Drips is streamed to the creators of the frontend frameworks and blockchain SDKs (like soroban-client) that make our sandbox possible.

πŸ›  Project Structure (Monorepo)

SpecDoc/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/           # The documentation hosting platform
β”‚   └── cli/           # Tool for local documentation generation
β”œβ”€β”€ libs/
β”‚   β”œβ”€β”€ parsers/       # Logic to translate ABIs and Specs into JSON
β”‚   └── sandbox/       # Wallet-connection and contract-call components
β”œβ”€β”€ packages/
β”‚   └── themes/        # Customizable UI themes for the portals
└── LICENSE            # MIT Licensed

About

SpecDoc is an automated documentation engine that transforms smart contract ABIs and Soroban specs into interactive, Swagger-style portals. It allows developers to generate "Try-it-now" API docs directly from their code, enabling instant testing and easier integration for decentralized apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published