I am a bit confused, is it the backend's backend? E.g. something that is used by the HTTP server app, like a DBMS would be?
Or is it actually the backend, e.g. the frontend (browser) talks to it directly?
Or is it actually the backend, e.g. the frontend (browser) talks to it directly?
However if you want to write more logic you can also import Pocketbase as a library and extend it with hooks, custom endpoints etc. all written in Go.
Edit: Added more info about using Pocketbase with a JS SPA frontend.