Skip to content

Repository files navigation

InsightFlow – Futuristic B2B Analytics Platform

Turn Data Into Decisions. Instantly.

A comprehensive B2B analytics platform with a futuristic landing page, full authentication system, user analytics dashboard, and admin management panel — all built with pure HTML, CSS, and JavaScript using the RESTful Table API for data persistence.


🎯 Project Overview

InsightFlow is a complete SaaS-ready frontend that includes:

  • Landing page — High-converting gateway with particle animations and glassmorphism
  • Authentication — Login/register with session management and role-based access
  • User Dashboard — Analytics overview, performance metrics, charts, reports, profile
  • Admin Panel — Demo request management, user management, analytics data overview

✅ Completed Features

🌐 Landing Page (index.html)

  • Hero section with animated gradient orbs, stat counters, dual CTAs
  • 6 feature cards with icons, glow effects, hover animations
  • 3 B2B use cases with impact statistics
  • Interactive dashboard mockup with SVG charts
  • About section with animated orbital rings
  • 4-step "How It Works" timeline with scroll progress
  • 3 customer testimonials
  • Demo request form → saves to real database
  • Canvas particle background with mouse interaction
  • Custom AI cursor with hover states
  • Preloader animation
  • Sticky floating CTA button
  • "Enter App" button → launches auth flow
  • "Powered by Dipesh Kumar" branding with neon glow effects

🔐 Authentication System

  • Login page (login.html) — Email/password auth with error handling
  • Register page (register.html) — New account creation with validation
  • Session management — localStorage-based sessions with Table API backend
  • Role-based accessuser and admin roles with route protection
  • Demo credentials displayed on login page for easy testing

📊 User Dashboard (app.html)

  • Overview — Revenue trend chart, traffic sources donut, 4 stat cards
  • Performance — Monthly active users bar chart, conversion funnel, performance stats
  • Reports — Auto-generated report list with status badges
  • Profile — User info display with avatar, company, plan, role
  • Settings — Email notifications toggle, data connections, danger zone
  • Responsive sidebar navigation with mobile hamburger menu
  • Admin link visible for admin users

🛡️ Admin Panel (admin.html)

  • Dashboard — Total users, demo requests, plan distribution charts
  • Demo Requests — Full table with inline status updates, delete actions
  • Users — All registered users with plan/role/status/last login
  • Analytics Data — Raw metrics table with category, value, change %
  • Refresh button to reload all data
  • Toast notifications for actions

🗄️ Data Persistence (RESTful Table API)

All data is persisted using the built-in Table API with 4 tables:

TablePurpose
usersUser accounts with email, password, company, plan, role
demo_requestsLanding page demo form submissions with status tracking
analyticsBusiness metrics (revenue, users, conversion, traffic)
sessionsActive login sessions with expiry timestamps

📁 Project Structure

index.html → Landing page (entry point)
login.html → Login page
register.html → Registration page
app.html → User analytics dashboard
admin.html → Admin management panel
css/
├── style.css → Core design system, layout, responsive
├── animations.css → Scroll, hover, micro-interaction animations
└── dashboard.css → Dashboard/auth page shared styles
js/
├── api.js → API service layer (CRUD wrappers for all tables)
├── auth.js → Authentication system (login, register, session, guards)
├── particles.js → Canvas particle system with mouse interaction
├── animations.js → Intersection Observer, counters, timeline progress
└── main.js → Landing page interactions (nav, form, cursor, etc.)
README.md → This file

🌐 Functional Entry URIs

PathAuth RequiredDescription
/ or /index.htmlLanding page
/index.html#featuresFeatures section
/index.html#use-casesUse cases section
/index.html#productProduct overview
/index.html#aboutAbout section
/index.html#how-it-worksHow it works
/index.html#testimonialsTestimonials
/index.html#demoDemo request form
/login.htmlLogin page
/register.htmlRegistration page
/app.html✅ UserUser analytics dashboard
/admin.html✅ AdminAdmin management panel

🔑 Demo Credentials

RoleEmailPassword
Adminadmin@insightflow.ioadmin123
Userdemo@insightflow.iodemo123

🛠 Tech Stack

TechnologyUsage
HTML5Semantic markup
CSS3Custom properties, glassmorphism, Grid/Flexbox, clamp()
Vanilla JavaScriptNo framework dependencies
Chart.jsDashboard data visualizations
Font Awesome 6.4Icons (CDN)
Google FontsInter + Orbitron (CDN)
Canvas APIParticle background system
RESTful Table APIData persistence

📊 Database Schema

users

FieldTypeDescription
idtextUnique identifier
nametextFull name
emailtextEmail address
password_hashtextPassword (plain text for demo)
companytextCompany name
plantextfree / pro / enterprise
roletextuser / admin
avatar_initialstextTwo-letter avatar
is_activeboolAccount status
last_logindatetimeLast login timestamp

demo_requests

FieldTypeDescription
idtextUnique identifier
nametextRequester name
emailtextRequester email
companytextCompany name
company_sizetextCompany size range
messagetextOptional message
statustextnew / contacted / scheduled / completed / declined
admin_notestextAdmin notes

analytics

FieldTypeDescription
idtextUnique identifier
user_idtextAssociated user ID
metric_nametextMetric name
valuenumberMetric value
categorytextrevenue / users / conversion / performance / engagement / traffic
periodtextTime period
change_percentnumber% change from previous period
is_positiveboolWhether change is positive

sessions

FieldTypeDescription
idtextSession token
user_idtextAssociated user ID
emailtextUser email
roletextUser role
is_activeboolSession active
expires_atdatetimeExpiry timestamp

🔄 API Endpoints Used

MethodEndpointUsed By
GETtables/users?search={email}Login (find user by email)
POSTtables/usersRegistration
PATCHtables/users/{id}Update last login
GETtables/users?limit=100Admin user list, stats
POSTtables/demo_requestsLanding page demo form
GETtables/demo_requestsAdmin demo list
PATCHtables/demo_requests/{id}Admin status update
DELETEtables/demo_requests/{id}Admin delete
GETtables/analytics?limit=1000Dashboard charts, admin view
POSTtables/sessionsLogin/register session creation
PATCHtables/sessions/{id}Logout (deactivate)

🚀 User Flow

Landing Page (index.html)
├── "Request a Demo" → Demo form → Saved to DB → Success modal
├── "Enter App" → Launch animation → login.html
└── Nav links → Scroll to sections
Login (login.html)
├── Enter credentials → Auth check → Session created
├── Admin role → admin.html
└── User role → app.html
Register (register.html)
└── Create account → Session created → app.html
App Dashboard (app.html)
├── Overview → Charts + Stats from API
├── Performance → Bar charts + Metrics
├── Reports → Generated report list
├── Profile → User info
├── Settings → Preferences
└── Sign Out → Session deactivated → login.html
Admin Panel (admin.html)
├── Dashboard → Platform stats + Charts
├── Demo Requests → CRUD management
├── Users → View all users
├── Analytics Data → Raw metrics view
└── Sign Out → login.html

🚀 Recommended Next Steps

  1. Real Authentication — Replace client-side auth with JWT/OAuth server-side system
  2. Password Hashing — Implement bcrypt or similar before production
  3. Email Service — Connect demo form to email notifications
  4. Stripe Integration — Add subscription billing
  5. Real Analytics Connectors — Build actual data source integrations
  6. SEO Optimization — Add Open Graph tags, structured data, sitemap
  7. Performance — Add service worker, lazy loading, image optimization
  8. Testing — Add unit tests and E2E tests
  9. CI/CD — Set up automated deployment pipeline
  10. Multi-language — Add i18n support

⚠️ Security Notice

This is a frontend prototype using client-side authentication simulation. For production:

  • Never store passwords in plain text
  • Implement server-side JWT/OAuth authentication
  • Add CSRF protection
  • Use HTTPS exclusively
  • Implement rate limiting on the server

📄 License

© 2026 InsightFlow. Powered by Dipesh Kumar.

About

InsightFlow empowers businesses with AI-driven analytics that transform complex data into clear, actionable insights — enabling faster decisions, sharper strategies, and measurable growth.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages