Skip to content

sip-protocol/docs-sip

Repository files navigation

β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β–ˆβ–ˆβ•”β•β•β•β•β• β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•    β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
β•šβ•β•β•β•β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•”β•β•β•β•     β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘     β•šβ•β•β•β•β–ˆβ–ˆβ•‘
β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘ β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘
β•šβ•β•β•β•β•β•β• β•šβ•β• β•šβ•β•         β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•  β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

SIP Protocol Documentation

Privacy is not a feature. It's a right.

Official documentation for SIP Protocol β€” the privacy standard for Web3

Getting started β€’ SDK reference β€’ Concepts β€’ Cookbook β€’ Security β€’ Specifications

Built with Starlight Astro License: MIT TypeDoc SDK

πŸ† Winner β€” Zypherpunk Hackathon ($6,500: NEAR $4,000 + Tachyon $500 + pumpfun $2,000) | #9 of 93 | 3 Tracks

Live: docs.sip-protocol.org


Table of Contents


πŸ“š What is SIP Docs?

SIP Docs is the official documentation for SIP Protocol β€” the privacy standard for Web3. Built with Astro Starlight for a modern, searchable documentation experience.

docs.sip-protocol.org β†’ "How to use SIP" (technical reference)
blog.sip-protocol.org β†’ "Why privacy matters" (thought leadership)

Complete coverage: Getting started, SDK reference, concepts, cookbook, security, and specifications.


πŸ“– Documentation Sections

Getting Started

Page Description
Introduction What is SIP Protocol?
Getting Started Quick installation & first steps
Architecture System design overview

Core Concepts

Concept Description
Privacy Levels Transparent, Shielded, Compliant
Stealth Addresses DKSAP & EIP-5564
Viewing Keys Selective disclosure
Pedersen Commitments Amount hiding

SDK Cookbook

10 practical examples for common use cases:

Recipe Description
Basic Swap Simple private swap
Stealth Payment Send to stealth address
Batch Transfers Multiple recipients
Compliance Flow Viewing key disclosure
Custom Privacy Advanced configurations

Technical Specifications

Spec Description
Funding Proof Balance verification ZK circuit
Validity Proof Intent authorization ZK circuit
Fulfillment Proof Swap execution ZK circuit

Integrations

Integration Description
NEAR Intents Cross-chain settlement
Zcash Shielded pool backend
Solana Same-chain privacy

Security

Page Description
Threat Model Security assumptions
Security Properties Guarantees provided
Audit Preparation Audit readiness

Resources

Resource Description
Whitepaper Technical whitepaper
Roadmap Development milestones
FAQ Common questions
Glossary Term definitions
Changelog Version history

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • npm

Installation

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

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:4321

πŸ—οΈ Architecture

Project Structure

docs-sip/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   └── docs/                 # Documentation pages (MDX)
β”‚   β”‚       β”œβ”€β”€ index.mdx         # Home page
β”‚   β”‚       β”œβ”€β”€ introduction.md   # What is SIP?
β”‚   β”‚       β”œβ”€β”€ getting-started.md
β”‚   β”‚       β”œβ”€β”€ architecture.md
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€ concepts/         # Core concepts
β”‚   β”‚       β”‚   β”œβ”€β”€ privacy-levels.md
β”‚   β”‚       β”‚   β”œβ”€β”€ stealth-addresses.md
β”‚   β”‚       β”‚   └── viewing-keys.md
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€ cookbook/         # 10 practical examples
β”‚   β”‚       β”‚   β”œβ”€β”€ basic-swap.md
β”‚   β”‚       β”‚   β”œβ”€β”€ stealth-payment.md
β”‚   β”‚       β”‚   └── ...
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€ sdk-api/          # SDK reference
β”‚   β”‚       β”œβ”€β”€ specs/            # ZK proof specifications
β”‚   β”‚       β”œβ”€β”€ guides/           # How-to guides
β”‚   β”‚       β”œβ”€β”€ integrations/     # NEAR, Zcash, Solana
β”‚   β”‚       β”œβ”€β”€ security/         # Security documentation
β”‚   β”‚       β”‚
β”‚   β”‚       β”œβ”€β”€ whitepaper.md
β”‚   β”‚       β”œβ”€β”€ roadmap.md
β”‚   β”‚       β”œβ”€β”€ faq.md
β”‚   β”‚       β”œβ”€β”€ glossary.md
β”‚   β”‚       └── changelog.md
β”‚   β”‚
β”‚   β”œβ”€β”€ assets/                   # Images, diagrams
β”‚   β”œβ”€β”€ components/               # Custom Astro components
β”‚   └── styles/                   # Custom CSS
β”‚
β”œβ”€β”€ scripts/
β”‚   └── generate-api-docs.mjs     # TypeDoc API generation
β”‚
β”œβ”€β”€ public/                       # Static assets
β”œβ”€β”€ astro.config.mjs              # Astro + Starlight config
└── typedoc.json                  # TypeDoc configuration

Content Flow

MDX/MD Files β†’ Starlight β†’ Astro Build β†’ Static HTML
      β”‚            β”‚            β”‚
      β”‚            β–Ό            β”‚
      β”‚    Auto-sidebar from    β”‚
      β”‚    file structure       β”‚
      β”‚            β”‚            β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ› οΈ Tech Stack

Category Technology Purpose
Framework Astro 5 Static site generator
Docs Theme Starlight Documentation framework
Content MDX Markdown + components
API Docs TypeDoc Auto-generated from SDK
Diagrams Mermaid Architecture diagrams
Images Sharp Image optimization
Search Pagefind Built-in search

✨ Features

πŸ“– Documentation Features

  • Starlight theme with dark/light mode
  • Auto-generated sidebar from file structure
  • Built-in search (Pagefind)
  • Mobile responsive design
  • i18n ready for translations

πŸ”§ Developer Experience

  • API reference auto-generated from SDK JSDoc
  • Code examples with syntax highlighting
  • Copy to clipboard for code blocks
  • Mermaid diagrams for architecture

🎨 Design

  • Clean, readable typography
  • Consistent navigation structure
  • Breadcrumbs for orientation
  • Table of contents per page

πŸ’» Development

Commands

npm run dev           # Start dev server (localhost:4321)
npm run build         # Build for production
npm run preview       # Preview production build
npm run docs:api      # Generate API docs from SDK
npm run docs:api:clean # Clean and regenerate API docs

Adding Documentation

  1. Create MDX file in appropriate section:
touch src/content/docs/guides/my-guide.md
  1. Add frontmatter:
---
title: 'My Guide'
description: 'Guide description for SEO'
---
  1. Write content with Markdown + components:
# My Guide

Introduction text...

## Section 1

Content with code examples:

```typescript
import { SIP } from '@sip-protocol/sdk'

const sip = new SIP({ network: 'mainnet' })

:::note This is a callout note. :::


4. Preview locally:
```bash
npm run dev

πŸ“‘ API Documentation

API reference is auto-generated from SDK source using TypeDoc:

# Generate API docs
npm run docs:api

# Clean and regenerate
npm run docs:api:clean

Configuration

// typedoc.json
{
  "entryPoints": ["node_modules/@sip-protocol/sdk/src/index.ts"],
  "out": "src/content/docs/reference",
  "plugin": ["typedoc-plugin-markdown"]
}

πŸš€ Deployment

Docker (Production)

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

# Run locally
docker run -p 4321:80 docs-sip

VPS Configuration

Service Port Domain
docs-sip 5003 docs.sip-protocol.org
# docker-compose.yml (on VPS)
name: sip-docs

services:
  docs:
    image: ghcr.io/sip-protocol/docs-sip:latest
    container_name: sip-docs
    ports:
      - "5003:80"
    restart: unless-stopped

CI/CD Pipeline

Push to main β†’ GitHub Actions β†’ Generate API Docs β†’ Build Astro β†’ Docker β†’ GHCR β†’ Deploy

πŸ”— Related Projects

Project Description Link
sip-protocol Core SDK (source for API docs) GitHub
blog-sip Technical blog (complements docs) blog.sip-protocol.org
sip-app Privacy application app.sip-protocol.org
sip-website Marketing website sip-protocol.org

πŸ“„ License

MIT License β€” see LICENSE file for details.


πŸ† Zypherpunk Hackathon Winner ($6,500) | #9 of 93 | 3 Tracks

Privacy is not a feature. It's a right.

Read the Docs Β· SDK Reference Β· Contribute

Built with Starlight by the SIP Protocol team.

Part of the SIP Protocol ecosystem

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •