Skip to content

Refactor Next.js demo#920

Draft
bean1352 wants to merge 11 commits intomainfrom
refactor-nextjs-demo
Draft

Refactor Next.js demo#920
bean1352 wants to merge 11 commits intomainfrom
refactor-nextjs-demo

Conversation

@bean1352
Copy link
Copy Markdown
Contributor

@bean1352 bean1352 commented Apr 1, 2026

  • Scaffold a local PowerSync service (Docker Compose + sync config) so the demo runs fully self-contained
  • Replace MUI/Emotion with Tailwind CSS v4
  • Add API routes for JWT auth (/api/auth/token, /api/auth/keys) and CRUD writes (/api/data)
  • Support POWERSYNC_PRIVATE_KEY/POWERSYNC_PUBLIC_KEY env vars, auto-generate a temporary key pair if not set
  • Make root layout a server component with metadata export
  • Extract interactive sync UI into a SyncedContent client component

@bean1352 bean1352 requested a review from joshuabrink April 1, 2026 14:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

⚠️ No Changeset found

Latest commit: 6b4e7df

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@bean1352 bean1352 requested a review from khawarizmus April 2, 2026 07:07
khawarizmus
khawarizmus previously approved these changes Apr 13, 2026
@@ -0,0 +1,42 @@
import { exportJWK, generateKeyPair as joseGenerateKeyPair, importJWK, KeyLike } from 'jose';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure whether we want to commit this logic. It feels more like something to have locally than to add to the official demo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the demo to require users to generate a key pair manually, rather than generating one automatically.

@khawarizmus khawarizmus self-requested a review April 13, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants