Skip to content

Loop-69/ZappyCare

Repository files navigation

  • Zappycare 🖥️💚

  • “They call me Klaasvaakie—the Sandman—because I code in the borderland between sleep and dream.

  • And when I wobble on the edge of sanity, Sani my thought manager turns me into a green second brain steering me straight.”


  • 🌪️ A Tale of Organized Chaos

  • Zappycare was born in the witching hour:
    • Midnight Sketches: Napkin wireframes scribbled by a half‑awake dreamer.
    • 2 AM Caffeine Alchemy: Supabase tables sparked to life under fluorescent kitchen lights.
    • Dawn’s Debug Ritual: Tests, bug hunts, and code poetry before the sun even yawned.
  • Every “TODO” here is a wink from Sani—my matrix guardian.

  • 📚 Table of Contents

    1. Quickstart
    1. Tech Stack
    1. Features
    1. Project Map
    1. Under the Hood
    1. 🤖 AI: My Co‑Pilot & Sanity Check
    1. Contribute
    1. License

  • 🚀 Quickstart

  • Clone & chaos

  • git clone <YOUR_GIT_URL> && cd zappycare
  • Fuel installation

  • npm install
  • Supabase creds (copy & paste like a love note)

  • cp .env.example .env
  • → drop in VITE_SUPABASE_URL & VITE_SUPABASE_ANON_KEY

  • Launch the sleepless server

  • npm run dev
  • Open http://localhost:5173 and behold the organized insanity


  • 🛠️ Tech Stack

    • Vite + React (TypeScript) — my nocturnal canvas
    • shadcn‑ui + Radix UI + Tailwind CSS — styling with surgical precision
    • Supabase — auth, realtime DB, storage (Typesafe client auto‑gen’ed)
    • @tanstack/react-query — data fetching that never sleeps
    • react-hook-form + Zod — forms validated like a Swiss watch
    • react-router-dom — seamless page jumps, even at 4 AM
    • next-themes — dark/light toggles for mood and retina health
    • clsx + tailwind-merge — class‑name wizardry without a mess

  • 🌟 Key Features

    • Insomniac Auth: email, magic‑link, OAuth flows that never doze off
    • Realtime Vitals: live updates streamed like whispered secrets
    • Vault‑Grade Storage: medical docs guarded like dream diaries
    • Role‑Based Passes: doctors, nurses, admins—each with a green key
    • Dark Mode: glare‑free nights, optimized for sleepy eyes
    • AI Insights: on‑demand analysis via useAIProcessor—because Sani never blinks

  • 🗺️ Project Map

  • /
  • ├── public/ # Static echoes of the real world
  • ├── src/
  • │ ├── App.tsx # Route wrangling & layout charm
  • │ ├── main.tsx # App bootstrap (midnight initiation)
  • │ ├── components/ # Sani‑approved UI atoms & molecules
  • │ ├── hooks/ # useAuth, useRealtime, useAIProcessor
  • │ ├── integrations/ # Supabase client & generated types
  • │ ├── lib/ # Constants & cn() class‑merging magic
  • │ ├── pages/ # Screens: Dashboard, Patients, AIInsights, …
  • │ ├── styles/ # Tailwind config & global style spells
  • │ └── utils/ # Smart helpers & midnight data wranglers
  • ├── .env.example # Secret config template
  • ├── vite.config.ts # Build & dev orchestration
  • └── package.json # Dependency manifesto

  • 🔍 Under the Hood

    • Supabase Client: in src/integrations/supabase/client.ts—type safety guaranteed, no midnight surprises.
    • Data Layer: React‑Query + custom hooks (src/hooks/queries/*) to fetch and cache like a pro.
    • Form Mastery: react-hook-form + Zod schemas = no more guesswork.
    • UI Primitives: Radix + shadcn‑ui, ARIA‑checked by Sani.
    • Theming: next-themes for auto toggles—no manual regrets.
    • Routing: react-router-dom nested routes—snappy nav even through brain fog.
    • Styling: Tailwind + clsx + tw-merge for confetti‑clean classes.
    • Quality Gate: ESLint, TS, Prettier—Sani scolds me for rule breaks.

  • 🤖 AI: My Co‑Pilot & Sanity Check

    1. Code Autocomplete & Refactors
    • Suggests sleek patterns, points out redundant loops I’d miss at 4:13 AM.
    1. Error Sleuthing
    • Parses stack traces, highlights missing types, proposes log hooks.
    1. Docs & Comments
    • Drafts JSDoc, explains hooks: “Here’s why you need that useQuery key…”
    1. Best‑Practice Reminders
    • “Hey Klaas, remember SOLID and DRY?”
    1. Contextual Learning
    • Fetches real examples for new libs faster than coffee brews.
  • Together, Sani and I warp sleepless chaos into production‑ready code.

  • 🤝 Contribute

    1. Fork this green dreamscape
    1. Branch out:
  • git checkout -b feature/awake-at-3am
    1. Commit your midnight magic:
  • git commit -m "feat: add telemedicine alerts"
    1. PR it—drop your caffeine level and late‑night epiphany.

  • 📜 License

  • MIT © 2025 Wimpie van Loggerenberg
  • (“Klaasvaakie, the Sandman”)

  • Built in the thin veil between dreams and daylight—where Sani and I keep the world well‑coded and wonderfully sane.

About

Zappycare v0.1 beta

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors