A Streamlit-powered app that transforms complex JSON Schemas into clear, human-readable summaries and visualizations. Perfect for developers, data analysts, and anyone working with API or data schemas.
- Paste any JSON Schema and get a concise, structured summary.
- Model selection: Choose from multiple Gemini models for analysis.
- Automatic extraction of schema titles, field summaries, subfields, and required fields.
- Interactive visualization: See fields and subfields with badges for required properties.
- Paste your JSON Schema into the app.
- Pick a Gemini model from the sidebar.
- Click "Analyze" to generate a simplified summary.
- View results: Schema title, field summaries, subfields, and required subfields are displayed with visual badges.
- Clone the repo:
git clone https://github.com/TheCarBun/Schema-Visualizer.git
cd Schema-Visualizer- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
- Create a
.envfile with your Google Gemini API credentials.
- Run the app:
streamlit run app.py{
"schema_title": "User API Schema",
"fields": [
{
"field_name": "user_info",
"summary": "This object contains essential user details, including unique identifiers and contact information.",
"subfields": ["user_id", "email"],
"required_subfields": ["user_id", "email"]
},
{
"field_name": "preferences",
"summary": "This object holds various user settings, such as theme and notification options.",
"subfields": ["theme", "notifications"],
"required_subfields": []
}
]
}- Streamlit for UI
- Pydantic for schema validation
- Google Gemini API for schema analysis
- dotenv for environment management
Pull requests and suggestions are welcome!
Feel free to open issues for bugs or feature requests.
This project is licensed under the Apache 2.0 License.
Happy Streamliting! 🎉
