OnePunya Code Hub
Standalone Astro project for https://code.onepunya.my.id.
Features
- Lists public repositories from the
onepunyaGitHub account. - Reads and renders each repository's
README.mdautomatically. - Shows repository language statistics and a browsable file list.
- Loads source files from GitHub and provides copy controls.
- Provides a Download ZIP link for each repository.
- Responsive dark navy / lime-green Code Hub interface.
- Uses OnePunya favicon and app icons.
Local development
npm install
npm run dev
Build
npm run build
npm run preview
Deploy to Vercel
- Push this folder's contents to a dedicated GitHub repository, e.g.
onepunya-codehub. - Import that repository as a new Vercel project.
- Keep the framework preset as Astro and deploy.
- Add
code.onepunya.my.idunder Vercel Project Settings → Domains. - Configure the DNS record exactly as Vercel instructs.
- Optionally add
GITHUB_TOKENunder Environment Variables and redeploy.
The GitHub account is configured in src/data/site.ts (githubUser: 'onepunya').