Skip to content
@ChainLearnOfficial

ChainLearn

AI-driven education platform with blockchain rewards on the Stellar network. Learn, earn tokens, and claim on-chain credentials.

ChainLearn Logo

ChainLearn

AI-Powered Learning. On-Chain Credentials. Real Rewards.

Contracts · API · Frontend · AI · Indexer


What is ChainLearn?

ChainLearn is a personalized learning management system that rewards learners with on-chain tokens and verifiable credentials — built on Stellar with Soroban smart contracts.

We believe education is the gateway to financial inclusion. ChainLearn makes learning accessible, rewarding, and verifiable for anyone with a Stellar wallet — especially in emerging markets where traditional credentials are hard to obtain and easy to forge.

How It Works

Connect Wallet → Pick a Course → Learn → Take a Quiz → Earn Tokens → Get Certified
  1. Connect your Stellar wallet (Freighter, Albedo, LOBSTR)
  2. Choose from AI-curated courses adapted to your background, goals, and pace
  3. Learn with dynamic content generated by Cohere's LLM
  4. Quiz and earn SEP-41 tokens for scores above 50%
  5. Complete all modules and mint an on-chain NFT credential

Why Stellar?

StellarEthereum
Transaction fee~$0.00001$1–50+
Finality3–5 seconds12+ seconds
Built-in DEXYes (SDEX)No
Micro-rewards viableYesNo

Stellar's low fees make learning micro-rewards economically viable — something impossible on chains where gas exceeds reward value.

Architecture

┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Frontend │────▶│ API Server │────▶│ AI Service │
│ (Next.js) │◀────│ (Fastify) │◀────│ (FastAPI) │
└──────┬──────┘ └──────┬──────┘ └──────────────┘
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Stellar │ │ PostgreSQL │ │ Indexer │
│ (Soroban) │ │ + Redis │ │ (Events) │
└─────────────┘ └─────────────┘ └─────────────┘
RepoStackPurpose
chainlearn-contractsRust, Soroban SDKOn-chain logic — token rewards, NFT credentials, progress tracking
chainlearn-apiTypeScript, Fastify, Drizzle ORM, PostgreSQLBusiness logic, user management, Stellar tx submission
chainlearn-frontendTypeScript, Next.js, Tailwind, shadcn/uiUser-facing web app with wallet integration
chainlearn-aiPython, FastAPI, CohereAI-powered course content, quiz generation, feedback
chainlearn-indexerTypeScript, FastifySoroban event listener — indexes on-chain activity
chainlearn-infraDocker, Terraform, KubernetesInfrastructure as code
chainlearn-docsMarkdown, OpenAPIArchitecture docs, API specs, diagrams

Smart Contracts

Three Soroban contracts power the on-chain layer:

  • Learn Token — SEP-41 fungible token. Mints proportional rewards for quiz performance.
  • Credential NFT — Verifiable course completion certificates stored on Stellar.
  • Progress Tracker — Enrolls learners, tracks module completion and quiz scores on-chain.

Tech Stack

LayerTechnology
Smart ContractsSoroban (Rust)
BlockchainStellar Network
Token StandardSEP-41
AI/MLCohere (command-nightly, embed-english-v3.0)
FrontendNext.js 14, Tailwind CSS, shadcn/ui
BackendFastify, TypeScript, Drizzle ORM
DatabasePostgreSQL, Redis
WalletFreighter, Albedo, Stellar Wallets Kit

Getting Started

# Clone all repos
git clone https://github.com/ChainLearnOfficial/chainlearn-contracts.git
git clone https://github.com/ChainLearnOfficial/chainlearn-api.git
git clone https://github.com/ChainLearnOfficial/chainlearn-frontend.git
git clone https://github.com/ChainLearnOfficial/chainlearn-ai.git
git clone https://github.com/ChainLearnOfficial/chainlearn-indexer.git
# Start infrastructurecd chainlearn-infra && docker compose -f docker/docker-compose.dev.yml up -d
# Deploy contracts to testnetcd ../chainlearn-contracts && ./scripts/deploy.sh testnet
# Build AI knowledge indexcd ../chainlearn-ai && python scripts/build_index.py
# Start services (each in a separate terminal)cd ../chainlearn-api && npm run dev
cd ../chainlearn-ai && uvicorn src.main:app --reload
cd ../chainlearn-indexer && npm run dev
cd ../chainlearn-frontend && npm run dev

Contributing

We welcome contributions across all repositories. Look for issues labeled:

  • good first issue — Great for newcomers
  • tests — Help us improve coverage
  • bug — Fix something broken
  • enhancement — Build new features

See the issue tracker in each repo for details.

License

See individual repositories for license information.


Built with care for learners everywhere.

Popular repositories Loading

  1. chainlearn-api chainlearn-apiPublic

    Backend API for ChainLearn — course management, user progress, and Stellar integration.

    TypeScript 1 74

  2. chainlearn-contracts chainlearn-contractsPublic

    Soroban smart contracts for ChainLearn — LEARN token, credential NFTs, and reward distribution on Stellar.

    Rust 62

  3. chainlearn-frontend chainlearn-frontendPublic

    AI-driven education platform with blockchain rewards on the Stellar network. Learn, earn LEARN tokens, and claim on-chain credential NFTs.

    TypeScript 60

  4. chainlearn-ai chainlearn-aiPublic

    AI engine for ChainLearn — personalized course recommendations and adaptive learning paths.

    Python 2

  5. chainlearn-indexer chainlearn-indexerPublic

    Blockchain indexer for ChainLearn — tracks LEARN token transfers, credential mints, and on-chain activity on Stellar.

    TypeScript

  6. chainlearn-docs chainlearn-docsPublic

    Documentation for the ChainLearn platform — architecture, APIs, and user guides.

    1

Repositories

Showing 8 of 8 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…