This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
AI

Syllabus Planner Lab

Paste a syllabus - weekly study plan JSON with topics, tasks, and estimated hours.

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/syllabus-planner-lab
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Use it as a starting point for your own projects.

Syllabus Planner Lab turns a syllabus paste into a weekly study plan via generateObject. Weeks include focus, topics, tasks, and estimated hours. Export the plan as JSON. No AI keys - 503.

Features

  • Syllabus - weeks – up to 16 weeks inferred from the source.
  • Tips – short study advice array.
  • Export JSON – download the full plan.
  • Sample CS syllabus – 8-week web platforms course.
  • Honest unavailable state.

Server Reference

POST /api/plan

{ "syllabus": "..." }

Success (200)

{
  "courseTitle": "CS 240 - Web Platforms",
  "tips": ["Block 2 hours after each lecture for readings."],
  "weeks": [
    {
      "week": 1,
      "focus": "HTTP basics",
      "topics": ["caching", "CDN"],
      "tasks": ["Read MDN HTTP"],
      "estimatedHours": 6
    }
  ],
  "provider": "ai-gateway"
}
StatusCause
503No AI provider
400Empty syllabus

Implementation Details

truncateText + clampPlan enforce week/hour/tip caps after the model call.

Use Cases

  • Study planning from course outlines.
  • Teach fixed-max nested array schemas.
  • Exportable plan JSON for calendars.

Limitations

  • Quality depends on syllabus clarity.
  • No calendar sync.
  • No auth / rate limits.

Use in your project

Copy app/api/plan/route.ts and the export button pattern from demo.tsx.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/syllabus-planner-lab
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
AI_GATEWAY_API_KEYYes (or OPENAI_API_KEY)Preferred provider
OPENAI_API_KEYNoFallback
AI_MODELNoModel override

Vercel / Next.js Features Used

  • AI SDK generateObject
  • Vercel AI Gateway
  • Route Handlers
  • Zod

Next Steps

On this page