developer-dashboard-svelte Svelte Themes

Developer Dashboard Svelte

Developer Dashboard

A modern, responsive developer dashboard built with Svelte that provides a comprehensive interface for managing API integrations, testing endpoints, and monitoring usage.

Features

šŸ”® API Playground

  • Interactive API testing interface
  • Multiple AI model selection (GPT-4, GPT-3.5, Claude-2)
  • Adjustable parameters (temperature, max tokens)
  • Real-time Python code generation
  • Code copying functionality

šŸ”‘ API Key Management

  • Generate API tokens with custom names
  • View and manage active tokens
  • Secure token revocation
  • Copy token functionality

šŸ“Š Usage Analytics

  • Real-time API usage statistics
  • Response time metrics
  • Success/error rate monitoring
  • Interactive charts and graphs
  • Daily/weekly/monthly usage breakdown

šŸ‘¤ Profile Management

  • Account information overview
  • Membership details
  • Password management
  • Billing integration
  • Data export options
  • Account deletion

šŸŽØ User Interface

  • Modern, responsive design
  • Light/Dark theme toggle
  • Tabbed interface for easy navigation
  • Consistent styling across components
  • Mobile-friendly layout

Getting Started

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

  1. Clone the repository:

    git clone [repository-url]
    cd developer-dashboard
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm run dev
    

The application will be available at http://localhost:5173

Development

Project Structure

src/
ā”œā”€ā”€ lib/
ā”‚   ā”œā”€ā”€ components/
ā”‚   ā”‚   ā”œā”€ā”€ Analytics.svelte    # Usage analytics dashboard
ā”‚   ā”‚   ā”œā”€ā”€ ApiPlayground.svelte # API testing interface
ā”‚   ā”‚   ā”œā”€ā”€ ApiToken.svelte     # Token management
ā”‚   ā”‚   ā”œā”€ā”€ Navbar.svelte      # Navigation bar with theme toggle
ā”‚   ā”‚   ā”œā”€ā”€ Profile.svelte     # User profile management
ā”‚   ā”‚   ā””ā”€ā”€ Tabs.svelte        # Tab navigation
ā”‚   ā””ā”€ā”€ stores/
ā”‚       ā”œā”€ā”€ theme.js           # Theme state management
ā”‚       ā””ā”€ā”€ tabs.js           # Tab state management
ā”œā”€ā”€ App.svelte                # Main application component
ā””ā”€ā”€ main.js                  # Application entry point

Building for Production

To create a production build:

npm run build

The build output will be in the dist directory.

Customization

Theme

The application uses CSS variables for theming. You can customize the colors by modifying the variables in app.css:

:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --accent-primary: #0d6efd;
  ...
}

API Integration

To integrate with your backend API:

  1. Replace the mock API calls in each component with your actual API endpoints
  2. Add proper authentication
  3. Implement real-time data updates for analytics
  4. Add proper error handling for API calls

Adding New Features

The tabbed interface makes it easy to add new features:

  1. Create a new component in src/lib/components/
  2. Add the tab definition in Tabs.svelte
  3. Add the route in App.svelte

Technologies Used

  • Svelte - Frontend framework
  • Vite - Build tool and development server
  • Chart.js - Interactive charts and graphs
  • CSS Variables - Theming system
  • CSS Grid/Flexbox - Responsive layout

Top categories

Loading Svelte Themes