All projects

GitStore

GitHub-Based Distributed File System

A distributed file storage system that transforms GitHub repositories into a personal cloud filesystem using an HDFS-inspired architecture with encryption, deduplication, and multi-layer caching.

GitStore screenshot

How it works

Distributed Node-Based Storage

  1. Client
  2. AES Encryption
  3. Chunking
  4. Parallel Upload
  5. DataNodes
  6. NameNode Index Update

Main components

  • NameNode (Index Repository)
  • DataNodes (GitHub Repositories)
  • Client (Web/Mobile App)
  • Edge Proxy (Cloudflare Workers)

Features

  • HDFS-inspired architecture using GitHub repos as data nodes
  • Chunked file uploads with parallel processing and deduplication (SHA-256)
  • Client-side AES-256-GCM encryption for secure storage
  • 5-layer caching system (memory → IndexedDB → service worker → CDN → GitHub API)
  • O(1) instant search using inverted index
  • Fault-tolerant index replication (primary + secondary repos)
  • Cloudflare CDN proxy for optimized file delivery
  • Cross-platform support including web and mobile app

Highlights

  • Replaces traditional cloud storage with GitHub-based infrastructure
  • Implements distributed system concepts in a real-world application
  • Optimized for performance using multi-layer caching and edge delivery

Core systems

Upload pipeline

  1. Hashing
  2. Chunking
  3. Encryption
  4. Parallel Upload
  5. Index Update

Cache hierarchy

  1. L1: Memory
  2. L2: IndexedDB
  3. L3: Service Worker
  4. L4: CDN
  5. L5: GitHub API

Search

O(1) search via inverted index

Security

  • AES-256-GCM Encryption
  • Private Repository Isolation
  • Auth.js Session Management
  • GitHub API Rate Limiting

Performance

  • Cloudflare Worker CDN
  • Multi-layer Caching Strategy
  • Concurrent Chunk Processing
Next projectBuySmart AI