Skip to main content

Quick overview

KilatKoding is divided into four main areas:
  • public marketing pages,
  • auth flows,
  • user and admin dashboards,
  • API routes for mutations and webhooks.

Public marketing pages

RoutePurpose
/Main landing page
/aboutProduct about page
/affiliatesAffiliate or partner page
/blogMDX blog listing
/blog/[slug]Blog post detail
/changelogProduct update history
/checkoutCheckout page
/compareComparison page
/contactContact form
/docs/componentsPublic UI component showcase
/openOpen startup metrics page
/order/[id]Order page after checkout
/privacyPrivacy policy
/roadmapPublic roadmap
/statusStatus page
/termsTerms of service
/use-casesUse case gallery
/waitlistWaitlist page

Auth routes

RoutePurpose
/auth/loginLogin with password, Google, or Magic Link
/auth/sign-upAccount registration
/auth/sign-up-successPost-signup confirmation
/auth/verify-emailEmail verification instructions
/auth/forgot-passwordRequest password reset
/auth/update-passwordSet a new password
/auth/errorAuth error page
/auth/confirmOTP or OAuth callback

User and admin dashboards

RouteAccessPurpose
/dashboardLogged-in usersAccount summary, subscription, and payments
/dashboard/settingsLogged-in usersProfile, avatar, and password
/dashboard/billingLogged-in usersChoose a plan, upgrade, cancel, or resume
/dashboard/componentsLogged-in usersDashboard and admin component showcase
/adminAdmins onlyRevenue, role management, webhook events, and audit trail

API routes

RouteMethodPurpose
/api/paymentsPOSTCreate a payment session and store a pending payment record
/api/profilePOSTUpdate the current user profile
/api/profile/avatarPOSTCreate a signed upload URL for avatar uploads
/api/subscriptionPOSTCancel or resume a subscription
/api/webhooks/midtransPOSTVerify and process Midtrans webhooks
/api/webhooks/dokuPOSTVerify and process Doku webhooks
/api/admin/users/rolePOSTChange a user role from the admin dashboard
/api/contactPOSTSend a contact-form message
/api/waitlistPOSTSave a waitlist signup
/api/ai/chatPOSTStreaming AI chat
/api/ai/generatePOSTOne-shot text generation
/api/healthGETHealth check for configuration and database access

Features visible to end users

From the end-user side, KilatKoding already supports:
  • registration and login,
  • profile management,
  • plan purchase flows,
  • subscription status visibility,
  • blog reading,
  • contact form submissions,
  • waitlist signups.

Features visible to internal teams

From the admin or operator side, KilatKoding already supports:
  • revenue visibility,
  • active subscription counts and paid plan counts,
  • admin role management,
  • webhook event visibility,
  • audit trail visibility,
  • payment history review.

Route protection

AreaProtection mechanism
/dashboard and child routesChecked through proxy.ts and Supabase auth claims
/adminChecked through auth plus the admin role from user_roles
User mutation routesRequire a logged-in user
WebhooksProtected through provider signature verification
If you disable a feature through an env toggle, also consider removing or adjusting its navigation entry so users do not see routes they cannot use.
If you need request and response details for each endpoint, continue to API reference. If you want to see the sequence from user action to database writes and webhooks, read End-to-end flows.