Lalabase
티켓·문서·근무시간·고객대화를 한 곳에 모아 KI로 검색, 소프트웨어 기업 고객 프로젝트용, 오픈소스로 자체 서버·독일 클라우드에 배포
행사 운영·상품 이동·인맥 연결·기회 관리를 하나의 King Sparkon 플랫폼으로
Run events, move products, connect people and manage opportunities through one connected King Sparkon platform.
비즈니스TypeScript · CSSGitHub @leonard1thecoder온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗King Sparkon is a Bun-powered Next.js 16 frontend for a barcode and QR operations platform. It supports product verification, stock movement, worker scan flows, website payments, worker tips, withdrawals, affiliate referrals, promotions, billing, reports, and audit trails.
This frontend is aligned to the Spring Boot backend in leonard1thecoder/king-sparkon-tracker-backend.
This is not a crypto product. The interface is designed around precision instrumentation: barcode scanners, QR codes, label printers, stock rooms, verification stamps, scan terminals, industrial ledgers, payout records, and audit trails.
src/
app/
api/auth local auth proxy and httpOnly cookie session routes
api/backend/[...path] authenticated backend proxy
api/contact-inquiries public contact proxy
api/subscribers public subscriber proxy
dashboard/admin admin workspace
dashboard/owner owner workspace
dashboard/worker worker workspace
dashboard/affiliate affiliate workspace
components/
hero scan animation
layout dashboard frame/header/page template
nav role-specific nav components
scanner ZXing scanner components
ui shared UI primitives
lib/
api centralized Axios domain modules
auth session, role, and guard helpers
types backend-aligned TypeScript contracts
utils money, dates, errors, rate-limit, cn helpers
styles/tokens.css design tokens
@zxing/browser for camera barcode and QR scan flowsThe product has two visual systems. Each one is scoped so the other is never affected.
Applies to /, /events, /events/[slug], /mall, /mall/products/[slug], /jobs, and /jobs/unemployment-insurance-fund. Tokens live in src/app/public-site.css and are only active inside the .ks-public wrapper.
.ks-public {
--ks-white: #FFFFFF;
--ks-light-green: #BFE8C7;
--ks-green: #76C893;
--ks-yellow: #F8E16C;
--ks-gold: #E6B84A;
--ks-sky: #A9DDF5;
--ks-ink: #17231D;
--ks-muted: #647168;
}
prefers-reduced-motion. Content stays visible and readable with motion off.globals.css force-darkens any element with a Tailwind bg-white (or bg-slate-50, bg-gray-50, and similar) class with !important, and paints every <section> black. Public markup must use the ks-surface class instead of bg-white. Public scope resets live at the top of src/app/public-site.css. Do not remove them.Applies to /dashboard/*, login, register, and account flows. These keep the palette below:
:root {
--ink: #14161A;
--paper: #F1EFE6;
--signal: #FF4D2E;
--confirm: #1C7C54;
--steel: #5B6470;
--line: #D8D3C4;
}
Use --signal only for scan and action accents, and --confirm for verified, paid, approved, and success states.
No purple SaaS gradients, generic crypto grids, stock 3D icons, fake glass panels, or fake data where backend data exists.
Create .env.local from .env.example:
BACKEND_URL=http://localhost:8080
NEXT_PUBLIC_APP_URL=http://localhost:3000
BACKEND_URL is used only by Next.js route handlers. Browser-side code calls local Next routes such as /api/backend/... and never needs backend secrets.
bun install
bun run dev
Validation commands:
bun run lint
bun run typecheck
bun run test
bun run build
/api/auth/... routes./api/backend/....message, error, detail, and title.401 attempts refresh once through /api/auth/refresh./login.429 surfaces retry/cooldown data from retryAfterSeconds or Retry-After.403 EMAIL_NOT_VERIFIED is treated as a verification-required UI state by consumers./dashboard/admin - users, businesses, platform promotions, scan logs, settings./dashboard/owner - products, workers, transactions, tips, withdrawals, promotions, reports, audit, billing, settings./dashboard/worker - scan terminal, barcodes, transactions, tips, claims, profile./dashboard/affiliate - onboarding, referrals, commissions, tips, payouts, marketing assets, performance.Each role has its own layout and nav component: AdminNav, OwnerNav, WorkerNav, and AffiliateNav. The old monolithic dashboard shell has been reduced to a small compatibility entry.
POST /api/auth/register, POST /api/auth/register-affiliate, POST /api/auth/login, POST /api/auth/refresh, POST /api/auth/logout, forgot/reset/resend/verify routes.POST /api/subscribers, DELETE /api/subscribers?contact=..., POST /api/contact-inquiries.GET/POST /api/products, GET /api/products/{id}, GET /api/products/barcode/{barcode}, PATCH /api/products/{id}/quantity, POST /api/products/{id}/barcodes, POST /api/products/{id}/submit-approval.GET/POST /api/transactions, POST /api/transactions/withdrawals.GET/POST /api/tips, PATCH /api/tips/{id}/paid, POST /api/tips/withdrawals.GET /api/promotions/quote, GET/POST /api/promotions, POST /api/admin/promotions/registered-subscribers.GET /api/billing/plans, GET /api/billing/me, GET /api/billing/dashboard, POST /api/billing/subscriptions/{subscriptionId}/activate.POST /api/payments/payfast (cart), POST /api/payments/payfast/itn (PayFast server notification), GET /api/payments/status/{merchantPaymentId}, GET /api/payments/payfast/form/{merchantPaymentId} (public form for emailed/QR payments).GET /api/reports/inventory-summary, GET /api/reports/alcohol, GET /api/reports/product-movement, GET /api/audit-logs.GET /api/affiliate/referrals, GET /api/affiliate/commissions, GET /api/affiliate/payouts, POST /api/affiliate/onboarding.The transaction API module supports multi-line checkout:
SELL sends item barcodes and requires barcode count to match total quantity.BUY does not send item barcodes.paymentType supports CASH, SWIPE_MACHINE, and WEBSITE_PAYMENT.paymentUrl, paymentStatus, paymentReference, paymentEmail, and paymentContact when backend returns them.CLIENT subscriber.Backend remains the source of truth. UI may show these locked states:
FREE_TRIAL: max 2 workers.PLUS: max 5 workers.PRO: unlimited workers.WORKER_TIPS_PLATFORM, BUSINESS_ANALYSIS_AI, and WORKER_CLOCKER are Pro features..github/workflows/frontend-ci.yml runs on pull requests and push to main:
bun install --frozen-lockfile
bun run lint
bun run typecheck
bun run test
bun run build
.github/workflows/vercel-deploy.yml deploys previews on pull requests and production on push to main after install, lint, typecheck, test, and build.
Required GitHub secrets:
VERCEL_TOKENVERCEL_ORG_IDVERCEL_PROJECT_IDRequired Vercel env vars:
BACKEND_URL=https://your-production-backend-url.com
NEXT_PUBLIC_APP_URL=https://your-vercel-domain.vercel.app
POST /api/auth/register-admin, but the frontend branch currently has owner and affiliate public registration proxies.refreshToken and expiry fields.referenceEmail is the frontend name. Legacy referencee should only remain as backend compatibility.bun.lock after dependency updates before relying on bun install --frozen-lockfile in CI.