A React/TypeScript application that renders customizable VS Code–style cards with a live GitHub contributions heatmap. Built with Vite, Tailwind CSS, Jotai for state, SWR for data fetching, and Lucide icons.
- Frontend and backend card designs mimicking VS Code UI
- Editable file name, code snippets and status via inline inputs
- GitHub contributions heatmap (default 182 days) using GraphQL & SWR
- Customizable username, date range & appearance via props and global state
- Responsive layout and smooth loading animation (pulsing blocks)
- Auto fetch Github heatMap when fileName is change
- Node.js v16+
- GitHub Personal Access Token with
read:userandreposcope (for private data if needed)
git clone https://github.com/rabithua/VscodeCard.git
cd VscodeCard
npm installCreate a .env or configure Vite env in your shell:
VITE_PUBLIC_GITHUB_TOKEN=your_token_here
About Github personal Access Token
Warning: If you set
VITE_PUBLIC_GITHUB_TOKEN, anyone who can access your web application can view your token. Ensure you handle it securely.
npm run dev # Start the development server
npm run build # Build the application for production
npm run start # Preview the production build
npm run check # Perform code checksOpen http://localhost:3000 in your browser.
app/components/Card.tsx— combines frontend & backend cardapp/components/HeatMap.tsx— heatmap component using SWR & GitHub GraphQLapp/components/NoStyleInput.tsx— unstyled input for inline editingatom/card.ts— Jotai atoms for props and UI stateREADME.md— this file
MIT © rabithua