--- title: Meridia Frontier TRS Simulator emoji: 🚢 colorFrom: blue colorTo: blue sdk: streamlit sdk_version: 1.32.0 app_file: app.py pinned: false license: mit --- # The Meridia Frontier — TRS Simulator A gamified Time Release Study (TRS) simulator for customs policy analysis. ## Features - 🗺 **Isometric Port View** — Live Phaser.js game canvas showing Azure Port, Vortex Air Terminal & Stone Pass - 📊 **Japan-style TRS Charts** — Stacked bar breakdown of release time segments - 📋 **Audit Ledger** — Full CSV export of every simulated Bill of Entry - ⚙ **Policy Levers** — Advance Filing, RMS Facilitation, AEO Enrollment, PGA Single Window, Deferred Duty, Auto-OOC ## How to use 1. Adjust policy sliders in the sidebar 2. Click **RUN SIMULATION** 3. Watch cargo dots appear on the isometric port map 4. Switch to **TRS REPORT** tab for the stacked bar chart 5. Download the **Audit Ledger CSV** for full data ## Tech Stack - `SimPy` — Discrete event simulation engine - `Streamlit` — Web framework - `Phaser.js 3` — Isometric game rendering (via st.components) - `Plotly` — TRS analytics charts - `Pandas` — CSV export