Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SatGate

SatGate is an embeddable, Lightning-powered contact form that leverages micro-payments as economic proof of human intent.

Core Value Proposition

SatGate replaces friction-heavy, AI-vulnerable CAPTCHAs with a micro-tax on communication. By requiring a tiny Lightning payment (e.g., 1 to 10 satoshis), automated spam campaigns become cost-prohibitive, while legitimate human interactions remain unhindered. Website owners eliminate data clutter while capturing micro-revenue from high-intent messages.

System Architecture

The workspace consists of two decoupled components engineered for scale and speed:

  • Backend (services/api): High-concurrency Rust Axum server utilizing Tokio and SQLx for lightning-fast message state management and webhook verification.
  • Frontend (apps/web): Next.js App Router dashboard and client widget featuring seamless WebLN integration and responsive fallback QR mechanics.

Quickstart Setup

Prerequisites

Ensure you have pnpm and the Rust toolchain installed.

Installation

Clone the repository and pull the frontend dependencies:

pnpm install

Execution

  1. Initialize the Rust API server:
pnpm api:dev
  1. In a separate terminal session, fire up the Next.js development client:
pnpm dev

Target Environments

Development Configuration

Initialize localized environment files before custom production deployments:

cp services/api/.env.example services/api/.env
cp apps/web/.env.example apps/web/.env.local

About

Economic Proof of Humanity. The 1-Sat Anti-Spam Contact Form.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages