## Documentation: pocketpages.dev has moved ## PocketPages is now Pages, part of PocketOne Pages (formerly PocketPages) is built into the `pocketone` binary as the [pages extension](/docs/extensions/pages/extension): no npm package, no boot file, no build step. Its docs and blog live here now, beside every other PocketOne extension. Coming from the npm package (0.x)? Start with [Moving from PocketPages 0.x](/docs/extensions/pages/moving-from-0x). # Pages `brew install pocketonehq/tap/pocketone pocketone pages create myapp` [On Windows? Install with Scoop](/docs/installation#windows) No-Build Multi-Page Apps for PocketOne [ Read the Docs](/docs/extensions/pages/overview) [ Quick Start](/docs/extensions/pages/installation) ``` <%= `Hello, PocketOne!` %> ``` http://localhost:8090 Hello, PocketOne! ## Why Pages is Better Zero compilation, zero bundling, zero build steps. Just write code and deploy, frontend and backend. ### Zero Build Steps No compilation anywhere. Write HTMX, Alpine.js, or VanJS and see changes instantly. ### Server-Side Rendered Pages render on the server using PocketBase JSVM. Fast, SEO-friendly, and reliable. ### PocketOne Native Built into PocketOne: routing and templates in Go, your page code in PocketBase's JS VM. Your data, auth, and APIs are right there. ## Why Multi-Page Apps Matter While SPAs dominate the conversation, MPAs offer proven benefits for most web applications. Pages brings this architecture to PocketBase's powerful backend. ### ✓ MPA Advantages - Instant Page Loads: Server renders HTML, browser shows content immediately - SEO by Default: Search engines get fully rendered HTML - Progressive Enhancement: Works without JavaScript, enhanced with it - Simpler Mental Model: Each URL = one page, like the web was designed - Zero Compilation: No build steps anywhere, frontend or backend pb_pages/users/[id].ets `<% // Server-side data loading in PocketBase JSVM const user = $app.findRecordById('users', params.id) %> <%= user.get('name') %> joined <%= user.get('created') %>` #### PocketBase JSVM Integration Direct access to your database, authentication, and APIs server-side. ## Perfect for No-Build Frontend Drop in your favorite no-build frontend library and start building. No webpack configs, no bundlers, no compile steps. htmxHigh power tools for HTML Alpine.jsMinimal framework for HTML DatastarReactive UI with data binding VanJSUltra-lightweight reactive UI Vanilla JSPure JavaScript, no dependencies HTMX + Pages `<%- include('header.ets') %>
Loading todos...
` Alpine.js + Pages ```
``` Datastar + Pages ```
<% for (const msg of ctx.store('messages')||[]) { %>
<%= msg.message %>
<% } %>
``` [Edit this page on GitHub](https://github.com/pocketonehq/pocketone/edit/main/ext/pages/docs/index.md) ## Questions and comments Comments are a [GitHub Discussions](https://github.com/pocketonehq/pocketone/discussions/categories/q-a) thread; sign in with GitHub to post.