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?

Stellar Ethereum
Transaction fee ~$0.00001 $1–50+
Finality 3–5 seconds 12+ seconds
Built-in DEX Yes (SDEX) No
Micro-rewards viable Yes No

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)    │
└─────────────┘     └─────────────┘     └─────────────┘
Repo Stack Purpose
chainlearn-contracts Rust, Soroban SDK On-chain logic — token rewards, NFT credentials, progress tracking
chainlearn-api TypeScript, Fastify, Drizzle ORM, PostgreSQL Business logic, user management, Stellar tx submission
chainlearn-frontend TypeScript, Next.js, Tailwind, shadcn/ui User-facing web app with wallet integration
chainlearn-ai Python, FastAPI, Cohere AI-powered course content, quiz generation, feedback
chainlearn-indexer TypeScript, Fastify Soroban event listener — indexes on-chain activity
chainlearn-infra Docker, Terraform, Kubernetes Infrastructure as code
chainlearn-docs Markdown, OpenAPI Architecture 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

Layer Technology
Smart Contracts Soroban (Rust)
Blockchain Stellar Network
Token Standard SEP-41
AI/ML Cohere (command-nightly, embed-english-v3.0)
Frontend Next.js 14, Tailwind CSS, shadcn/ui
Backend Fastify, TypeScript, Drizzle ORM
Database PostgreSQL, Redis
Wallet Freighter, 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 infrastructure
cd chainlearn-infra && docker compose -f docker/docker-compose.dev.yml up -d

# Deploy contracts to testnet
cd ../chainlearn-contracts && ./scripts/deploy.sh testnet

# Build AI knowledge index
cd ../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-contracts chainlearn-contracts Public

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

    Rust 1

  2. chainlearn-api chainlearn-api Public

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

    TypeScript 19

  3. chainlearn-frontend chainlearn-frontend Public

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

    TypeScript 23

  4. chainlearn-ai chainlearn-ai Public

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

    Python 2

  5. chainlearn-indexer chainlearn-indexer Public

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

    TypeScript

  6. chainlearn-docs chainlearn-docs Public

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

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…