A userscript that adds custom category management to the PocketBase admin sidebar.
Organize your collections into collapsible, draggable categories for a cleaner and more productive workflow.
This script was developed half by me and half by AI. I didn’t bother to set the styles myself or fine-tune some of the mutators, so some stuff may be a bit broken.
- Create custom categories in the sidebar
- Drag and drop collections into categories
- Collapse/expand categories for better organization
- Remove categories easily
- Persistent: Categories are saved in your browser’s localStorage
- Install a userscript manager like Violentmonkey or Tampermonkey.
- Add this script to your userscript manager.
- The script will automatically activate on PocketBase admin URLs.
- Click the "New category" button at the bottom of the sidebar to create a category.
- Drag collections from the sidebar into your categories.
- Expand/collapse categories by clicking their header.
- Remove a category by clicking the ✖ icon.
- Persistence: Categories and their contents are stored in
localStorageunder the keypb_customCategories. - No server-side changes: All data is local to your browser.
- Tested with PocketBase admin UI.
- Should work with most recent browsers and PocketBase versions.
- Sometimes the drag and drop stops working.
- Major Tom & GPT 4.1
