How davidmoralesz/instaplanner works
Project type and purpose
• This is a full-stack, server-rendered React application built with Next.js 14.
• It provides a rich drag-and-drop interface for planning Instagram posts, uses an IndexedDB-backed local store for persistence, and bundles lightweight serverless API endpoints for documentation and maintenance mode.
File structure
• Top-level “app” directory: Next.js App Router files (layout.tsx, page.tsx, privacy, terms, releases, plus serverless API routes under app/api).
• “components” directory: reusable UI components, grouped by feature (dialogs, dnd, grid, ui primitives).
• “hooks”: custom React hooks for drag-and-drop, image management, keyboard nav, maintenance mode, etc.
• “lib”: utility code (dnd animations, storage adapters, image utilities, error definitions).
• “public/docs”: markdown files for privacy, terms, releases served via API and static routing.
• “config” and root config files: constants, environment typings, Next.js, Tailwind, Prettier, ESLint, Husky, GitHub Actions, Wrangler config for CF Workers deployment.
README for additional insights
• Stack: Next.js (server components + client components), TypeScript, Tailwind CSS, shadcn/ui, Framer Motion, dnd-kit.
• Storage: IndexedDB via a local abstraction in lib/storage.ts.
• Testing: Vitest + React Testing Library.
• Deployment via Cloudflare Workers using Wrangler.