Really fast Server Side pages for PocketBase
PocketPages is a lightweight EJS and router engine that runs as a PocketBase JS hook. It's super fast and can render pages <40ms.
Write your web apps like old-school PHP:
// pb_hooks/pages/index.ejs
<%= `Hello, world!` %>>>> Official docs <<<
- Because when I have a new app idea, I want to make contact with the real world as soon as possible
- Because I want to start simply and grow as needed, in any direction I decide
- Because I want a unified SEO-friendly platform without needing to worry about SSR/SSG/SPA
- Because I miss the good parts of PHP
- Because I think pure client-side reactive frameworks like AlpineJS and HTMLx are a perfect compliment to Server Side pages.
- Send a PR to add your reasons here :)
Before running the project, make sure you have the following tools installed:
Bun is a fast JavaScript runtime. To install it, run:
curl -fsSL https://bun.sh/install | bashFor more details, see the official Bun documentation.
PocketBase is a backend server. Download the latest release for your OS from the PocketBase releases page and place the binary somewhere in your PATH.
For more details, see the PocketBase documentation.
To run the project locally:
-
In the root folder, run:
bun dev
-
In another terminal, start PocketBase in one of the packages, for example:
# To run the main site cd packages/site pocketbase serve --dev
or
# To run a starter kit cd packages/starters/minimal pocketbase serve --dev
That's it! Now you can access the project locally.
PR's are welcome.
- Docs
- Core features
- Starter kits
- Showcases