Oddbean new post about | logout
 Help me make gifbuddy better!

Need help with:
- Reducing memory usage and improving overall reliability
- Better hosting solution as Heroku is expensive
- Add GIPHY library for even more gifs
- Allow uploads for creatives like  @Mel who make their own gifs
- Ability to load more gifs if you want to go deeper in the search
- Gif counter for  @nostr.build uploads to see how big we get
- Prettier Front End design
- Anything else you guys come up with that makes it better

Looking forward to making this app the best it can be with you all! 👊 

 @NotBiebs  @The Fishcake🐶🐾  @Karnage  @Dustin
https://github.com/happylemonprogramming/gifbuddy 
 Glad I could help inspire ! https://v.nostr.build/0CIqxZz8r59uwTH4.mp4 #grownostr 
 Very excited about this.  I've been making some welcome Nostrich gifs and have been trying to find a way to contribute to this project.   
 @lemon file upload would be dead simple especially since you already have an endpoint to upload to @nostr.build. Just need to add an upload form somewhere to let the user enter some metadata. 

It would help if you add a README with how to run the app in development. 
 Working on it right now, big dog

Should have it implemented tonight 

https://media.tenor.com/DcjXcSzny2EAAAAC/about-to-go-down-the-soul-man.gif 
 One issue is that people might upload illegal content since there’s no login needed to upload an image. If that does happen, you can use my nostr-build library to upload the images client side. Users would need a nip-07 extension to do that. 

https://www.npmjs.com/package/nostr-build 
 Dang, you’re right

I was so focused on implementing I forgot about stopping bad guys 

Good looking out, I’m definitely going to need your help with this one then 

I’ll DM you my development build that I have going so we can get that implemented 
 You could just launch it and see what happens. I think @The Fishcake🐶🐾 implemented some AI thing to auto-block CSAM. 
 Yes, we scan for shit and also scan for safety and place ranking in the headers. 
 I just sent you and @NotBiebs a development build over DM

Try it out and let me know what you think 
 I tried uploading this and got an endless spinner. Also, the upload form auto zooms on mobile when you click into the input. Think it would be better if it didn’t do that. https://i.nostr.build/onKooARh3NNYIeNO.gif  
 @The Fishcake🐶🐾 I just pushed a bunch of updates to the dev link 

A few updates:
- uploads should work now
- added “load more”
- gifs should load faster on search

Let me know if you guys have any feedback before I push it or if you have any more ideas

Thank you both for all your help!

https://media.tenor.com/eRYxuSS0LjMAAAAC/keanu-reeves-marketmove.gif 
 🫡🔥

https://media.tenor.com/3CYBa0JhU7gAAAAC/sheep-it-shaun-the-sheep.gif 
 Check if uploading still works, I did not see new files after testing dev link 
 I was able to upload the @yellow fire gif 
 I meant the uploads when link is copied 
 This is how we win. MOAR GIFs.
nostr:nevent1qqsr43r2sh8qtwnth8dmfa2mt6xc97c8yfskgkh7fz2klu845d986ucpzemhxue69uhhqatjwpkx2un9d3shjtnrdakj7q3qhee433872q2gen90cqh2ypwcq9z7y5ugn23etrd2l2rrwpruss8qxpqqqqqqz3dzyfm 
 Suggestions:
- Replace gifs with nostr.build links after theyre uploaded
- Add NIP-98 auth so that gifs can be added to a user's nostr.build account automatically 
 Uploading to nostr-build takes a little while though. I do it a lot every day. I think the UX is good the way it is with the Tenor URL copied to the clipboard immediately. Been working great for me. 
 I’ll probably just make an endpoint that’ll proxy tenor gifs and add them to the list asynchronously. Will add posting of nip94 once it’s done. Should be an easy one weekend project. 
 how much is heroku costing, is it just domain/A plus content? Tuning something similar atm for ~58c/month in aws 🤷‍♂️ 
 AWS Lightsail? Heroku is $7/month

$0.58/month sounds great! How do I do that? 
 https://github.com/aws-samples/aws-cdk-examples/tree/main/typescript/static-site

Let me know if you want a hand, I can probably PR something for you in a few hours 
 😭 Python sorry, convert to apigw Lambdas and another template for that 👍 I’m running is PWA and apigw for .. now 61c/month, mostly DNS charges so far so plus traffic but it’s sooo cheap 
 I see, so it's a static website hosted on AWS S3 server; makes sense why it's so cheap

I've used S3 buckets for file storage, but not for web hosting

It says it's best for websites without server-side scripting; I have some python scripts running server side with each "click to copy" action

Do you think that'll be a problem? 
 Yeah sorry I didn’t realise it was Python! Need to run that code as an API via Lambda, give it a static UI - easy if js/ts 
 I'll see about contributing to hosting support. No promises but I'll do my best to make some kind of contribution. 
 Gifbuddy.lol is a much needed service for nostr. Zap this dude
nostr:nevent1qqsr43r2sh8qtwnth8dmfa2mt6xc97c8yfskgkh7fz2klu845d986ucpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsyg97wdvvfljszjxvet7q963qtkqpgh398zy65w2cm2h6scmsglyypcpsgqqqqqqssyrqup 
 GIFBUDDY UPDATE!

- Add your own gifs with uploads
- Load more gifs to find what you want
- Faster gif loading
- Less memory intensive on the server

MORE GIFS, YOUR GIFS, FASTER
https://media.tenor.com/2nIE5QDDMkoAAAAC/austin-powers-yeah.gif

nostr:note18tzx4pwwqkaxhwwmkn64kh5dstaswgnpv3d0ujy4dlc0tg6204es037rjj