Skip to content

pacobaco/threados

Repository files navigation

ThreadOS Portal Production Starter

A Vercel-ready Next.js starter for a portal-style ChatGPT workspace that turns prompt threads into prioritized tasks, suggested next actions, and executable deliverables.

Stack

  • Next.js 15 App Router
  • Clerk for authentication
  • Prisma ORM
  • Postgres database
  • Tailwind CSS
  • Typed domain models and thread-priority scoring

Included

  • Auth-gated portal shell with Clerk middleware
  • Dashboard, task board, settings page, and thread detail route
  • Server-side repository layer wired for Prisma with sample-data fallback
  • REST endpoints for threads and tasks
  • Prisma schema for users, workspaces, threads, tasks, deliverables, and automations
  • Seed script for local development
  • Vercel configuration and environment template

Local setup

  1. Copy environment variables.
cp .env.example .env.local
  1. Install dependencies.
npm install
  1. Generate Prisma client and apply migrations.
npx prisma migrate dev --name init
npm run db:seed
  1. Start the app.
npm run dev

Open http://localhost:3000

Required environment variables

DATABASE_URL=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
CLERK_SECRET_KEY=
NEXT_PUBLIC_APP_URL=

Vercel dashboard deployment

  1. Create a new Git repository and push this folder.
  2. In Vercel, choose Add New Project and import the repo.
  3. Add the environment variables from .env.example.
  4. Provision Postgres, or attach Neon/Supabase/Postgres and set DATABASE_URL.
  5. Set the build command to npm run build if Vercel does not detect it automatically.
  6. Deploy.
  7. After first deploy, run Prisma migration against the production database.

Main routes

  • / dashboard
  • /threads/[id] thread detail
  • /tasks task board
  • /settings settings and implementation notes
  • /api/threads threads JSON
  • /api/tasks tasks JSON and task creation

Notes for the next layer

  • Replace repository fallback logic with strict database-backed queries once infrastructure is live.
  • Add workspace-aware authorization checks in repository methods.
  • Connect LLM extraction pipelines to create threads, tasks, and deliverables from prompt history.
  • Add drag-and-drop persistence for task status changes.
  • Add Gmail, Calendar, and file connectors for execution-oriented workflows.

Suggested repo description

Portal-style ChatGPT workspace starter with Clerk auth, Prisma persistence, and thread-prioritized task orchestration.

About

hreadOS is an AI-native command system that transforms prompt threads into prioritized tasks, autonomous actions, and executable workflows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors