/next-htmx

HTMX over Next.js

Primary LanguageTypeScript

ARCHIVED - HTMX + Next.js

This is a proof of concept (todo app), probably not a good idea to use in prod

How it works

  • initial page is rendered by Next.js, with Tailwind css
  • HTMX Ajax requests are received via route handlers
  • React Server components are converted to HTML string via renderToString() function in react-dom/server
  • HTXM receives new HTML string and updates the dom
  • Turso database
  • drizzle ORM

Commands

  • gen: generate schema migation
  • push: push migration
  • drop: drop migartion
  • studio: start Drizzle Studio