Skip to content

Repository files navigation

API Cascading Demo

πŸ”— API Cascading Demo

Empirical Validation of Mirror API Theory

Published Research Platform | 415+ Views | 20+ Downloads

Live Demo SSRN License Views Build


🎯 Overview

Interactive research platform demonstrating empirical validation of the Mirror API Theory β€” analyzing how API middleware layers compound latency and create security vulnerabilities in distributed systems.

Published Research: The Cascading Effects of Repackaged APIs

⚠️ Note: This platform demonstrates 391-8051% latency penalties in real-world cascaded APIs. Results are empirically validated.

πŸŽ“ Research: Based on published SSRN paper with academic citations


⚑ Key Findings

  • 391-8051% latency penalties measured in real-world cascaded APIs
  • 70% failure rate in heavily proxied endpoints
  • 10-40x jitter amplification across middleware layers
  • Security "auditability vacuum" enabling malicious actor masking

πŸ§ͺ Features

Feature Description Status
πŸ§ͺ API Testing Lab Real-time latency measurement βœ… Live
πŸ“Š Visualizations Interactive charts & graphs βœ… Live
πŸ“ˆ Statistical Analysis Mean, jitter, success rates βœ… Live
πŸ’Ύ Data Export CSV, PDF reports βœ… Live
πŸ“± Responsive Design Mobile & desktop βœ… Live

πŸ§ͺ API Testing Lab

  • Real-time latency measurement for direct vs cascaded endpoints
  • Statistical analysis: mean, jitter (Οƒ), min/max, success rates
  • Interactive visualizations: line charts, bar comparisons, scatter plots
  • Export functionality: CSV, PDF reports

πŸ“Š Interactive Demos

  • Latency Simulator: Visualize cascading delay accumulation
  • Security Demo: Understand the auditability vacuum
  • Economic Calculator: Calculate cost of API repackaging
  • Chain Builder: Explore different cascade configurations

πŸ“„ Research Integration

  • Full methodology documentation
  • Academic paper access
  • Citation information
  • Google Scholar integration

πŸš€ Quick Start

# Clone repository
git clone https://github.com/tejasprasad2008-afk/api-cascading-demo.git
cd api-cascading-demo

# Install dependencies
npm install

# Run development server
npm run dev

Open http://localhost:3000 in your browser.

πŸ”— Live Demo: https://api-cascading-demo.vercel.app/


πŸ“Š Tech Stack

React TypeScript Tailwind Vite Vercel

  • Framework: Vite + React 19
  • Styling: Tailwind CSS v4
  • Charts: Recharts
  • Animations: Framer Motion
  • UI Components: Radix UI + Custom components
  • Deployment: Vercel
  • Type Safety: TypeScript 5

πŸ“Έ Screenshots

Testing Lab

API Testing Lab β€” Real-time latency analysis


πŸ”¬ Research Context

This platform provides empirical validation for published research on API cascading effects:

Paper Title: The Cascading Effects of Repackaged APIs: Legal, Economic, and Technical Implications

Abstract: This study investigates how downstream services repackage upstream API access, creating cascading vulnerabilities across three vectors:

  1. Compounding network latency (including stochastic jitter)
  2. Mirror Effect of data distortion and policy dilution
  3. Erosion of economic sustainability for foundational providers

Proposed Solution: Zero-Trust Recursive Signature (UIC) architecture

Usage β€” Testing API Endpoints

  1. Navigate to /demos/api-testing-lab
  2. Enter Direct API URL (e.g., https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd)
  3. Enter Cascaded URL (e.g., through AllOrigins proxy)
  4. Click "Run Test"
  5. View real-time results and export data

Example API Pairs

CoinGecko (Cryptocurrency Data):

  • Direct: https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd
  • Cascaded: https://api.allorigins.win/get?url=https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd

JSONPlaceholder (Test API):

  • Direct: https://jsonplaceholder.typicode.com/posts/1
  • Cascaded: https://api.allorigins.win/get?url=https://jsonplaceholder.typicode.com/posts/1

πŸ“ˆ Research Impact

πŸ“„ Publication: SSRN Electronic Journal
πŸ‘οΈ Views: 415+
πŸ“₯ Downloads: 20+
πŸ—“οΈ Published: February 2026
🌐 Live Demo: api-cascading-demo.vercel.app

πŸ—‚οΈ Project Structure

api-cascading-demo/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ components/      # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ demos/           # Interactive demo pages
β”‚   β”‚   β”‚   └── api-testing-lab/  # Main testing platform
β”‚   β”‚   β”œβ”€β”€ lib/             # Utilities and helpers
β”‚   β”‚   β”œβ”€β”€ pages/           # Route pages
β”‚   β”‚   └── App.tsx          # Root application component
β”‚   β”œβ”€β”€ styles/              # Global styles
β”‚   └── main.tsx             # Entry point
β”œβ”€β”€ public/                  # Static assets
β”œβ”€β”€ index.html               # HTML template
β”œβ”€β”€ vite.config.ts           # Vite configuration
β”œβ”€β”€ vercel.json              # Vercel deployment config
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE
└── package.json

πŸ“ Citation

@article{prasad2026cascading,
  title={The Cascading Effects of Repackaged APIs: Legal, Economic, and Technical Implications},
  author={Prasad, Tejas},
  journal={SSRN Electronic Journal},
  year={2026},
  url={https://papers.ssrn.com/abstract=6055034}
}

🀝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

MIT License β€” See LICENSE file for details.


πŸ‘€ Author

Tejas Prasad

Links


⭐ Star this repo if you find it useful!

Made with ❀️ by Tejas Prasad

GitHub SSRN Google Scholar


⚠️ Disclaimer

This research platform uses publicly available APIs for demonstration purposes:

  • CoinGecko API: Used under fair use for research/educational purposes
  • AllOrigins Proxy: Public CORS proxy service
  • JSONPlaceholder: Free test API designed for demonstrations

All API endpoints used are publicly accessible and used within their terms of service. This project does not store, resell, or commercially exploit any data from these services.

For production use, please use direct API connections and respect rate limits.


About

Empirical validation of the 'Mirror API Effect.' Quantifying 8051% latency penalties and proposing Zero-Trust UIC architectures for the digital supply chain.

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages