Token Checker is an interactive web-based interface built using Streamlit for the MirAI School of Technology Virtual Summer Internship 2026: The "AI Builder" Track.
Designed as a high-fidelity, futuristic sci-fi terminal interface, it allows operator identity authentication, message transmission payload routing, and active token usage estimation.
- Designed with a premium dark glassmorphic theme featuring smooth gradients, custom typography (
OutfitandShare Tech Mono), and glowing borders. - Integrates custom CSS overrides to bypass Streamlit's default BaseWeb styling for a bespoke, branded appearance.
- Collects
Operator Identity (Name)andTransmission Message Payload (Message). - Validates fields natively upon execution:
- Displays a clean red error alert if the Name is missing.
- Displays a warm amber warning alert if the Message is missing.
- Automatically routes valid payloads through an f-string template to broadcast a custom transmission confirmation message.
- Integrates key LLM infrastructure metrics:
- Calculates the total character length of the payload.
- Estimates token consumption using the industry heuristic of 4 characters per token (
characters / 4). - Displays estimated context window metrics in a custom styled cyan status card.
- Core: Python 3.8+
- Frontend Framework: Streamlit
- Styling: Vanilla CSS (Injected DOM Overrides)
- Fonts: Outfit, Share Tech Mono (Google Fonts)
Follow these steps to run the application on your local machine:
git clone https://github.com/sahil4love/tokenchecker.git
cd tokencheckerCreate a virtual environment to keep your workspace isolated and clean:
On Linux/macOS:
python3 -m venv .venv
source .venv/bin/activateOn Windows:
python -m venv .venv
.venv\Scripts\activateEnsure Streamlit is installed inside your active virtual environment:
pip install streamlitRun the application using Streamlit:
streamlit run Streamlit/app.pyOnce initialized, open http://localhost:8501 in your browser.
- Browser Shield Support: Designed with solid text-color fallbacks so the title and components render perfectly even under strict ad-blockers/privacy shields (e.g. Brave Shields).
- Responsive Layout: Customized
.block-containerrules compress the UI vertically so that it fits onto a single screen height with zero vertical scrolling required.