Aplikasi kalkulator pajak profesional untuk Indonesia dengan dukungan AI
- Deskripsi
- Fitur Utama
- Teknologi
- Instalasi
- Konfigurasi
- Deployment
- Logika Perhitungan
- Keamanan & Privacy
- Struktur Folder
- SEO & Analytics
- License
- Disclaimer
Kalkulator Pajak Pro adalah aplikasi web modern untuk menghitung berbagai jenis pajak Indonesia dengan cepat dan akurat. Dilengkapi dengan asisten AI berbasis Google Gemini untuk konsultasi pajak real-time.
Aplikasi ini dirancang untuk:
- โ Karyawan yang ingin menghitung PPh 21
- โ Freelancer & pekerja bebas (NPPN)
- โ UMKM & pengusaha kecil
- โ Konsultan pajak & akuntan
- โ Siapa saja yang perlu menghitung pajak Indonesia
| Jenis Pajak | Deskripsi |
|---|---|
| PPh 21 | Pajak karyawan dengan PTKP otomatis & tarif progresif (TER 2025) |
| PPh 23 | Dividen, royalti, jasa, sewa harta (tarif 2% & 15%) |
| PPh Final | UMKM 0.5%, sewa tanah/bangunan 10%, pesangon |
| PPN | Pajak Pertambahan Nilai 11% (inklusif & eksklusif) |
| PPnBM | Pajak Barang Mewah (10%-95%) untuk mobil, apartemen, yacht |
| Bea Cukai | Pajak impor & barang kiriman (threshold $3 USD) |
| NPPN | Pajak freelancer dengan Norma Penghitungan (dokter, pengacara, dll) |
| Sanksi | Denda telat bayar & telat lapor SPT |
| PKB | Pajak Kendaraan Bermotor (semua provinsi) |
| BPHTB | Pajak jual beli properti (5% + PPh 2.5%) |
| Pajak Investasi | Kripto, saham, emas, obligasi, P2P lending |
| PPh Badan | Pajak perusahaan (UMKM 0.5%, normal 22%) |
| Fitur | Deskripsi |
|---|---|
| ๐ค Asisten AI | Konsultasi pajak real-time dengan Google Gemini |
| ๐ Pembuat Surat | Generate surat pajak (SP2DK, keberatan, permohonan) |
| ๐ Kalender Pajak | Deadline lapor & bayar SPT Masa/Tahunan |
| ๐ Komparasi Pajak | Bandingkan beban pajak karyawan vs UMKM vs freelancer |
| ๐ฅ Cek Risiko Pajak | Deteksi potensi SP2DK & audit dengan benchmark industri |
| ๐ Simulasi Gaji | Negosiasi gross-to-net salary |
| ๐ Riwayat | Simpan & ekspor history perhitungan |
| ๐จ๏ธ Print-Friendly | Export hasil ke PDF |
| ๐ฑ Responsive | Optimal di desktop, tablet, & mobile |
| ๐ SEO Optimized | Structured data, dynamic meta tags, sitemap |
- React 19 - UI Library
- TypeScript 5.8 - Type safety
- Vite 6 - Build tool & dev server
- Tailwind CSS - Utility-first CSS
- Lucide React - Icon library
- Recharts - Data visualization
- Google Gemini 2.5 Flash - AI tax assistant
- Cloudflare Pages - Hosting & deployment
- Cloudflare Pages Functions - Serverless API proxy
- pnpm - Package manager
- Docker - Containerization
- nginx - Web server (Docker)
- Node.js 18+ (recommended: 20+)
- pnpm 8+ (
npm install -g pnpm) - Git (untuk clone repository)
# 1. Clone repository
git clone <repository-url>
cd kalkulator-pajak-pro
# 2. Install dependencies
pnpm install
# 3. Setup environment
cp .env.example .env.local
# 4. Edit .env.local dan tambahkan API key
# Dapatkan dari: https://aistudio.google.com/app/apikey
GEMINI_API_KEY=your_actual_api_key_here
# 5. Jalankan development server
pnpm devAplikasi akan berjalan di http://localhost:3000
# Build
pnpm build
# Preview production build
pnpm previewOutput akan tersimpan di folder dist/
Buat file .env.local di root directory:
# Gemini API Key (Required untuk AI features)
# Dapatkan dari: https://aistudio.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# Optional: Cloudflare Turnstile (untuk production)
# VITE_TURNSTILE_SITE_KEY=your_turnstile_site_keyPENTING: Jangan pernah commit .env.local ke Git!
File .env.local sudah ditambahkan ke .gitignore. Hanya .env.example yang di-commit sebagai template.
- Kunjungi Google AI Studio
- Login dengan akun Google
- Klik "Create API Key"
- Copy key dan paste ke
.env.local - Optional: Restrict API key ke domain Anda untuk keamanan tambahan
# 1. Install Wrangler CLI
npm install -g wrangler
# 2. Login ke Cloudflare
wrangler login
# 3. Deploy
wrangler pages deploy dist/ --project-name=kalkulator-pajak-proSetting Environment Variables di Cloudflare:
- Buka Cloudflare Dashboard
- Pilih Workers & Pages โ Project Anda
- Settings โ Environment Variables
- Tambahkan:
GEMINI_API_KEY= your_api_key
- Redeploy untuk apply changes
# 1. Setup environment
cp .env.example .env
# Edit .env dengan API key Anda
# 2. Build dan jalankan
docker-compose up -d
# 3. Akses aplikasi
# http://localhost:8080# 1. Build aplikasi
pnpm build
# 2. Upload folder 'dist' ke server
# 3. Konfigurasi nginx
server {
listen 80;
server_name your-domain.com;
root /path/to/dist;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}Penghasilan Bruto = (Gaji + Tunjangan) ร 12 + Bonus
Biaya Jabatan = min(Bruto ร 5%, Rp 6.000.000)
Penghasilan Neto = Bruto - Biaya Jabatan
Iuran Pensiun = min(Gaji ร 1%, Rp 10.042.300 ร 1%)
Iuran JHT = Gaji ร 2%
Penghasilan Neto Setelah Iuran = Neto - Iuran Pensiun - Iuran JHT
PTKP = Penghasilan Tidak Kena Pajak (lihat tabel)
PKP = Neto Setelah Iuran - PTKP
PPh 21 Terutang = PKP ร Tarif Progresif
| Lapisan PKP | Tarif |
|---|---|
| 0 - 60 juta | 5% |
| 60 - 250 juta | 15% |
| 250 - 500 juta | 25% |
| 500 juta - 5 miliar | 30% |
| > 5 miliar | 35% |
| Status | PTKP |
|---|---|
| TK/0 (Lajang) | Rp 54.000.000 |
| K/0 (Menikah, 0 anak) | Rp 58.500.000 |
| K/1 (1 anak) | Rp 63.000.000 |
| K/2 (2 anak) | Rp 67.500.000 |
| K/3 (3 anak) | Rp 72.000.000 |
Catatan: Maksimal 3 anak untuk PTKP
| Jenis Penghasilan | Tarif |
|---|---|
| Dividen | 15% |
| Royalti | 15% |
| Hadiah/Penghargaan | 15% |
| Jasa (teknik, manajemen, dll) | 2% |
| Sewa harta (selain tanah/bangunan) | 2% |
PPN = Dasar Pengenaan Pajak ร 11%
Bea Masuk = Nilai CIF ร Tarif BM (sesuai kategori)
PPN Impor = (Nilai CIF + Bea Masuk) ร 11%
PPh Impor = Nilai CIF ร Tarif PPh (0% - 10%)
Total = Bea Masuk + PPN Impor + PPh Impor
Threshold: $3 USD (de minimis)
- โ No backend - Semua perhitungan dilakukan di browser client
- โ LocalStorage - Data tersimpan lokal di device pengguna
- โ No tracking - Tidak ada analytics atau tracking pihak ketiga
- โ HTTPS - Enkripsi data in-transit (di production)
- โ API Proxy - Gemini API key terlindungi di serverless function
- โ Data tidak dikirim ke server (kecuali untuk AI queries)
- โ Tidak ada cookies tracking
- โ Tidak ada iklan
- โ Open source - kode dapat diaudit publik
- Jangan share API key - Simpan
.env.localdengan aman - Gunakan API restrictions - Batasi Gemini API key ke domain tertentu
- Enable HTTPS - Wajib untuk production
- Regular updates - Update dependencies secara berkala
kalkulator-pajak-pro/
โโโ public/
โ โโโ favicon.ico # Favicon
โ โโโ og-image.jpg # Open Graph image
โ โโโ robots.txt # Crawl directives
โ โโโ sitemap.xml # Sitemap untuk SEO
โโโ src/
โ โโโ components/ # React components
โ โ โโโ CalculatorPPH21.tsx
โ โ โโโ CalculatorNPPN.tsx
โ โ โโโ AIWidget.tsx
โ โ โโโ SplashScreen.tsx
โ โ โโโ ...
โ โโโ services/
โ โ โโโ geminiService.ts # AI service
โ โโโ constants.ts # Tax constants & rates
โ โโโ App.tsx # Main app component
โ โโโ index.tsx # Entry point
โโโ .env.example # Environment template
โโโ .env.local # Local environment (gitignored)
โโโ docker-compose.yml # Docker configuration
โโโ Dockerfile # Docker build instructions
โโโ nginx.conf # Nginx configuration
โโโ package.json # Dependencies & scripts
โโโ tsconfig.json # TypeScript config
โโโ vite.config.ts # Vite configuration
โโโ README.md # This file
- โ Meta tags - Dynamic title & description per calculator
- โ Open Graph - Social media sharing optimization
- โ Twitter Cards - Twitter sharing optimization
- โ JSON-LD - Structured data untuk rich snippets
- โ Sitemap - XML sitemap untuk semua calculator
- โ Robots.txt - Crawl directives untuk search engines
- โ Canonical URLs - Prevent duplicate content
- โ Mobile-friendly - Responsive design
Aplikasi menggunakan JSON-LD untuk:
- WebApplication - Deskripsi aplikasi
- Organization - Informasi organisasi
- FAQPage - FAQ untuk rich snippets
Akses langsung ke calculator spesifik:
https://kalkulator-pajak.pages.dev/?type=pph21 # PPh 21 Karyawan
https://kalkulator-pajak.pages.dev/?type=nppn # Freelancer
https://kalkulator-pajak.pages.dev/?type=sanksi # Sanksi Pajak
https://kalkulator-pajak.pages.dev/?type=pph23 # PPh 23
https://kalkulator-pajak.pages.dev/?type=final # PPh Final
https://kalkulator-pajak.pages.dev/?type=ppn # PPN
https://kalkulator-pajak.pages.dev/?type=ppnbm # PPnBM
https://kalkulator-pajak.pages.dev/?type=beacukai # Bea Cukai
https://kalkulator-pajak.pages.dev/?type=pkb # Pajak Kendaraan
https://kalkulator-pajak.pages.dev/?type=bphtb # Pajak Properti
MIT License - Lihat LICENSE
- โ Bebas digunakan untuk keperluan pribadi & komersial
- โ Bebas dimodifikasi & didistribusikan
- โ Harus menyertakan copyright notice
- โ Tidak ada garansi
PENTING:
-
Aplikasi ini adalah alat bantu estimasi dan BUKAN pengganti konsultasi pajak profesional.
-
Akurasi: Meskipun kami berusaha memberikan perhitungan yang akurat sesuai regulasi terbaru, peraturan pajak dapat berubah. Selalu verifikasi dengan:
- Konsultan pajak bersertifikat
- Kantor Pelayanan Pajak (KPP) terdekat
- Situs resmi Direktorat Jenderal Pajak (pajak.go.id)
-
Tanggung Jawab: Pengembang TIDAK bertanggung jawab atas:
- Kerugian finansial atau hukum dari penggunaan aplikasi
- Perbedaan perhitungan dengan ketentuan resmi
- Keterlambatan atau kesalahan pelaporan pajak
-
Update: Aplikasi ini diupdate secara berkala, namun mungkin tidak selalu mencerminkan perubahan regulasi terbaru.
-
AI Disclaimer: Jawaban dari AI assistant adalah informasi umum dan BUKAN nasihat pajak resmi. Selalu konsultasikan dengan profesional untuk kasus spesifik.
Kontribusi sangat diapresiasi! Silakan:
- Fork repository
- Buat feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add AmazingFeature') - Push ke branch (
git push origin feature/AmazingFeature) - Open Pull Request
- Email: support@pajakkupro.com (contoh)
- Issues: GitHub Issues
- Dokumentasi: Wiki repository
Dibuat dengan โค๏ธ untuk Wajib Pajak Indonesia
Kalkulator Pajak Pro - Solusi Pajak Lengkap Indonesia
โญ Star repository ini jika bermanfaat!