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 nostr:npub1xsn2cx73w7837xhkqalzxr5f9prwn6cvnz4t0e60qa0luff7g4fq28nm65 who make their own gifs

- Ability to load more gifs if you want to go deeper in the search

- Gif counter for nostr:npub1nxy4qpqnld6kmpphjykvx2lqwvxmuxluddwjamm4nc29ds3elyzsm5avr7 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! 👊

nostr:npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw nostr:npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w nostr:npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac nostr:npub1mgvwnpsqgrem7jfcwm7pdvdfz2h95mm04r23t8pau2uzxwsdnpgs0gpdjc

https://github.com/happylemonprogramming/gifbuddy

Reply to this note

Please Login to reply.

Discussion

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.

nostr:npub1hee433872q2gen90cqh2ypwcq9z7y5ugn23etrd2l2rrwpruss8qwmrsv6 file upload would be dead simple especially since you already have an endpoint to upload to nostr:npub1nxy4qpqnld6kmpphjykvx2lqwvxmuxluddwjamm4nc29ds3elyzsm5avr7. 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

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 nostr:npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w 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 nostr:npub1vp8fdcyejd4pqjyrjk9sgz68vuhq7pyvnzk8j0ehlljvwgp8n6eqsrnpsw 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.

nostr:npub137c5pd8gmhhe0njtsgwjgunc5xjr2vmzvglkgqs5sjeh972gqqxqjak37w 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!

Ship it 🚀

🫡🔥

Check if uploading still works, I did not see new files after testing dev link

I was able to upload the nostr:npub1nw5vdz8sj89y3h3tp7dunx8rhsm2qzfpf8ujq9m8mfvjsjth0uwqs9n2gn fire gif

I meant the uploads when link is copied

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 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

nostr:note18tzx4pwwqkaxhwwmkn64kh5dstaswgnpv3d0ujy4dlc0tg6204es037rjj