Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JerryTechie/Karyopath

Repository files navigation

Karyopath

Karyopath is an AI-assisted learning planner that transforms a person’s career goal into a time-aware, budget-aware roadmap. This prototype implements the onboarding UX, deterministic pathway engine, and dashboards for a logistics-focused learner in Nigeria.

Features

  • Screen-by-screen onboarding flow that mirrors the welcome, promise slides, light account creation, quiz, roadmap preview, planner setup, and day-one tracker experience.
  • Deterministic pathway engine that scores catalog resources, assembles phased plans, and respects budget + time constraints.
  • API endpoint (POST /api/plan/recommend) delivering phase details, schedules, warnings, and salary outlooks.
  • Salary widget with seeded bands for Logistics Analyst, Procurement Officer, and Data Analyst roles across Nigeria, US, and global contexts.
  • Dashboard and pathway pages with budget, streak, calendar view, and export call-to-actions.
  • Resource library and admin overview for catalog and role management.
  • Prisma schema with seed script for demo data including a Logistics Analyst learner, pathway, and catalog entries.
  • Vitest unit tests for the planner plus React Testing Library coverage for StepCard, and a Playwright e2e onboarding smoke test.

Getting Started

npm install
npm run prisma:generate
npm run prisma:migrate -- --name init
npm run seed
npm run dev

Visit http://localhost:3000 for the landing page. Onboarding is available at /onboarding, dashboard at /dashboard, and the demo pathway at /pathway/demo.

Environment Variables

Copy .env.example to .env and adjust as needed:

cp .env.example .env

Testing

npm run test
npm run e2e   # requires dev server

Architecture

/prisma                Prisma schema and migrations
/src/app               Next.js routes (app router)
/src/components        UI components (shadcn-inspired)
/src/lib               Shared utilities (formatters, set helpers)
/src/server            Engine, salary module, adapters, schemas
/tests                 Vitest unit tests + Playwright e2e suite
  • Engine: src/server/engine/compute-plan.ts implements a greedy planner. It calculates skill gaps, scores catalog items, assembles phases (foundations → specialisation → credentials), and emits a schedule bounded by hoursPerWeek and budgets. Assumptions and warnings expose trade-offs.
  • Salary module: src/server/salary/get-salary-bands.ts exposes deterministic salary ranges sourced from seed data.
  • API: src/app/api/plan/recommend/route.ts validates payloads with Zod and returns engine output.

Next Steps (Beyond P0)

  1. Live provider adapters – Replace static catalog with Coursera, edX, and Udemy APIs plus caching.
  2. LLM co-pilot – Add optional GPT-powered explanation + refinement layer on top of deterministic engine.
  3. Calendar sync & reminders – Integrate Google Calendar / email / WhatsApp reminders.
  4. Payments & premium unlocks – Stripe checkout for certification subsidies and accountability pods.
  5. Collaboration – Mentor dashboards, community accountability, and peer reviews.
  6. Mobile experience – React Native / Expo client optimised for low bandwidth.

License

MIT

About

A career structured pathway and planner app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages