Skip to content

Shikhyy/Credo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Credo ๐Ÿ›๏ธ

๐Ÿ† Built for the OWS Hackathon 2026 ๐Ÿ†

Credo is an AI-native commerce system that combines autonomous operations, a modern storefront, and verifiable trust rails.

It pairs a production-style Next.js frontend with a FastAPI backend, domain-specific agents, Supabase-backed persistence, and x402 machine-to-machine payment flows.

โœจ At A Glance

  • Autonomous Agents handle scouting, merchandising, logistics, and support.
  • Production-Ready UI, including a storefront and admin surface designed for real operations, not just demos.
  • Zero-Trust Rails using DIDKit and x402 add identity, verification, and automated escrow-style payments.
  • Remotion Video Assets under video/ can be used for a narrated walkthrough or launch video.

๐ŸŒŠ App Flow

flowchart LR
    classDef trigger fill:#FEF9C3,stroke:#CA8A04,color:#854D0E,stroke-width:2px,rx:8px,ry:8px;
    classDef agent fill:#DCFCE7,stroke:#16A34A,color:#14532D,stroke-width:2px,rx:8px,ry:8px;
    classDef proc fill:#DBEAFE,stroke:#2563EB,color:#1E3A8A,stroke-width:2px,rx:8px,ry:8px;
    classDef ui fill:#F3E8FF,stroke:#9333EA,color:#4C1D95,stroke-width:2px,rx:8px,ry:8px;

    A[โฑ๏ธ Scheduler]:::trigger --> B[๐Ÿ•ต๏ธ Scout Agent]:::agent
    B --> C{Margin & Trend pass?}:::proc
    C -- No --> D[Log rejection]:::proc
    C -- Yes --> E[Draft product]:::proc
    E --> F[โœ๏ธ Merch Agent]:::agent
    F --> G[Publish product]:::proc
    G --> H[๐Ÿ›๏ธ Storefront]:::ui
    H --> I[๐Ÿ›’ Customer orders]:::ui
    I --> J[๐Ÿ“ฆ Logistics Agent]:::agent
    J --> K[๐Ÿ” Verify ID]:::proc
    K --> L[๐Ÿ’ธ Pay & Ship]:::proc
    L --> M[๐ŸŽง Admin & Support]:::ui
Loading

For the full journey map, see docs/app-flow.md.

๐Ÿ—๏ธ Architecture

flowchart TB
    classDef frontend fill:#FFEDD5,stroke:#EA580C,color:#7C2D12,stroke-width:2px,rx:6px,ry:6px;
    classDef backend fill:#E0E7FF,stroke:#3B82F6,color:#1E3A8A,stroke-width:2px,rx:6px,ry:6px;
    classDef agent fill:#D1FAE5,stroke:#10B981,color:#064E3B,stroke-width:2px,rx:6px,ry:6px;
    classDef data fill:#FCE7F3,stroke:#EC4899,color:#831843,stroke-width:2px,rx:6px,ry:6px;
    classDef trust fill:#F5F3FF,stroke:#8B5CF6,color:#4C1D95,stroke-width:2px,rx:6px,ry:6px;
    classDef ops fill:#FEF3C7,stroke:#D97706,color:#78350F,stroke-width:2px,rx:6px,ry:6px;

    subgraph UI[๐Ÿ–ฅ๏ธ Customer and Admin UI]
        style UI fill:#FFF7ED,stroke:#FDBA74,stroke-dasharray: 5 5;
        storefront[Storefront]:::frontend
        admin[Admin Dashboard]:::frontend
        onboard[Supplier Onboarding]:::frontend
    end

    subgraph API[โš™๏ธ Application Layer]
        style API fill:#EFF6FF,stroke:#BFDBFE,stroke-dasharray: 5 5;
        api[FastAPI Routers]:::backend
        auth[Auth & Rate Limits]:::backend
        support[Support API]:::backend
    end

    subgraph AGENTS[๐Ÿค– Autonomous Agents]
        style AGENTS fill:#ECFDF5,stroke:#A7F3D0,stroke-dasharray: 5 5;
        scout[Scout Agent]:::agent
        merch[Merchandiser Agent]:::agent
        logistics[Logistics Agent]:::agent
        supportAgent[Support Agent]:::agent
    end

    subgraph DATA[๐Ÿ’พ Persistence & Trust Rails]
        style DATA fill:#FDF2F8,stroke:#FBCFE8,stroke-dasharray: 5 5;
        supabase[(Supabase SQL & Vector)]:::data
        store[(Local Store)]:::data
        payments[(x402 / Escrow)]:::trust
        didkit[(DIDKit / VC Verification)]:::trust
    end

    subgraph OPS[๐Ÿ› ๏ธ Operational Control]
        style OPS fill:#FFFBEB,stroke:#FDE68A,stroke-dasharray: 5 5;
        scheduler[Scheduler]:::ops
        logs[Agent Logs]:::ops
        video[Remotion Assets]:::ops
    end

    scheduler --> scout
    scout --> supabase
    scout --> merch
    merch --> supabase
    storefront --> api
    admin --> api
    onboard --> api
    api --> auth
    api --> support
    support --> supportAgent
    api --> supabase
    supportAgent --> supabase
    logistics --> didkit
    logistics --> payments
    logistics --> supabase
    supabase --> store
    logs --> admin
    video --> storefront
Loading

๐Ÿ“ธ Screenshots

The repository includes real app screenshots used by the explainer video. They live under video/public/app/.

Home Shop Products
Credo home screen Credo shop screen Credo product screen
Track Order Supplier Onboarding Admin Dashboard
Credo tracking screen Credo supplier onboarding screen Credo admin dashboard
Admin Analytics Admin Orders Admin Products
Credo admin analytics Credo admin orders Credo admin products

๐Ÿ“ Project Structure

CredoCommerce/
โ”œโ”€โ”€ backend/      FastAPI app, agents, services, migrations, tests
โ”œโ”€โ”€ frontend/     Next.js app for consumer and admin experiences
โ”œโ”€โ”€ video/        Remotion-based product and demo video pipeline
โ”œโ”€โ”€ docs/         Product, architecture, and implementation docs
โ””โ”€โ”€ scripts/      Utility scripts

๐Ÿš€ Tech Stack

  • Frontend: Next.js, TypeScript, Tailwind CSS
  • Backend: Python 3.12, FastAPI, Pydantic
  • Data: Supabase for Postgres and vector-enabled workflows
  • Identity & Payments: DIDKit and x402 integration paths
  • Testing & Tooling: Playwright, pytest, ESLint

๐Ÿ› ๏ธ Quick Start

1. Install dependencies

# Frontend
cd frontend && npm install

# Backend (recommended: virtual environment)
cd ../backend && pip install -r requirements.txt

2. Configure environment

cp frontend/.env.example frontend/.env.local
cp backend/.env.example backend/.env

3. Run services

# Option A: Docker
docker-compose up

# Option B: Local split
cd backend && PYTHONPATH=. python3 -m uvicorn app.main:app --reload --host 127.0.0.1 --port 8000
cd frontend && npm run dev

๐Ÿ’ป Common Commands

# Frontend build
cd frontend && npm run build

# Backend tests
cd backend && pytest

# Backend health check
curl http://127.0.0.1:8000/health

๐Ÿ“š Documentation

๐Ÿงน Repository Hygiene

This repository uses a root gitignore tuned for monorepo workflows:

  • Node and Python dependency directories
  • Build and cache outputs
  • Local environment and editor-specific files
  • Generated media and temporary artifacts

โš–๏ธ License

Private repository. All rights reserved unless otherwise specified.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

โšก