Skip to content

Akashravic/Instant-dashboard-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instant Dashboard App

Description

This project is a simple web application that generates an instant dashboard from raw JSON data using an AI model. The user provides structured data and a short natural language prompt, and the application renders a one-page dashboard preview.


How to run the Application

  1. Clone the Repository
  1. Create and activate a virtual environment
  • python -m venv venv
  • venc\Scripts\activate
  1. Install Dependencies
  • pip install -r requirements.txt
  1. Add API key Create a .env file in the project root and add :
  • GEMINI_API_KEY=your_api_key_here
  1. Start the Server
  • python app.py
  1. Open the app in a browser

AI API Used

This Application uses the Google Gemini API to generate frontend HTML Dashboards.

  • Model: Gemini-2.5-flash (generateContent endpoint)
  • The AI is instructed to behave as a frontend developer.
  • It outputs a complete HTML file styled with Tailwind CSS.
  • Strict rules are applied to ensure the AI uses only the data provided in the JSON.

Notes

  • Invalid JSON input is handled gracefully.
  • The Dashboard preview is rendered inside an iframe.
  • Generated dashboards can be downloaded as an image.

About

A web app that uses an LLM to transform JSON data into instant dashboards. It generates complete HTML layouts with charts, enforces strict data accuracy, and renders a live preview that can be downloaded as an image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors