Skip to content

devnWisdom/knowledgeflow-dapp

KnowledgeFlow

License: MIT CI Built on Stellar

KnowledgeFlow is a peer-to-peer knowledge marketplace that enables experts to get paid per second for their time through continuous, trustless streaming payments — built on Stellar + Soroban.

Instead of hourly invoices, subscriptions, or platform-controlled payouts, KnowledgeFlow streams payments directly from knowledge seekers to experts only while value is being delivered.


Why KnowledgeFlow

The global consulting and knowledge economy is broken:

  • Experts wait days or weeks to get paid
  • Platforms take 20–30% commissions
  • Users must trust upfront payments for uncertain quality
  • Micro-consultations (5–20 minutes) are economically inefficient

KnowledgeFlow solves this with real-time, usage-based payments.


How It Works

  1. Connect — Users and experts connect a Stellar wallet (Freighter)
  2. Discover — Seekers browse verified experts by skill and availability
  3. Start Session — Funds are locked in a Soroban escrow contract; payment streams per second
  4. Consult — Video call or async session while payments flow continuously
  5. Settle — Session ends → stream stops → expert keeps exactly what they earned → unused funds refunded instantly

Tech Stack

Layer Technology
Frontend Next.js 14, React, Tailwind CSS
Blockchain Stellar, Soroban smart contracts
Wallet Freighter
Backend Node.js / Express (off-chain metadata)

Repository Structure

knowledgeflow-dapp/
├── frontend/               # Next.js application
│   ├── src/
│   │   ├── app/            # App Router pages
│   │   ├── components/     # UI components
│   │   ├── hooks/          # Custom React hooks
│   │   ├── lib/            # Stellar/Soroban SDK helpers
│   │   └── types/          # TypeScript types
│   └── public/
├── contracts/              # Soroban smart contracts (Rust)
│   └── src/
├── backend/                # Off-chain metadata API
│   └── src/
├── .github/
│   ├── workflows/          # CI/CD
│   └── ISSUE_TEMPLATE/
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
└── SECURITY.md

Getting Started

Prerequisites

  • Node.js ≥ 18
  • Rust + cargo (for contracts)
  • Freighter Wallet browser extension
  • Stellar testnet account

Frontend

cd frontend
npm install
cp .env.example .env.local
npm run dev

Visit: http://localhost:3000

Contracts

cd contracts
cargo build --target wasm32-unknown-unknown --release

Backend

cd backend
npm install
cp .env.example .env
npm run dev

Branching Strategy

Prefix Purpose
feat/ New features
fix/ Bug fixes
refactor/ Code refactors
docs/ Documentation

Examples: feat/session-timer-ui, fix/wallet-reconnect


Contributing

Contributions are welcome from anyone interested in:

  • Stellar & Soroban development
  • Creator monetization infrastructure
  • Open payment systems

Please read CONTRIBUTING.md before opening a pull request.


Project Status

KnowledgeFlow is under active development. Current focus:

  • Streaming payment logic
  • Expert session lifecycle
  • UX abstraction for non-crypto users

License

MIT © KnowledgeFlow contributors

About

Peer-to-peer knowledge marketplace with per-second streaming payments on Stellar — connect with experts instantly, pay only while value is being delivered.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors