Skip to content

Maneesh-Relanto/Progressbar-Slider-Utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– AI Progress Controls

Production-ready UI components for AI/ML workflows

React โ€ข Next.js โ€ข Web Components โ€ข Drop in with one import

npm version npm version npm version

TypeScript MIT License Bundle Size

Tests Coverage Accessibility

๐ŸŽฏ 7 Components โ€ข ๐Ÿ“ฆ 10 Examples โ€ข ๐Ÿ“– Complete Docs โ€ข โœ… Published on npm


๐Ÿš€ Why AI Progress Controls?

Stop rebuilding the same AI UI components for every project. Get production-ready components that work with ANY framework:

โœจ Developer Experience

โš›๏ธ React & Next.js Ready - Native adapters with hooks & SSR
๐ŸŽฏ One Import Away - Single import, drop in JSX, done
๐Ÿ”Œ Web Components - Works everywhere (Vue, Angular, Svelte, plain HTML)
๐Ÿ“ฆ Zero Dependencies - Lightweight and fast (~28KB gzipped)
๐ŸŽจ Fully Themeable - CSS variables, dark mode ready
๐Ÿ“˜ TypeScript First - Complete type definitions included

๐Ÿค– AI-Aware Features

โšก Token Streaming - Real-time visualization with rate tracking
๐Ÿ’ฐ Cost Estimation - Built-in pricing calculations
๐Ÿ”„ Retry Logic - Exponential backoff strategies
๐Ÿ“Š Queue Management - Position tracking with ETA
๐ŸŽฏ Batch Processing - Concurrency control & item tracking
๐ŸŽ›๏ธ Parameter Controls - Unified LLM configuration panels

๐ŸŽจ Visual Customization

โœ… 4 Visual Variants - default, minimal, gradient, glassmorphic
โœ… 4 Animation Effects - none, striped, pulse, glow
โœ… 3 Size Variants - compact, default, large
โœ… 5 Brand Themes - OpenAI, Anthropic, Google AI, Cohere, Dark
โœ… Cursor Feedback - Automatic state indication
โœ… Smooth Animations - Hardware-accelerated transitions

๐ŸŽฏ Production Stats

7 Components 10 Examples 292 Tests 91.34% Coverage 0 Errors
Fully documented Copy-paste ready 100% passing Exceeds 80% target SonarQube clean

โšก Quick Start - Choose Your Framework

๐ŸŽฏ 2-Minute Quick Start Guide - Get running in 30 seconds!

โš›๏ธ React / Next.js (Recommended)

npm install ai-progress-controls ai-progress-controls-react
import { StreamProgress } from 'ai-progress-controls-react';

function App() {
  return <StreamProgress maxTokens={2000} />;
}

That's it! Props sync automatically, no refs needed.

๐Ÿ“– React Guide โ€ข ๐Ÿ“– Next.js Guide

๐ŸŒ Web Components (Universal)

Works in Vue, Angular, Svelte, or plain JavaScript:

import { StreamProgress } from 'ai-progress-controls';

const progress = new StreamProgress({ maxTokens: 2000 });
document.body.appendChild(progress);

That's it! Import, create, append - works in any framework.

๐ŸŽฏ Quick Start โ€ข ๐Ÿ“ฆ Installation Guide โ€ข ๐ŸŽฎ Examples


๐Ÿ“ฆ Framework Integration

Choose the best package for your stack

โš›๏ธ React

npm install ai-progress-controls-react

Features:

  • โœ… Hooks-based API
  • โœ… Props sync automatically
  • โœ… TypeScript support
  • โœ… React 18+ compatible

๐Ÿ“– React Documentation

โ–ฒ Next.js

npm install ai-progress-controls-next

Features:

  • โœ… Full SSR support
  • โœ… App Router ready
  • โœ… No hydration errors
  • โœ… Auto client components

๐Ÿ“– Next.js Documentation

๐ŸŒ Web Components

npm install ai-progress-controls

Features:

  • โœ… Framework-agnostic
  • โœ… Vue, Angular, Svelte
  • โœ… Plain JavaScript
  • โœ… Zero dependencies

๐Ÿ“– Web Components Guide


๐ŸŽฎ Live Demo

git clone https://github.com/Maneesh-Relanto/ai-progress-controls.git
cd ai-progress-controls
npm install
npm run dev

๐ŸŒ Open http://localhost:5173

๐Ÿ  Homepage ๐Ÿ“š Examples Gallery
Interactive demos of all 7 components 10 copy-paste examples

๐Ÿ’ก Pro Tip: Open index.html directly in your browser to see all components in action!


๐Ÿ“ฆ What's Included

๐ŸŽฏ 7 Production-Ready Components

๐ŸŒŠ StreamProgress

Real-time token streaming visualization

โœ“ Rate tracking (tokens/sec)
โœ“ Cost estimation
โœ“ Live progress updates

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐Ÿ“ฅ ModelLoader

Multi-stage model loading

โœ“ Download progress
โœ“ Memory usage tracking
โœ“ Per-stage ETA

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐ŸŽ›๏ธ ParameterSlider

Single LLM parameter control

โœ“ Temperature, top-p, etc.
โœ“ Preset configurations
โœ“ Manual input support

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐ŸŽš๏ธ ParameterPanel ๐Ÿ†•

Multi-parameter configuration

โœ“ Grouped controls
โœ“ Preset management
โœ“ Export/import configs
โœ“ Custom validation

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

โณ QueueProgress

Queue position tracking

โœ“ Live position updates
โœ“ ETA calculation
โœ“ Processing rate

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐Ÿ”„ RetryProgress

Exponential backoff retry

โœ“ 4 retry strategies
โœ“ Automatic retry logic
โœ“ Error handling

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐Ÿ“Š BatchProgress

Batch processing progress

โœ“ Multiple items
โœ“ Concurrency control
โœ“ Individual tracking

๐Ÿ“– Docs โ€ข ๐ŸŽฎ Demo

๐Ÿ“š Complete Documentation

๐Ÿ“– Getting Started ๐ŸŽฎ 28+ Examples ๐Ÿ“˜ API Reference ๐ŸŽจ Theming Guide
Quick setup guide 4-6 per component 1,100+ lines each CSS variables

๐ŸŽฏ Problem & Solution

โŒ The Problem

Developers building AI apps face repetitive UI challenges:

  • ๐Ÿ”ด Generic progress bars don't show AI context (tokens, costs, queues)
  • ๐Ÿ”ด Manual implementation of LLM controls = inconsistent UX
  • ๐Ÿ”ด No standard components for AI operations
  • ๐Ÿ”ด Framework lock-in forces rebuilding for React/Vue/Angular
  • ๐Ÿ”ด Poor DX integrating with streaming AI APIs

โœ… Our Solution

Specialized UI components built FOR AI workflows:

  • ๐ŸŸข AI-aware components with token tracking, cost estimation
  • ๐ŸŸข Production-ready - just import and use
  • ๐ŸŸข Works everywhere - framework-agnostic Web Components
  • ๐ŸŸข Zero dependencies - lightweight and fast
  • ๐ŸŸข TypeScript first - complete type safety

๐Ÿ‘ฅ Target Audience

Frontend & Fullstack developers building AI-powered applications

๐ŸŽฏ Primary Users

  • ๐Ÿค– Developers integrating OpenAI/Anthropic/other LLM APIs
  • ๐Ÿข Teams building internal AI tools and dashboards
  • ๐Ÿ’ผ Indie hackers creating AI SaaS products
  • ๐Ÿ”ฌ ML engineers adding UIs to inference pipelines
  • ๐Ÿ› ๏ธ Developer tool creators building AI-enhanced IDEs

๐Ÿ’ก Use Cases

  • ๐Ÿ’ฌ Chatbot interfaces with streaming responses
  • ๐Ÿ–ผ๏ธ Image generation tools (Stable Diffusion, DALL-E)
  • ๐Ÿ“„ Batch document processing systems
  • โœ๏ธ AI content creation platforms
  • ๐ŸŽ›๏ธ Model fine-tuning dashboards
  • ๐ŸŽค Voice/audio transcription services

๐Ÿ“Š Project Status

๐Ÿš€ v0.1.0 - Production Ready

Status Components Examples Docs

โœ… Completed

๐ŸŽฏ Components (7/7)

  • โœ… StreamProgress - Token streaming
  • โœ… ModelLoader - Multi-stage loading
  • โœ… ParameterSlider - LLM controls
  • โœ… QueueProgress - Queue tracking
  • โœ… RetryProgress - Retry logic
  • โœ… BatchProgress - Batch processing

๐Ÿ“š Documentation

  • โœ… 10 interactive examples (visual variants, theming, cursor states)
  • โœ… Complete API docs (400+ lines each)
  • โœ… Getting started guide
  • โœ… TypeScript definitions
  • โœ… Visual variants guide

โœ… Testing & Quality Assurance

Tests Coverage Framework

292 tests โ€ข 100% pass rate โ€ข ~7.2s execution time

๐Ÿ“Š Test Coverage by Component

Component Tests Status
๐ŸŽ›๏ธ ParameterPanel 55 โœ…
๐ŸŒŠ StreamProgress 49 โœ…
๐Ÿ“Š BatchProgress 46 โœ…
๐Ÿ”„ RetryProgress 40 โœ…
โณ QueueProgress 36 โœ…
๐ŸŽ›๏ธ ParameterSlider 34 โœ…
๐Ÿ“ฅ ModelLoader 32 โœ…
TOTAL 292 โœ… 100%

๐Ÿงช What's Tested

โœ… Lifecycle Methods - start, update, complete, cancel, reset
โœ… Event Emission - All custom events verified
โœ… State Management - State transitions & accuracy
โœ… Properties - Getters, setters, disabled states
โœ… Rendering - Shadow DOM & dynamic updates
โœ… Accessibility - ARIA attributes & roles
โœ… Edge Cases - Boundary values, rapid operations
โœ… Validation - Custom validation functions
โœ… Persistence - localStorage save/load

๐Ÿ”ฌ Test Framework: Vitest with jsdom โ€ข โšก Fast: ~7.2s for 292 tests โ€ข ๐ŸŽฏ Comprehensive: Every public API + visual variants tested

Run Tests: npm test

๐Ÿšง Next Steps

Priority Task Status
๐Ÿ”ด High npm package publishing Ready
๐ŸŸก Medium Documentation website (GitHub Pages) Planned
๐ŸŸก Medium E2E tests Planned
๐ŸŸข Low Additional components (6+ identified) Roadmap

๐Ÿ”ฅ Framework Support - Works Everywhere!

One component. Any framework. Zero configuration.

โš›๏ธ React / Next.js

import { StreamProgress } from 'ai-progress-controls';
const progress = new StreamProgress();
containerRef.current.appendChild(progress);

๐Ÿ’š Vue / Nuxt

import { StreamProgress } from 'ai-progress-controls'; const progress = new StreamProgress();
container.value.appendChild(progress);

๐Ÿ…ฐ๏ธ Angular

import { StreamProgress } from 'ai-progress-controls';
const progress = new StreamProgress();
this.container.nativeElement.appendChild(progress);

๐Ÿงก Svelte / SvelteKit

import { StreamProgress } from 'ai-progress-controls';
const progress = new StreamProgress();
container.appendChild(progress);

๐ŸŸฆ SolidJS

import { StreamProgress } from 'ai-progress-controls';
const progress = new StreamProgress();
container?.appendChild(progress);

โšก Vanilla JS

import { StreamProgress } from 'ai-progress-controls';
const progress = new StreamProgress();
document.body.appendChild(progress);

Also works with: Preact โ€ข Lit โ€ข Astro โ€ข Qwik โ€ข Ember โ€ข And any other JavaScript framework!

๐Ÿ“– See full framework examples


๐ŸŽจ Features

๐Ÿ—๏ธ Architecture

โœ… Web Components (native browser standard)
โœ… Shadow DOM encapsulation
โœ… Zero dependencies
โœ… ~28KB gzipped (all 7 components)
โœ… TypeScript strict mode

๐ŸŽฏ AI-Specific

โœ… Token counting & rate tracking
โœ… Cost estimation ($/token)
โœ… Queue position & ETA
โœ… Retry strategies (4 types)
โœ… Batch concurrency control

โ™ฟ Accessibility

โœ… WCAG AA compliant (4.5:1 contrast)
โœ… ARIA attributes & roles
โœ… Keyboard navigation support
โœ… Screen reader optimized
โœ… Focus management

๐ŸŽจ Theming

โœ… CSS custom properties
โœ… Dark mode ready
โœ… Reduced motion support
โœ… High contrast mode
โœ… Fully customizable


๐Ÿ›ฃ๏ธ Roadmap

โœ… Phase 1

Core Architecture

โœ… Web Components
โœ… TypeScript setup
โœ… Build pipeline
โœ… Dev environment

โœ… Phase 2

Components

โœ… StreamProgress
โœ… ModelLoader
โœ… ParameterSlider
โœ… QueueProgress
โœ… RetryProgress
โœ… BatchProgress
โœ… ParameterPanel ๐Ÿ†•

โœ… Phase 3

Visual Variants & Animations ๐ŸŽจ

โœ… 4 Visual Variants (default, minimal, gradient, glassmorphic)
โœ… 4 Animation Effects (none, striped, pulse, glow)
โœ… 3 Size Variants (compact, default, large)
โœ… Cursor States (auto-updating based on component state)
โœ… 48 additional tests (292 total)

โœ… Phase 4

Documentation & Examples ๐Ÿ“š

โœ… 10 Examples - Interactive demos
โœ… 7 API Docs - Complete references
โœ… Visual Variants Guide - Customization
โœ… Theming Guide - CSS variables
โœ… Getting Started - Quick setup

๐Ÿ”ฎ Future Components

  • ๐Ÿ”„ WorkflowProgress - Multi-step AI pipeline visualization
  • ๐Ÿ“Š ConfidenceThreshold - Adjustable confidence sliders with previews
  • ๐ŸŽฏ ModelComparison - Side-by-side model performance comparison
  • ๐Ÿ“ˆ MetricsDisplay - Real-time metrics dashboard for AI operations
  • ๐Ÿ“ค FileUploadProgress - Drag-drop file uploads for AI processing
  • ๐ŸŽต TranscriptionProgress - Real-time audio transcription visualization

๏ฟฝ๏ธ Quality & Testing

We maintain enterprise-grade quality standards with multiple layers of automated validation:

Validation Tool Status Metric
๐Ÿงช Unit Tests Vitest โœ… 292 tests passing
๐Ÿ“Š Coverage Vitest โœ… 91.34% (target: 80%)
๐Ÿ”’ Type Safety TypeScript โœ… Strict mode, 0 errors
โœจ Code Quality SonarQube โœ… 0 critical issues
๐ŸŽจ Formatting Prettier โœ… Auto-formatted
โšก Performance Lighthouse โœ… 95+ scores
โ™ฟ Accessibility Axe + Lighthouse โœ… WCAG 2.1 AA
๐Ÿ” Security npm audit โœ… 0 vulnerabilities

---## ๐Ÿ“– Documentation

Resource Description Link
๐Ÿ“˜ Getting Started Setup guide for all frameworks View
๐Ÿ“š API Reference Complete API docs (7 components) View
๐ŸŽฎ Examples 10 interactive examples View
๐ŸŽจ Visual Variants Customization & animations View
๐Ÿ–Œ๏ธ Theming Guide CSS variables & brand themes View
โ™ฟ Accessibility WCAG compliance details View

๐Ÿค Contributing

Contributions welcome! This is an open-source project aimed at improving DX for AI application developers.


๐Ÿ“„ License

MIT License - See LICENSE file for details

Copyright ยฉ 2026 Maneesh Thakur


Built with โค๏ธ for the AI developer community

โญ Star this repo if you find it useful! โญ

GitHub stars Follow

About

Production-ready UI controls for AI/ML workflows. Streaming progress, model loading, LLM parameters. React/Next.js adapters + Web Components. TypeScript. 292 tests. 91% coverage.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors