Skip to main content

Tech Stack

Blockchain & Smart Contracts

Core Technologies

LayerTechnologyVersionPurpose
BlockchainSui NetworkMainnetMain Infrastructure
LanguageMoveLatestSmart Contracts
Variation EngineOn-chain Movev1.0Quiz Security
StorageIPFS + Arweave-Content Storage
OraclePyth Networkv1.0Price Data

Why Sui Was Chosen

  1. High Throughput: Processes thousands of transactions per second
  2. Low Latency: Near real-time finality
  3. Parallel Processing: Independent transaction parallel execution
  4. Gas Efficiency: Predictable and low gas fees
  5. Move Language: Safe and expressive smart contracts

Frontend

Web Application Stack

ComponentTechnologyVersionRole
FrameworkNext.js14React Meta-framework
LanguageTypeScript5.0Type Safety
UI LibraryTailwind CSS3.4Styling
Componentsshadcn/uiLatestUI Components
State ManagementZustand4.4Client State
Sui Integration@mysten/sui.jsLatestBlockchain Integration
Wallet Integration@mysten/dapp-kitLatestWallet Management

Main Libraries

{
"dependencies": {
"@mysten/sui.js": "^0.48.0",
"@mysten/dapp-kit": "^0.12.0",
"next": "^14.0.0",
"react": "^18.2.0",
"typescript": "^5.0.0",
"tailwindcss": "^3.4.0",
"zustand": "^4.4.0",
"@tanstack/react-query": "^5.0.0",
"wagmi": "^2.0.0",
"viem": "^2.0.0"
}
}

Backend (Minimized)

API and Service Layer

ServiceTechnologyPurposeScalability
API ServerNode.js + ExpressMetadata ServingHorizontal
DatabasePostgreSQLOff-chain CacheRead Replica
File StorageIPFS PinningContent AvailabilityMulti-node
AuthenticationJWT + Wallet SignatureUser AuthenticationStateless
Queue SystemRedis + BullAsynchronous JobsCluster

Microservice Architecture

┌─────────────────────────────────────┐
│ API Gateway (Kong) │
└─────────────────────────────────────┘

┌─────────────┼─────────────┐
▼ ▼ ▼
┌─────────┐ ┌─────────┐ ┌─────────┐
│ Auth │ │Metadata │ │Analytics│
│ Service │ │ Service │ │ Service │
└─────────┘ └─────────┘ └─────────┘

AI & Security Layer

Variation Engine Integration

Core Features

  1. Quiz Encryption: Zero-knowledge encryption
  2. Question Transformation: Real-time variation generation
  3. Answer Validation: Semantic accuracy judgment
  4. Security Management: Key management and access control

API Endpoints

interface VariationEngine {
// Quiz encryption
encryptQuiz(content: string): Promise<EncryptedQuiz>;

// Variation generation
generateVariant(quizId: string, seed: string): Promise<TransformedQuiz>;

// Answer validation
validateAnswer(answer: string, quizId: string): Promise<boolean>;
}

Infrastructure & DevOps

Deployment Environment

EnvironmentServicePurpose
ProductionVercelFrontend Hosting
APIRailwayBackend Services
DatabaseSupabasePostgreSQL
StorageIPFS + PinataDistributed Storage
CDNCloudflareGlobal Distribution

CI/CD 파이프라인

name: Deploy Pipeline

on:
push:
branches: [main]

jobs:
test:
- Run unit tests
- Run integration tests
- Type checking

build:
- Build frontend
- Build smart contracts
- Generate artifacts

deploy:
- Deploy contracts to Sui
- Deploy frontend to Vercel
- Update API services

Monitoring & Analytics

Monitoring Stack

ToolPurposeMetrics
SentryError TrackingError Rate, Stack Traces
PosthogUser AnalyticsUser Behavior, Conversion Rate
GrafanaSystem MetricsPerformance, Availability
DatadogAPMResponse Time, Throughput

Key Metrics

  1. Business Metrics

    • DAU/MAU
    • Exam Completion Rate
    • Matching Success Rate
    • Revenue
  2. Technical Metrics

    • API Response Time
    • Transaction Success Rate
    • Gas Usage
    • Error Rate

Security Considerations

Security Layers

  1. Smart Contract Security

    • Formal verification
    • Audit by CertiK
    • Bug bounty program
  2. Application Security

    • OWASP Top 10 compliance
    • Rate limiting
    • DDoS protection
    • CSP headers
  3. Data Security

    • Encryption at rest & in transit
    • PII minimization
    • GDPR compliance

Performance Optimization

Frontend Optimization

  1. Code Splitting: Reduce bundle size with dynamic imports
  2. Image Optimization: Utilize Next.js Image component
  3. Caching Strategy: Data caching with SWR/React Query
  4. SSR/SSG: SEO and initial loading optimization

Blockchain Optimization

  1. Batch Processing: Multiple operations in single transaction
  2. Gas Optimization: Efficient data structure usage
  3. Indexing: Event-based off-chain indexing
  4. Caching: Cache frequently queried data

Development Tools

Essential Tools

# Sui CLI
cargo install --locked --git https://github.com/MystenLabs/sui.git sui

# Move Analyzer
cargo install --git https://github.com/move-language/move move-analyzer

# Development dependencies
npm install -D @types/node typescript eslint prettier

VS Code Extensions

  • Move Analyzer
  • Sui Move Syntax
  • TypeScript + ESLint
  • Tailwind CSS IntelliSense

Future Technology Roadmap

Short-term (3 months)

  • WebSocket real-time updates
  • Progressive Web App
  • Multi-language support

Mid-term (6 months)

  • Mobile App (React Native)
  • GraphQL API
  • AI recommendation system

Long-term (12 months)

  • Cross-chain support
  • Decentralized storage
  • Zero-knowledge proofs