InsightHub
A SaaS web app that turns raw CSV files into interactive, shareable dashboards. I designed and built it solo, from database schema to deployment, in Django.
← Back to ProjectsOverview
InsightHub lets anyone sign up, upload a CSV and build a dashboard of charts with written commentary, with no spreadsheet skills or BI tools needed. Each dashboard gets its own QR code, can be public or private, and can be liked by other users. I built it as my individual semester project for Web Information Systems (INFS3202) at The University of Queensland. It was delivered in two stages: a technical design document, then a deployed, working product demonstrated live in a code review.
Role:
Solo full-stack developer: product scoping, UI design, database design, back-end and front-end development, authentication, deployment and live demo.
Tools:
- Django 5 (Python)
- django-allauth (Google & GitHub OAuth)
- pandas (CSV parsing & aggregation)
- Chart.js
- Tailwind CSS, Bootstrap, Alpine.js
- qrcode / Pillow
- Render (gunicorn) deployment
Problem
Plenty of people have useful data sitting in spreadsheets, like sales figures, website traffic or student results, but turning it into something others can understand usually means learning a BI tool, writing code, or emailing static screenshots. Sharing is just as awkward: charts get pasted into slides, lose their context, and go out of date.
The brief was to design a multi-tenant SaaS platform that closes that gap. Users should be able to go from raw CSV → narrated dashboard → shareable link in a few minutes, with proper accounts, permissions and an admin layer behind it.
Solution
InsightHub keeps the whole flow inside one guided interface. The key design decision was to profile the CSV the moment it's uploaded, so the chart builder only offers choices that make sense for the data. Users never have to type column names or guess which fields are numeric.
- Sign up your way: email and password, or one-click Google / GitHub login.
- Dashboards: create, edit and delete dashboards with a title, description and public/private toggle.
- Smart CSV upload: each file is analysed on upload (column types, unique values, samples, min/max/mean, date detection).
- Chart builder: pick bar, line or pie, choose the X column, and optionally a numeric Y column with sum or average; with no Y column it counts occurrences.
- Narrative: every chart carries its own title and description, so the dashboard tells a story rather than just showing numbers.
- Sharing: each dashboard gets a QR code. Public dashboards open for anyone; private ones ask visitors to log in and then add them as viewers.
- Social layer: logged-in users can like dashboards (the advanced feature I chose).
- Admin: a Django admin panel to manage subscribers, dashboards, charts and files.
Architecture
I kept the data model small and relational, so permissions could be enforced at the dashboard level and everything else inherits from it.
- User (Django auth + allauth social accounts) owns many Dashboards.
- Dashboard: UUID primary key (unguessable share links), title, description,
is_public, plus many-to-many links for allowed viewers and likes. - Chart: belongs to a dashboard and stores type, title, description, X/Y columns and aggregation.
- CSVFile: one-to-one with a chart, saved under a UUID-prefixed filename to avoid collisions.
Three roles sit on top of this model: superuser (manages the SaaS through the admin),
creator (owns and edits dashboards) and client/viewer (reads shared
dashboards). Pages are server-rendered with Django templates, and interactive steps like CSV analysis,
dashboard creation, login and likes call small JSON endpoints with fetch, so the page never
reloads mid-task.
Development
The chart engine is the core of the product. When a chart is rendered, the stored CSV is loaded with pandas, grouped by the chosen X column, aggregated, and returned in a shape Chart.js can draw directly. The same function serves bar and line charts, so adding a chart type is a one-line change.
# simplified from utils/chart_utils.py
def generate_grouped_chart(df, x_column, chart_type, y_column=None, operation="sum"):
if y_column:
grouped = df.groupby(x_column)[y_column]
grouped = grouped.mean() if operation == "avg" else grouped.sum()
else:
grouped = df[x_column].value_counts() # no Y column: count rows
return {
"labels": [str(v) for v in grouped.index],
"data": grouped.values.tolist(),
"type": chart_type,
}
# simplified from utils/csv_analyzer.py
for col in df.columns:
s = df[col]
info = {"type": str(s.dtype), "num_unique": int(s.nunique()),
"sample_values": s.dropna().unique()[:5].tolist()}
if pd.api.types.is_numeric_dtype(s):
info.update(min=float(s.min()), max=float(s.max()), mean=float(s.mean()))
analysis["columns"][col] = info
What I implemented
- Authentication: password accounts plus Google and GitHub OAuth through django-allauth, with credentials kept in environment variables.
- Access control: owner-only edit and delete for dashboards and charts; private dashboards check owner or invited-viewer status before rendering.
- Invite-by-link: a login signal adds a visitor as a viewer when they sign in from a private dashboard's link or QR code.
- QR generation: a QR image is created once per dashboard at creation time and cached on disk.
- Deployment: packaged with a Procfile and
render.yamland served with gunicorn on Render.
What I'd improve next
- Harden for production: move the secret key and debug flag into environment config, and switch SQLite to PostgreSQL with object storage for uploads.
- Stricter permissions: apply the same owner check to every write endpoint (including chart deletion and likes) and add tests that cover each role.
- Richer charts: histograms, box plots and scatter plots, plus filtering, so dashboards can answer more questions.
- Upload once, chart many: attach CSVs to the dashboard instead of to each chart, so users don't re-upload the same file.
Key Learnings
Building InsightHub alone meant owning every layer, and the biggest lesson was that good UX starts in the data model. Profiling the CSV up front made the interface simpler, because the system already knew which columns could be grouped or summed. That decision removed more friction than any amount of visual polish.
It also taught me that authorization is a feature, not an afterthought. In a multi-tenant product every endpoint has to answer "who owns this?" the same way. Designing around a single ownership rule at the dashboard level made the code easier to reason about and to demo confidently in the live code review.