This project uses PocketBase, and a lesser known UI project called PocketPages.
Pocketbase has a way to extend it with the JSVM which runs inside GoJA. This lets us register endpoints, event hooks, cron jobs all in JS running inside Pocketbase managed GoJA (JSVM).
PocketPages builds on this by having a folder/file based routing system, and allows us to run JS in the JSVM in server-side html blocks in the pocketpages pages.
For example, PB lets you create JSVM scripts in pb_hooks, just name it whatever.pb.js. PP lets us create a page like index.ejs, gives us a <script server> block, and that code will run in the JSVM when the page is rendered. We have full access to the PB API, and a set of PP helpers.
IE for PB you can do $app.findRecordsByFilter where $app is the main interface to interact with your database.