Bygga
제품명을 박스에 입력하면 Bygga가 3D로 모든 조립 단계와 부품·스크류·도구를 보여주고 음성으로 안내합니다
말레이시아 최고 태양광 패널로 가정 필요량·비용·절감·ROI를 간편히 계산
Kira panel solar terbaik di Malaysia untuk mengira berapa banyak panel solar yang diperlukan untuk rumah anda. Dapatkan anggaran kos, penjimatan bil elektrik TNB, dan ROI sistem solar dengan mudah. Se
라이프스타일TypeScript · CSSGitHub @azuanalias92온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Automatically generate a calculation for DIY Home Solar System
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A solar calculator and electricity tracking toolkit for Malaysian households — live at kirasolar.my.
This repo is the Next.js frontend. It talks to a separate Cloudflare Workers API (Hono + D1).
Requires Node 22 (see .nvmrc).
npm install
npm run dev
Open http://localhost:3000.
Create .env.local in the project root:
NEXT_PUBLIC_API_BASE_URL=http://localhost:8787
NEXT_PUBLIC_GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOOGLE_SITE_VERIFICATION= # optional
Restart npm run dev after changing env vars.
Sign-in uses Google's redirect flow, so it works in every browser without popups. In Google Cloud Console, the OAuth client must list each origin under Authorized JavaScript origins and its /api/auth/google URL under Authorized redirect URIs, for example:
https://kirasolar.my and https://kirasolar.my/api/auth/googlehttp://localhost:3000 and http://localhost:3000/api/auth/google| Command | Description |
|---|---|
npm run dev | Start the dev server |
npm run lint | Run ESLint |
npm run build | Production build (includes type-checking) |
npm run start | Serve the production build |
All routes are locale-prefixed (/ms/... or /en/...). Visiting / redirects based on your saved preference or browser language.
| Route | Page |
|---|---|
/{locale} | Dashboard |
/{locale}/solar-calculator | Solar calculator |
/{locale}/ev-calculator | EV charging cost calculator |
/{locale}/settings | Tariff settings and rates |
Legacy routes (/bill-ev, /ev, /usage, /rates) redirect to their current equivalents.
The frontend expects the API to expose:
POST /auth/google — exchange a Google ID token for a session tokenGET/PUT /calculator/state — store the calculator stateGET/PUT /ev-usage and GET /ev-usage/years — EV usage by yearGET /tariff-rates — rate previewGET /docs — Swagger UIsrc/
├── app/
│ ├── layout.tsx # Root layout, metadata, service worker
│ └── [locale]/ # Internationalized routes
│ ├── page.tsx # Dashboard
│ ├── solar-calculator/
│ ├── ev-calculator/
│ ├── settings/
│ └── items/ # Appliance form
├── components/
│ ├── ui/ # shadcn/ui components
│ ├── dashboard/ # Dashboard sections
│ └── ... # Header, nav, footer, auth button, etc.
├── lib/
│ ├── auth.ts # Client auth storage helpers
│ ├── pdfExport.ts # PDF generation
│ ├── useTranslation.ts # Translation hook
│ └── utils.ts
├── locales/ # en.json, ms.json
└── proxy.ts # Locale routing
public/ # PWA manifest, service worker, sitemaps, OG images
Translations live in src/locales/en.json and src/locales/ms.json. Add new keys to both files and use them via t("section.key") from useTranslation. Missing keys fall back to English.
Deployed on Vercel. Security headers (including CSP) are configured in next.config.mjs — update the CSP when adding new external origins.
Contributions are welcome! Please open a Pull Request. AI coding agents should read AGENTS.md.
This project is licensed under the Apache License 2.0 — see the LICENSE file for details.