Trying Tauri For The 3rd Time
26:32
How To Self Host Like A Pro
19:05
2 ай бұрын
How To PocketBase Like A Pro
16:38
How To Host Pocketbase
14:53
4 ай бұрын
How To Run LLMs on iOS
9:51
5 ай бұрын
Getting Started With React
24:12
6 ай бұрын
3 Must Know AI Concepts For Devs
11:14
I built my own newsletter...
27:55
I Picked The Best Database
2:37
7 ай бұрын
Why You Should Try Pocketbase
4:53
How To Create AI Apps As A JS Dev
2:15
Пікірлер
@isaaccastillo8628
@isaaccastillo8628 21 сағат бұрын
Can you explain how to setup all the European consent user with this library,? I have right now a hard time dealing with that
@EngrMansoorMirza
@EngrMansoorMirza 3 күн бұрын
great tutorial, the PocketBase maintainer, Gani Georgiev, emphasizes that the primary valid use case for integrating PocketBase with Turso is for autosync/replication and disaster recovery purposes, not for horizontal scaling. Thanks
@earlymorningdev
@earlymorningdev 3 күн бұрын
I have since discovered this so apologies for anyone who has been mislead by my comments on that. It can be used for horizontal scaling though - it just has some limitations like not being able to actually use jsvm hooks etc
@mihaiandrei434
@mihaiandrei434 8 күн бұрын
If you don’t mind, how would you add a rule for allowing only subscribed users to create some record? I was thinking something like loggedInUser.subscription.current_period_end > @now but I’m not sure how this can be written in rules
@hilltrigg3r
@hilltrigg3r 9 күн бұрын
Очень интересно, но ничего не понятно
@mihaiandrei434
@mihaiandrei434 13 күн бұрын
@Early Morning Dev From what i understood, JSVM doesn't support async. I think all the 'await' keywords are pointless. If you add "/// <reference path="../pb_data/types.d.ts" />" at the top of the pb.js file, it also gives you a warning for those awaits.
@earlymorningdev
@earlymorningdev 12 күн бұрын
I remember reading that. Nice tip. I'll investigate
@wasylmowczan
@wasylmowczan 13 күн бұрын
Great tutorial 😀 I also added cases for deleting records to my project. If you think it’s necessary, I can create a PR for your repo.
@mihaiandrei434
@mihaiandrei434 13 күн бұрын
Would you mind sharing?
@earlymorningdev
@earlymorningdev 12 күн бұрын
Feel free to add a PR on the project
@coolstorybrooooo7643
@coolstorybrooooo7643 14 күн бұрын
There seems to be a step I'm missing here, how does the pocketbase webhook know what my user ID is?
@earlymorningdev
@earlymorningdev 14 күн бұрын
Let me explain the webhook knows your user Id by the token. When you authenticate with pocketbase a token is returned which contains Meta data that includes your userid. Does that make sense?
@coolstorybrooooo7643
@coolstorybrooooo7643 11 күн бұрын
@@earlymorningdev Yes, I store it in local storage when the user logs in, how does stripe then learn about it? Does it get sent up with the request to stripe for a new order?
@earlymorningdev
@earlymorningdev 11 күн бұрын
It gets passed as metadata in the http request to stripe - a user associated with that customer is created. The matching happens based on the token. I would check through the code and look at the requests directly there isn't any magic really
@coolstorybrooooo7643
@coolstorybrooooo7643 10 күн бұрын
@@earlymorningdev Awesome, thanks for explaining!
@A-JesusWlkr
@A-JesusWlkr 17 күн бұрын
Why have you cut your screen, can't see any commands you give, just lots of debug information.
@earlymorningdev
@earlymorningdev 14 күн бұрын
Problem with my recording software. Sorry about that
@manmittiwade
@manmittiwade 26 күн бұрын
What happens if I remove use client from a page and instead create a separate component to include the use client thing? How would this change affect the behavior of the page?
@earlymorningdev
@earlymorningdev 25 күн бұрын
Great question. Think of it like this. Adding use client to a component makes that component run using js on the browser. Use client on a page makes the whole page run in js. Use client on individual components mean that only these components load client side. Here's the steps in this case: 1. page loads from the server 2. Use client components load using js on the browser. Does that make sense?
@mediopalodev
@mediopalodev Ай бұрын
ha! lovely :) thank you!
@feignenthusiasm
@feignenthusiasm Ай бұрын
Dude you're covering all the best stuff, PocketBase, AlpineJS ❤. Keep it up man, the world needs more of this content!
@earlymorningdev
@earlymorningdev Ай бұрын
Thanks for the support 🙏 🙌
@olatunjiolakunle6908
@olatunjiolakunle6908 Ай бұрын
Can you have multiple db per tenant along side pocketbase with this setup ?
@earlymorningdev
@earlymorningdev Ай бұрын
Yes you can but there are some caveats that would need to be worked through like validation rules and hooks
@HaroldDefree-ow8kz
@HaroldDefree-ow8kz Ай бұрын
i have been using it for long with laravel
@oluijks
@oluijks Ай бұрын
Good talk, I really enjoyed it. I'm hoping that Pocketbase will see a good future, it got a lot of potential to be a well thought backend solution. I havn't build anything serious thing with it, I'm waiting for v1, but I'm happy to see the the creator takes it seriously.
@rasyasejati
@rasyasejati Ай бұрын
That's cool! will look into tauri
@earlymorningdev
@earlymorningdev Ай бұрын
Let me know what you think
@null4624
@null4624 Ай бұрын
Less lost now, thanks :)
@earlymorningdev
@earlymorningdev Ай бұрын
Glad I could help
@BillionaireBoundOdyssey
@BillionaireBoundOdyssey Ай бұрын
no no all the city pic should be rounded, unless no one wants to go lol
@earlymorningdev
@earlymorningdev Ай бұрын
😅
@abdushakoor0099
@abdushakoor0099 Ай бұрын
wow these derived collections feature is amazing, just brilliant. Pocketbase is so based
@earlymorningdev
@earlymorningdev Ай бұрын
Yeah when I discovered that it was a game changer
@abdushakoor0099
@abdushakoor0099 Ай бұрын
@earlymorningdev we are currently moving our internal company chat and project management app to pocketbase that is gonna run on a computer in the office over the same network. Not sure how it will go but i have high hopes.
@AItechtalks-d1k
@AItechtalks-d1k Ай бұрын
you seems to fan of pocketbase nice work
@earlymorningdev
@earlymorningdev Ай бұрын
Of course it is the best 👌
@chrismarks7495
@chrismarks7495 Ай бұрын
Great video!! Is there a way to use pocketbase with PostgreSQL?
@earlymorningdev
@earlymorningdev Ай бұрын
There is a fork that I know of but it really shouldn't be used. For now libsql is all there is
@BenAllfree-z6c
@BenAllfree-z6c Ай бұрын
At 25:04 you show accessing Turso from the Turso web client. I would advise caution as this is making a database access key public. Anyone can obtain the key and use it to query the database directly, bypassing PocketBase's robust security entirely.
@earlymorningdev
@earlymorningdev Ай бұрын
Good point Ben! I think a certain degree of caution is required with this
@Dominik-K
@Dominik-K Ай бұрын
Turso with pocketbase is just amazing!
@dandogamer
@dandogamer Ай бұрын
It would be cool to see if people build a library that infers your pocketbase collections and builds the correct ORM for it. So I have all the typed queries i need based on my collections.
@earlymorningdev
@earlymorningdev Ай бұрын
I think that would be awesome 👌
@jawadmalmusawi7478
@jawadmalmusawi7478 Ай бұрын
hope we can integrate nodejs/deno 2 or bun directly with Pocketbase.
@earlymorningdev
@earlymorningdev Ай бұрын
Yep would be good to replace the goja with a real js engine
@greendsnow
@greendsnow Ай бұрын
May I ask? What for do you want to do that? This will slow down your response time and make you pay a larger bill... I remember we had something for regular backups. Also how about encryption and authed users?
@earlymorningdev
@earlymorningdev Ай бұрын
Good considerations. How exactly will it slow response time? Yeah encryption and authentication is something I still have to explore. Will probably do a follow-up to this one
@greendsnow
@greendsnow Ай бұрын
@@earlymorningdev Eh (if you're not going to use turso directly, which you probably won't because of auth verification)... you'll have to go to your pocketbase instance first and pb will req a res to send you back that response.
@coolstorybrooooo7643
@coolstorybrooooo7643 Ай бұрын
Bro, do another lemonsqeezy vid but with all transaction types
@earlymorningdev
@earlymorningdev Ай бұрын
I will soon
@YuriyKlyuch
@YuriyKlyuch Ай бұрын
Yeah, I was wondering what this custom db connection of 0.23 would allow. Thanks for your attempt to explain the benefits, but I think more videos with further explanations are needed
@earlymorningdev
@earlymorningdev Ай бұрын
Glad I could help. There is going to be many more video's as I find more use cases - I think the biggest one I am looking at is Pocketbase as a vector DB and Pocketbase + GEOJSON which now appears to be a possibility
@madmaxdev
@madmaxdev Ай бұрын
great news
@fasogoss
@fasogoss Ай бұрын
I think this is step forward but the DX is not as good as PB. Maybe in the future the integration can be done through a cli or something when setting up pb instead of having to do all the custom go code since maybe PB user probably to work a lot with go compared to JS. Does this mean you have to reimplement API rules on top of turso to get what you currently get from PB for free ?
@earlymorningdev
@earlymorningdev Ай бұрын
That's a good point. I didn't test the api rules for turso
@danielf4438
@danielf4438 Ай бұрын
Hi! Liked the rounded brests! I also dont really understand what is the point of pocketbase here ? Why dont just just create a turso db and then use the turso sdk via your front end app?
@earlymorningdev
@earlymorningdev Ай бұрын
They are good aren't they! Yeah I think it's just a case of being able to get the hooks and auth of Pokcetbase while getting the benefits of Turso up time and syntax simplicity with SQL. For me and my projects this doesn't make a difference as if I need sql I will just use a custom hook function. But I know this addresses peoples requests for this feature and it also opens the realm of offline first pocketbase and also vector dB's within pocketbase
@zakpaw.
@zakpaw. Ай бұрын
⁠@@earlymorningdev not sure I understand how does libsql help with offline first case, what did you mean? The biggest benefit I see in turso is easy db per user pattern which as far as I understand won’t work with pocketbase, so we’re left with read replicas, backup, and vector search; which is still great vs litestream
@earlymorningdev
@earlymorningdev Ай бұрын
Well if you hook up sqllite cr you can sort of get offline first. I am still looking into how to do it but my point was there are a lot of options now for working with all sorts of data we couldn't before. Like there is sqllite geo libs as well which is awesome for some of my projects
@zakpaw.
@zakpaw. Ай бұрын
Never heard of cr-sqlite before, looks interesting, thanks!
@BenAllfree-z6c
@BenAllfree-z6c Ай бұрын
​@@earlymorningdevCan you please link to the user requests you're referencing here? As you say, you can already use raw SQL via a PocketBase hook. Any db writes done outside of PocketBases's Model/Record API will bypass all PocketBase security and events and should be done with extreme caution.
@HaroldDefree-ow8kz
@HaroldDefree-ow8kz Ай бұрын
Looks like the Pocketbase owner is getting a bit overwhelmed by the community’s requests! 😅 I guess everyone just wants their app to run perfectly, but a little patience goes a long way! Hang in there, we all appreciate the hard work! 🙌
@HaroldDefree-ow8kz
@HaroldDefree-ow8kz Ай бұрын
base on the way he respond (i respect his work)
@earlymorningdev
@earlymorningdev Ай бұрын
Yeah Gani is doing a great job. This change in particular is going to be huge for building better SQL Lite integrations with PocketBase
@greendsnow
@greendsnow Ай бұрын
Can we talk about this concurrency issue? What's going on there?
@earlymorningdev
@earlymorningdev Ай бұрын
Which issue?
@feignenthusiasm
@feignenthusiasm Ай бұрын
Great conversation! Very cool work with Pocket Pages and Pocodex, didn't know about these, glad to have them on my radar! I disagree with your assessment at 1:14:40 about Gani not wanting to extend the PB admin. He's said several times that he'd like extendable UI components, but the build process for Svelte makes this hard. In some of his recent posts, he's vaguely mentioned working on his own templating language.
@earlymorningdev
@earlymorningdev Ай бұрын
That's super cool. I wonder what exactly those limitations were in the build process for svelte
@feignenthusiasm
@feignenthusiasm Ай бұрын
@earlymorningdev I can't link to the discussion because it will get flagged as spam, but in his recent post about SSR he said: "I'll add various helpers for Go SSR apps because I personally have a need for that and I'm planning creating a new simple Go template engine (and eventually "pb_pages" files based router as a PocketBase plugin)"
@feignenthusiasm
@feignenthusiasm Ай бұрын
@@earlymorningdev I think the challenge with Svelte is mainly that there's a build process with bundling etc. Then there's considerations like loading the JS/CSS that's produced, hooking it into the SPA router, and converting all his existing scaffolding into reusable components. Issue 898 discusses this a bit more
@dandogamer
@dandogamer Ай бұрын
It's crazy to me how far JS engineers will go to make sure they can write JS 😆I must say I wish the golang API for interacting with some of the internals of pocketbase was better. It's not straight forward to reach into the DAO layer. I can't remember if that was part of the refactor of 0.23 or not. Edit: the DAO layer was removed in v0.23 Also about the hooks scalability I remember seeing an old github issue about it, so it's definitely a known issue but also the hooks in general are written in a way thats not scalable. This was talked about in one of the github threads and hopefully will be refactored and sorted in the future :D
@earlymorningdev
@earlymorningdev Ай бұрын
This is a good insight. I would love a link to that thread. The issue is that there is that hooks should be like edge functions but they aren't really
@dandogamer
@dandogamer Ай бұрын
@@earlymorningdev I dont think youtube will allow me to post a link but from memory the main topic of the thread was talking about using different databases for pocketbase and I believe marmot was also thrown into the convo. Hope that helps and thanks for the great interview. Really makes me want to spin up a micro SaaS with pocketbase. Although I'll probably not choose to go down the JS VM road 😬
@BenAllfree-z6c
@BenAllfree-z6c Ай бұрын
I read this as I’ve been programming golang for the past 48 hours 😂 Scalability is a hoax. Write your unscalable app and profit 🤙 But in all seriousness, the JSVM scalability discussion is very misunderstood, I feel. PocketBase is extremely performant and there are workarounds for most every scenario/objection someone has.
@dandogamer
@dandogamer Ай бұрын
@@BenAllfree-z6c I agree with the scalability part. And pocketbase on a single VPS will scale enough for you to figure out whether your idea has legs or not :)
@SadeceOyun4444
@SadeceOyun4444 Ай бұрын
I'm using Expo 52.0.17 and it doesn't work, I've been trying for 10 hours and it hasn't worked, how can I do it?
@earlymorningdev
@earlymorningdev Ай бұрын
I hope I can help what is the issue you are facing?
@JonBrookes
@JonBrookes Ай бұрын
watching this I found myself thinking "There's a frood who really knows where his towel is" I dont often go for such long vids but this one is well worth the time to listen through, I'm fascinated to hear how pocketbase and an ecosystem is come into being around it I currenlty use Laravel as it ticks a lot of boxes for me but pocketbase was and is on my list of very cool tools Ben's work is nothing less than inspiring
@earlymorningdev
@earlymorningdev Ай бұрын
Yeah Ben is based. I think there is a lot to love in the PB space at the moment. Really want to see where the laravel space goes as well. Seems to be the popular alternative for nextjs
@ShajidHasan
@ShajidHasan Ай бұрын
I'm the dude whose app went viral my app now has 271K sign ups in just about 25 days! But everything is super snappy and fast and I couldn't be happier with PocketBase and PocketHost. And props to Ben for being the nicest person I've met online! He's truly a genius.
@gbshadow666
@gbshadow666 Ай бұрын
Great video, I understood the whole operation but I couldn't understand the utility, what would create this api_key, and why I would use this approach, it's a sincere doubt, I don't have that much knowledge, if someone can give a real example of this use so I can understand better I thank you
@earlymorningdev
@earlymorningdev Ай бұрын
Hey thanks for that, Yeah it depends on what you are creating my use was to create a developer tool that allows other developers to connect to my PB instance to do AI generation. Does that answer your question?
@madmaxdev
@madmaxdev Ай бұрын
I personally don't like ejs because of its syntax, I think JSX is the good spot, there's large community around it and pepople are comfortable with it, even honojs supports server side rendering with jsx. So it would be cool if it appears around pocketbase ecosystem.Also tools like HTMX and alpine are great options too.
@earlymorningdev
@earlymorningdev Ай бұрын
The only issue I have potentially seen with Alpine.js and HTMX is that you have to have both to do CSR and SSR which I think is not the all in one magic that some people are after. I think that's why next exists tbh
@BenAllfree-z6c
@BenAllfree-z6c Ай бұрын
There might be a way to put a jsx transpiler into PocketPages
@mrbjjackson
@mrbjjackson Ай бұрын
Thanks for the interview. I'm a "Flounder member" of PocketHost and I'm excited to start working with it. I see the value of PocketBase in the following place: I make websites for small to medium businesses and I see it as a very cheap to run CMS alternative with a backend that I wouldn't mind sharing with clients. Up until now my go to for this was a Wordpress instance, which I run as a REST API for static rendered sites (using Astro / Next / Gatsby). Wordpress always feels a bit hacky and overengineered for just a few simple content types (using ACF) and I am paying £10+ per month to keep each instance running. Now I can just use a PocketBase instance instead. In this talk Ben talks about how he feels like if given enough money the priority would be to find a way for PocketBase to scale. Personally I disagree. I think there are already good solutions for apps of that scale but (I'm guessing) the vast majority of people don't need anything that can handle more requests than PocketBase can provide.
@fasogoss
@fasogoss Ай бұрын
We really need some more video on pocketbase hooks and JSVM, again awesome chat with Ben!
@earlymorningdev
@earlymorningdev Ай бұрын
On it! Hooks are the lifeblood of Pocketbase and are probably the most important part of Pocketbase for me
@AmaroAmaral
@AmaroAmaral Ай бұрын
Love it! Thank you Both! Happy Flounder here! PocketHost saved my life!
@earlymorningdev
@earlymorningdev Ай бұрын
Yeah the flounder deal is probably the best value ever for me
@edzynda
@edzynda Ай бұрын
I come from the stoneage of development but I prefer developing locally and extending with Go. Just feels cleaner.
@earlymorningdev
@earlymorningdev Ай бұрын
I extended with go and respect it but I think that there are a lot of JS purists that don't want to deal with it. In the payment extensions I have developed most of the issues people have is that their go knowledge isn't there - using just js is really helpful for that particular audience I think
@Skylla54
@Skylla54 Ай бұрын
Love the conversation. It mindboggling, how much one main person can achieve, love it. :D True for pockethost and pocketbase.
@earlymorningdev
@earlymorningdev Ай бұрын
It's awesome that more people are getting evolved as well. I think that Pocketbase as a community is evolving
@danielkert-dev
@danielkert-dev Ай бұрын
Haha! Great podcast!
@earlymorningdev
@earlymorningdev Ай бұрын
Thanks for listening! Might have to do it again
@HaroldDefree-ow8kz
@HaroldDefree-ow8kz Ай бұрын
@@earlymorningdev cool please be the owner of pocketbase and please ask him why he is refusing my help i have ask in work to do he always reject 🤣🤣😂🥲
@reynaldogalvez6134
@reynaldogalvez6134 Ай бұрын
Hi is there a way to import my data from google sheet to pocketbase automatically sort of bulk upload in pocketbase. thanks
@earlymorningdev
@earlymorningdev Ай бұрын
Hey there, That's a really great idea. I'd love to know more about the use case then I might be able to help more. I would look into hooks for something like that if I was going to tackle it
@dovh49
@dovh49 Ай бұрын
Oh, my. PocketPages. I was starting to learn Go for a hobby project, but now I don't need to! And designing with HTMX in mind too. I love that style of programming.
@earlymorningdev
@earlymorningdev Ай бұрын
Definitely feels simpler. We need to get back to that way of doing things
@BenAllfree-z6c
@BenAllfree-z6c Ай бұрын
Great chat, thank you so much for the invite! I'm stoked for the future of the PocketBase community 🤙🤙
@earlymorningdev
@earlymorningdev Ай бұрын
Absolute please to have you on Ben! You da man!
@ayoubkrt5018
@ayoubkrt5018 Ай бұрын
i read the blog for v2 and it mentioned the ability to use kotlin/swift does that mean instead of rust kotlin and swift can be used to fully replace rust? (except for native api's)
@earlymorningdev
@earlymorningdev Ай бұрын
No I think it means that you can use those in conjunction with rust if you like. There is a strong chance you will need to go and do that anyways at some point. My hope is that enough support is given for the project to where you never have to break away from rust just like expo
@ayoubkrt5018
@ayoubkrt5018 Ай бұрын
@@earlymorningdev my hope too ill be honest and say rust is a big turn off for me personally im sure there are others who aren't familiar with or outright scared other option is wails with go lang but its not as mature
@earlymorningdev
@earlymorningdev Ай бұрын
@@ayoubkrt5018 I want to see it happen. Out of curiousity why not rust?
@massimilianosabato
@massimilianosabato Ай бұрын
interesting, but it doesn't explain how to install it correctly on iOS and configure it
@earlymorningdev
@earlymorningdev Ай бұрын
I will be making a video on this at some point. Trying to build some apps to do this at the moment