jamestryand/pocketcqrs ? reverse-engineered prompt

Reverse engineered prompt

Build me a backend on top of PocketBase that uses CQRS and event sourcing for the main workflow.

I want commands to come in through a gateway, get handled by decider style business logic, and save every change as an event in an append only event log. Then projections should turn those events into normal PocketBase collections so I can use the usual admin UI, REST API, and realtime features for reading data. Make sure direct writes to those read models are blocked, since only the projection layer should update them.

Please also include support for user defined JavaScript functions for HTTP endpoints, event reactions, cron jobs, projections, and deciders, with auth aware query access where it makes sense. I’d like an ops dashboard too, so I can inspect the event log, retry dead letters, and manage the system without digging through the database.

If you need current PocketBase or Go details, look up the latest docs online and keep it practical.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab