Skip to content

feat: Initial PoC#1

Draft
Chriztiaan wants to merge 3 commits into
mainfrom
feat/init
Draft

feat: Initial PoC#1
Chriztiaan wants to merge 3 commits into
mainfrom
feat/init

Conversation

@Chriztiaan
Copy link
Copy Markdown
Collaborator

@Chriztiaan Chriztiaan commented May 4, 2026

This PoC explores ideas for defining a template write path that should simplify implementing writes for PowerSync users. It is based on the node backend and client demos.

The core shift in this PoC is moving the "translation problem" from the client to the server edge. Right now, every developer has to write their own bespoke uploadData handler that fetches CRUD ops, maps types, talks to their backend, and classifies errors. This PoC says: what if the client just sends the raw CRUD data over the wire, and a standardised server-side stack handles everything from there? The backend includes generated endpoint handler code (via OpenAPI), a mechanism for mapping sqlite crud data to the format of a source database, and a persister for each support source database.

This is essentially a foundation layer, it defines the protocol with the happy path in mind, and both the mutator example (PoC 2) and the Supabase edge function approach (PoC 3) are described as things that can ride on top of it. We also still need to improve the implementation detail at this level in terms of interface definitions and hooks for supporting custom logic on every layer, as well as advanced tools like dead letter queues.

Adding OpenAPI codegen means that some of the implementation can be spread to new languages/platforms without reimplementing the wire code each time

Screenshot 2026-05-04 at 15 39 41

AI disclosure

This PR was created with the help of Claude Code. Help constitutes assistance in research, planning, and rough outline of implementation. Beyond having a hand in the implementation, I have also manually tested this work.

@Chriztiaan Chriztiaan changed the title (feat): Initial PoC feat: Initial PoC May 13, 2026
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.

1 participant