Skip to content

sip-protocol/docs-sip

Repository files navigation

SIP Protocol Documentation

Built with Starlight Astro License: MIT

πŸ† Winner β€” Zypherpunk Hackathon NEAR Track ($4,000)

Official documentation for SIP Protocol - the privacy layer for cross-chain transactions via NEAR Intents + Zcash.

Live Site: docs.sip-protocol.org

About SIP Protocol

SIP (Shielded Intents Protocol) is the privacy standard for Web3 - like HTTPS for the internet. One toggle to shield sender, amount, and recipient using stealth addresses, Pedersen commitments, and viewing keys for compliance.

Tech Stack

  • Astro - Modern static site generator
  • Starlight - Documentation framework built on Astro
  • TypeDoc - API documentation generator
  • Mermaid - Diagram generation
  • TypeScript - Type-safe development

Quick Start

Prerequisites

  • Node.js 18.0.0 or higher
  • npm or pnpm package manager

Installation

# Clone the repository
git clone https://github.com/sip-protocol/docs-sip.git
cd docs-sip

# Install dependencies
npm install

Development

# Start local development server at http://localhost:4321
npm run dev

Build

# Build production site to ./dist/
npm run build

# Preview production build locally
npm run preview

API Documentation

# Generate API reference docs from SDK
npm run docs:api

# Clean and regenerate API docs
npm run docs:api:clean

Project Structure

docs-sip/
β”œβ”€β”€ public/                 # Static assets (favicons, images)
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/            # Images and logos
β”‚   β”œβ”€β”€ components/        # Custom Astro components
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   └── docs/          # Documentation content (MDX/MD)
β”‚   β”‚       β”œβ”€β”€ cookbook/  # SDK usage examples
β”‚   β”‚       β”œβ”€β”€ concepts/  # Core concepts
β”‚   β”‚       β”œβ”€β”€ guides/    # Integration guides
β”‚   β”‚       β”œβ”€β”€ integrations/  # Platform integrations
β”‚   β”‚       β”œβ”€β”€ reference/ # Auto-generated API docs
β”‚   β”‚       β”œβ”€β”€ security/  # Security documentation
β”‚   β”‚       └── specs/     # Technical specifications
β”‚   β”œβ”€β”€ styles/            # Custom CSS
β”‚   └── content.config.ts  # Content collections config
β”œβ”€β”€ scripts/               # Build scripts
β”‚   └── generate-api-docs.mjs  # TypeDoc generation
β”œβ”€β”€ astro.config.mjs       # Astro configuration
β”œβ”€β”€ typedoc.json           # TypeDoc configuration
└── package.json           # Dependencies and scripts

Documentation Content

Our documentation is organized into several sections:

  • Getting Started - Introduction, quick start, architecture
  • Guides - Solver integration, API migration
  • SDK Cookbook - 10 practical code examples
  • Concepts - Privacy levels, stealth addresses, viewing keys
  • Specifications - Technical specs and ZK proofs
  • Integrations - NEAR Intents, Zcash
  • Security - Threat model, security properties, audit prep
  • Resources - Roadmap, whitepaper, FAQ, glossary, changelog
  • API Reference - Auto-generated from SDK source code

Deployment

The documentation site is automatically deployed via GitHub Actions:

  1. Push to main branch
  2. GitHub Actions builds Docker image
  3. Image pushed to GitHub Container Registry (GHCR)
  4. VPS pulls and deploys via Docker Compose
  5. Live at docs.sip-protocol.org

Docker Deployment

# Build Docker image
docker build -t sip-docs .

# Run container
docker run -p 5003:5003 sip-docs

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Related Repositories

License

This project is licensed under the MIT License.

Links


Built with Starlight by the SIP Protocol team.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •