r/pocketbase • • Sep 05 '24

Announcing Pocketbase Plus: Automate Model Generation for Your Projects! (Dart)

1 Upvotes

Hey everyone,

I've been working on a Dart package called Pocketbase Plus to help fellow PocketBase developers speed up their workflow. If you’re like me, you’ve probably spent too much time writing the same boilerplate code for your models. I figured there had to be a better way, so I created this tool to automate that process.

What can Pocketbase Plus do?

  • Skip the hassle of manual model creation.

  • Cut down on repetitive code and save time.

  • Focus on the actual app features that matter.

If you want to check it out, all the documentation is available on GitHub.

Feel free to reach out with any thoughts or questions. I'd love to hear your feedback as I keep improving Pocketbase Plus. Let’s make building PocketBase apps a bit more fun!


r/pocketbase • • May 11 '26

I built a PocketBase security auditor — keyless `--discover` parses your repo + probes the public API. Found 22% of random Supabase projects leak data, so I replicated the tool for every BaaS.

0 Upvotes

Tldr: `npx pocketbase-security --discover .` from any PocketBase project, no admin auth, no superuser token, no setup. Parses your `pb.collection('xxx')` call sites, then hits `/api/collections/{name}/records` anonymously to see which collections leak data.Context — I built supabase-security a week ago, ran it against 100 random Supabase projects from GitHub, found 22% leak user data with `USING (true)` policies that look correctly configured in the dashboard. Then I ran it against my own production CRM and found 14 critical leaks (RPCs with SECURITY DEFINER, storage buckets with anon read, RLS USING true on order tables). Posted the public postmortem in r/SideProject.After shipping that I realized — every BaaS has this same "dashboard shows green, anon REST returns rows" gap. So I replicated to PocketBase, Appwrite, Firebase, and Nhost. All four are on npm now under similar names.For PocketBase specifically the discover mode catches:- Collections with empty (= fully public) list/view/create rules- Collections with `@request.auth.id != ""` (any signed-up user passes — same trap as Supabase RLS)- Dangerous literal rules (`true`, `|| true`, etc — leftover dev rules)- Open signup + lax create combosIt's MIT, open source: github.com/Perufitlife/pocketbase-security-skillCurious if anyone here has stories about API rule footguns they hit. The patterns I'd want to add to the detector next are around `@collection.X` references that accidentally expose data through a join.


r/pocketbase • • Dec 25 '24

PocketBase readiness

1 Upvotes

Greetings developers.

I have a question as a pocketbase newbie.

Why if the base on which this project is based on is SQLite, which has been around for many years; the documentation recommends not using it yet for production projects.

Is it just because the APIs may change in the future or are there other reasons that have to do with the DB engine itself.

Thanks for any comments and information you can provide.


r/pocketbase • • May 03 '26

I just got banned from the pocketbase discussions on Github?

Post image
0 Upvotes

I asked a question on the discussions page because after going through all documentation I couldn't find if I could reproduce the collections api response programmatically such I could modify and restrict the fields returned (extending pocketbase with new routes). And now my post has been nuked?

I'm sorry if my question was vague? But now if someone has the same question and somehow finds the post they are going to ask the same question again.........

After responding to the last message my post was promptly removed and my access was restricted. I do this things for a living (not pocketbase though ;) ) and pocket base was high in my opinion, loved working with it, but this just completely baffles me.

Edit: I would like to clarify that I don't expect a perfect response, or even any response. People can ignore my question if they want, but banning seems just wrong?


r/pocketbase • • Feb 01 '25

Newbie Needs help hosting PB and app

0 Upvotes

I have built a NextJs app with PocketBase as db.
I have a VPS with 4gb ram and 200gb storage.
I am expecting up to 100k visitors per month through direct email.

Please guide me to a resource or help me understand how can I host both on the same VPS.
Please be as detailed as possible.

Note: I am completely new to this (moved from no-code to code). Please be kind with me.

I extend my gratitude for your help.


r/pocketbase • • Jun 07 '26

Update on Pobase (PocketBase mobile manager): Android build is ready + looking for your feedback!

7 Upvotes

Hey everyone,

To recap, I built Pobase as a side project because managing collections from a mobile browser was getting tedious. After getting a lot of messages asking for Android support, I spent the last few weeks building the Android version and polishing the UI based on your initial feedback.

Security is handled entirely on-device: all credentials and tokens remain stored locally and are never sent anywhere else.

What’s supported right now:

  • Connecting to multiple PocketBase instances

  • Browsing and searching collections

  • Viewing and editing records

  • Managing auth users

Since the core client is now stable on both platforms, I want to shape the next features entirely around what this community actually needs.

Play Store: Play Store Link

App Store: App Store Link

I would love to hear your thoughts on the Android build and any specific features you've been missing. What should I prioritize next on the roadmap?

Thank you all for the support!


r/pocketbase • • Mar 12 '24

Modify build-in avatars and Serving custom UIs

0 Upvotes

Hello, I've built custom cool looking svg avatars and UI and I've tried to fork pocketbase to include them in my own build however seems nothing I do can get me to achieve that due to the following:

1- If I changed dependencies from GitHub.com/pocketbase/pocketbase to my custom module everywhere I seem to be getting echo v 3 all the time and the package would not recognize v5 thus the build fails.

2- If I didn't and tried to rename them to my local copy instead I always get that pocketbase is imported as my custom github module but points to pocketbase and as a result also fails.

How can I achieve my intended behavior?

Any help is much appreciated.

Thanks in advance.


r/pocketbase • • May 25 '24

Seeking Guidance on Pocketbase Job Scheduling with SvelteKit

0 Upvotes

Hello Pocketbase Community,

I'm currently working on a project using Pocketbase and SvelteKit, and I'm in need of some guidance. I'm trying to create custom jobs that interact with the database using Pocketbase's Job Scheduling feature.

My goal is to schedule jobs that perform tasks periodically, such as updating certain records or performing calculations based on data in the database. I've gone through the Pocketbase documentation, but I'm still a bit unclear about the implementation details and best practices for creating these custom jobs.
If anyone has experience with Pocketbase Job Scheduling in the context of SvelteKit,

I would greatly appreciate any insights or examples you can provide. I'm particularly interested in understanding how to define the jobs, schedule them, and interact with the database within the job handlers.

If you have any code snippets, tutorials, or resources that could help me get started with this, I would be extremely grateful. Your assistance would be invaluable in helping me move forward with my project.

Thank you in advance for your help!


r/pocketbase • • Mar 13 '24

Pocketbase error

0 Upvotes

I have no idea what this means or how to fix it: Failed to load resource: the server responded with a status of 504 (Outdated Optimize Dep)


r/pocketbase • • Aug 14 '24

Any Idea how to upload files to PB from go without using form.AddFiles?

0 Upvotes

Anyone has any idea on how I might be able to upload files to pb using record.Set or something like that which doesn't undergo record validation instead of going through model validation via forms?

I need something like this:

heroImageFile, err := c.FormFile("hero_image_file")
if err != nil {
	logger.LogDuringDev("%+v", err)
	return respondWithError(c, err, http.StatusInternalServerError, "Failed to open hero image file as a multipart-form-file.")
}

if heroImageFile != nil {
	file, err := heroImageFile.Open()
	if err != nil {
        return respondWithError(c, err, http.StatusInternalServerError, "Failed to open hero image file")
			}
	defer func(file multipart.File) {
		err := file.Close()
		if err != nil {
			logger.LogDuringDev("%+v", err)
		}
	}(file)

        pbFile, err := filesystem.NewFileFromMultipart(heroImageFile)

        if err != nil {
	       return respondWithError(c, err, http.StatusInternalServerError, 
               "Failed to create file from reader")
        }
        // HeroImageFile
        record.Set("hero_image_file", pbFile)
        if err != nil {
	       return respondWithError(c, err, http.StatusInternalServerError, 
               "Failed to add hero image file")
        }

       // Append the filename to the response slice
       uploadedFileNames = append(uploadedFileNames, heroImageFile.Filename)
}

if err := app.Dao().SaveRecord(record); err != nil {
	return respondWithError(c, err, http.StatusInternalServerError, "Could not save record")
}

// Return the uploaded file names as a response
return c.JSON(http.StatusOK, map[string]interface{}{
	"message": "Images uploaded & linked successfully!",
	"files":   uploadedFileNames,
})

This returns 200 success however the file is not there!


r/pocketbase • • Dec 16 '24

Using cron Job which reads from the db

0 Upvotes

I have a cron job which I want to run at 9am everyday,

It reads from the database gets a list of users and then emails them

Problem is that I’m getting an error in golang, because I’m reading from the db before the app starts.

Any idea how to fix it?

Code is here:

func main() { app := pocketbase.New() app.OnServe().BindFunc(api.LogTime(app))

if err := app.Cron().Add("emailYesterdayResults", "0 7 * * *", email.EmailYesterdayResults(app)); err != nil {
	slog.Error("Error adding cron job", "Error", err)
}

if err := app.Start(); err != nil {
	slog.Error("Error starting backend", "Error", err)
}

}


r/pocketbase • • Aug 15 '26

host pocketbase for free

Post image
0 Upvotes

is there any way for hosting pocketbase for free ?


r/pocketbase • • Dec 20 '24

React native plus pocketbase

2 Upvotes

Hey guys , need a small help. Working on a react native mobile application and I am thinking of using pocketbase for auth but I'm unable to understand the docs and couldn't find any good YT video . Anyone who has worked with this combination , please DM me . It's kind of urgent

Thanks:)


r/pocketbase • • Jan 08 '25

How Secure?

0 Upvotes

Planning on using PocketBase as a backend for non-confidential information in a production environment.

The intention is for every request to be processed by a service user using queries from a webserver. nothing exposed to the client at all. The database will also be sat behind a firewall on the same server as the front end.

But how secure is PocketBase itself?

Accepting cross site scripting, data sanitisation and validation etc what is there anything I'm missing?


r/pocketbase • • Jan 13 '25

pocketbase-sveltekit-starter

4 Upvotes

Hi has anybody used this - https://github.com/spinspire/pocketbase-sveltekit-starter - to build an app. Like to hear your thoughts on using this as a starter template, or your recommendations for an alternative.

Thanks


r/pocketbase • • Mar 25 '26

Hot takes for PB v1.0

13 Upvotes

Just some ideas,

I’ve heard the dev is working hard on v1.0, which is awesome. Just wanted to write down these 2 ids

Although sqlite is good for this easy deployment, BYODB (bring your own DB) would be lovely, supercharging pocketbase with postgres would be lovely!

A plugin structure built in to PB would kick ass, just in this reddit page, the amount of extensions people write. A plugin structure so the community can share these amazing extensions, and write connections to common tools! Man that would make it more of a swiss army knife without the need of abusing the custom hooks!

What are you guys’ ideas for the ultimate version of PB?


r/pocketbase • • May 09 '26 Bravo

I built a security auditor for PocketBase — finds the 3 over-permissive rule patterns I see in every prod instance

5 Upvotes

After auditing my own Supabase project last week (found 17 leaky tables) I built the same thing for PocketBase. Same idea, different surface — PB rules are way easier to leave too open than RLS, and there's literally no scanner for it that I could find.It detects the three rule patterns that bite people the most:1. **Empty rule** — leaving listRule/viewRule blank means the collection is fully public. Anyone can dump every record without auth. Common because the admin UI's blank field doesn't visually scream "public".2. **`@request.auth.id != ""`** — looks restrictive but lets ANY logged-in user (including a self-signed-up anonymous one if you have open signup) read or write the whole collection. This one ships in a lot of starter templates.3. **`true` literal in the rule** — leftover from local dev, evaluates to "always allow." The rule editor doesn't flag it.It also catches: open signup combined with lax create rules, OAuth provider misconfigs, email auth without verification.**The differentiator (and what took the longest):** active probe. After detecting a suspicious rule, the auditor sends an actual anonymous GET to /api/collections/{name}/records and tries to fetch a row. If it gets data back, the finding is marked CONFIRMED with the row count, columns visible, and bytes leaked. So you're not staring at a "this might be exposed" — the report literally shows "we just fetched 42 rows from this collection without any auth."Stack: pure Node.js, no deps, MIT. Three surfaces:- CLI/Skill repo: github.com/Perufitlife/pocketbase-security-skill- MCP server (so Claude Code/Cursor/Cline can call it directly + apply fixes): github.com/Perufitlife/pocketbase-security-mcp- Apify actor (no install, BYOK): pocketbase-security-auditorOutput is a self-contained HTML report (~25KB Tailwind+Chart.js via CDN) with a fix snippet on every finding. Free. Local-only. Admin password is used only for the auth call and never persisted.Built it in a session this morning. Happy to add checks if anyone has rule patterns I missed — open issues or PRs welcome. Also if you run it on your own instance and find something interesting, drop a comment, would love to see what patterns are actually out there.


r/pocketbase • • May 18 '26

[Opinion Request] Pocket Base Client With Traditional SQL

1 Upvotes

Would you use a client that would give you the ability to query Pocket Base using traditional SQL? Things like inner joins, excepts, etc. What if it also helped you create the API calls and transformations? Would this be a product you would be interested in?


r/pocketbase • • Mar 21 '25

Online Store with Pocketbase?

1 Upvotes

Is it possible and smart enough to create an e-commerce online shop using pocketbase?

Are there any Go alternatives for this with such functionality?

Thank you in advance.


r/pocketbase • • Jan 30 '25

Pocketbase hosting platform

Thumbnail quickhost.app
1 Upvotes

Hey, folks since after i heard about pocketbase, i started using it so much as its so easy and gets my job done. That i ended up creating a Pocketbase instance hosting platform. Its still in development phase but would love to get reviews.


r/pocketbase • • Dec 18 '24

Does PocketBase send data to 3rd parties?

1 Upvotes

I have an app that will be served locally. The data is extremely private. And the corporate wants no 3rd parties.
So, does PocketBase send any data to the internet? Even diagnostic data.


r/pocketbase • • Oct 28 '25

What’s tougher for you in deployments — the tech side or the pricing side?

Thumbnail reddit.com
1 Upvotes

r/pocketbase • • Oct 15 '25

AI Powered Lead Qualification in Go | Pocketbase, Ollama, BAML

Thumbnail
youtu.be
0 Upvotes

Learn how to build a practical lead qualification system that automatically analyzes incoming leads and determines whether they're worth pursuing. This tutorial covers everything from setting up a web form to running local AI models for intelligent lead scoring. We'll use PocketBase as both our backend framework and database, keeping everything self-hosted and free. The AI portion runs completely locally using Ollama with the Qwen 1.7B model, and we'll use BAML to ensure consistent, structured outputs from the language model.


r/pocketbase • • May 12 '26

LLMs.txt for PocketBase

Thumbnail pocketbasecloud.com
7 Upvotes

This llms.txt allow AI agent like Claude/Codex/Cursor/... automate create collections, we don't need to manual create collections in admin UI.

Try with promo:

Build a minigame to allow user get vouchers with lucky draw. Use PocketBase as backend, use https://pocketbasecloud.com/llms.txt as guide to work with pocketbase. PocketBase instance is https://exampleInstanceId.pocketbasecloud.com