Skip to content

TheCarBun/Schema-Visualizer

Repository files navigation

🗒️ Schema Visualizer

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.

gif

✨ Features

  • 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.

🛠️ How It Works

  1. Paste your JSON Schema into the app.
  2. Pick a Gemini model from the sidebar.
  3. Click "Analyze" to generate a simplified summary.
  4. View results: Schema title, field summaries, subfields, and required subfields are displayed with visual badges.

📦 Installation

  1. Clone the repo:
git clone https://github.com/TheCarBun/Schema-Visualizer.git
cd Schema-Visualizer
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:
  • Create a .env file with your Google Gemini API credentials.
  1. Run the app:
streamlit run app.py

🧩 Example Output

{
  "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": []
    }
  ]
}

🧑‍💻 Technologies Used


💡 Contributing

Pull requests and suggestions are welcome!
Feel free to open issues for bugs or feature requests.


📄 License

This project is licensed under the Apache 2.0 License.


Happy Streamliting! 🎉

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages