A modern, responsive developer dashboard built with Svelte that provides a comprehensive interface for managing API integrations, testing endpoints, and monitoring usage.
- 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
- Generate API tokens with custom names
- View and manage active tokens
- Secure token revocation
- Copy token functionality
- Real-time API usage statistics
- Response time metrics
- Success/error rate monitoring
- Interactive charts and graphs
- Daily/weekly/monthly usage breakdown
- Account information overview
- Membership details
- Password management
- Billing integration
- Data export options
- Account deletion
- Modern, responsive design
- Light/Dark theme toggle
- Tabbed interface for easy navigation
- Consistent styling across components
- Mobile-friendly layout
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone [repository-url]
cd developer-dashboard
- Install dependencies:
npm install
- Start the development server:
npm run dev
The application will be available at http://localhost:5173
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
To create a production build:
npm run build
The build output will be in the dist
directory.
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;
...
}
To integrate with your backend API:
- Replace the mock API calls in each component with your actual API endpoints
- Add proper authentication
- Implement real-time data updates for analytics
- Add proper error handling for API calls
The tabbed interface makes it easy to add new features:
- Create a new component in
src/lib/components/
- Add the tab definition in
Tabs.svelte
- Add the route in
App.svelte
- Svelte - Frontend framework
- Vite - Build tool and development server
- Chart.js - Interactive charts and graphs
- CSS Variables - Theming system
- CSS Grid/Flexbox - Responsive layout