Cardputer Forge is a sophisticated, modern web-based configuration interface for the Cardputer ADV platform. It empowers users to seamlessly connect to their device, install and update firmware and bootloaders, and fine-tune device parameters through an intuitive and visually stunning UI. The application leverages the Web Serial API for direct browser-to-device communication, eliminating the need for complex desktop software. The interface is designed to be a masterpiece of both form and function, providing a clear, guided experience for beginners while offering advanced tools like a serial console for power users.
- Browser-Based Connection: Connect directly to your Cardputer device using the Web Serial API—no desktop software required.
- Firmware Flashing: Easily upload and flash new firmware and bootloaders to your device with a clear progress indicator.
- Device Configuration: Intuitively view and modify device parameters through a structured settings interface.
- Live Serial Console: Monitor raw device output and send commands in real-time for advanced debugging and interaction.
- Modern & Responsive UI: A beautiful, clean, and responsive interface built with shadcn/ui and Tailwind CSS for a seamless experience on any device.
- Frontend: React, Vite, TypeScript
- Backend: Hono on Cloudflare Workers
- UI: Tailwind CSS, shadcn/ui, Framer Motion
- State Management: Zustand
- Icons: Lucide React
- Notifications: Sonner
-
Clone the repository:
git clone https://github.com/your-username/cardputer-forge.git cd cardputer-forge -
Install dependencies: This project uses Bun as the package manager.
bun install
To start the development server, which includes the Vite frontend and a local Wrangler instance for the backend API, run:
bun run devThe application will be available at http://localhost:3000.
src/: Contains the React frontend application code.pages/: Main pages/views of the application.components/: Reusable React components, including shadcn/ui components.hooks/: Custom React hooks.lib/: Utility functions and libraries.stores/: Zustand state management stores.
worker/: Contains the Hono backend code for the Cloudflare Worker.shared/: TypeScript types and constants shared between the frontend and backend.
This application is designed to be deployed on the Cloudflare network.
-
Login to Cloudflare: If you haven't already, authenticate with your Cloudflare account.
bunx wrangler login
-
Deploy the application: Run the deploy script, which will build the application and deploy it to your Cloudflare account.
bun run deploy
Alternatively, you can deploy directly from your GitHub repository with a single click.
The core functionality of this application relies on the Web Serial API. This API is currently supported in Chromium-based browsers like Google Chrome, Microsoft Edge, and Opera. It is not available in Firefox or Safari. The application includes a check to inform users if their browser is not supported.
This project is licensed under the MIT License. See the LICENSE file for details.