File size: 1,162 Bytes
05945bd
3f9d5ac
 
 
 
 
 
 
05945bd
3f9d5ac
05945bd
 
3f9d5ac
05945bd
3f9d5ac
05945bd
3f9d5ac
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
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