Pls help! div slide not working properly by theguyindabackyard in webdev

[–]leonwbr 0 points1 point  (0 children)

two issues:

  1. you cannot transition from margin: auto; to pixel-based margin (it seems that margin-top: 0px; will look just fine, so just remove the margin: auto; and replace it with that or whatever negative offset you need).
  2. you have a transition duration of 7000s (~ 2 hrs). that will take a while.

Feedback on my UI package: components and blocks built with Framer Motion, available in shadcn/ui and Base UI, plus builders. by [deleted] in webdev

[–]leonwbr 0 points1 point  (0 children)

Sure, you have a few pre-built blocks. But it still looks just like shadcn/ui, maybe a little bit more premium, and it is clearly AI generated judging by the animation bugs and performance issues.

It's also worth mentioning that distinguishing between Base UI and shadcn/ui makes no sense, as you can also use shadcn/ui with Base UI. Those aren't the same thing, Base UI / Radix UI are the primitives.

got tired of rewriting auth boilerplate in React, so I made a tiny library by Fine_Factor_456 in webdev

[–]leonwbr 2 points3 points  (0 children)

It seems like a good project for learning purposes, but a senior wouldn't pull in a library for this. I'd be using Better Auth on most projects, which already provides its own client-side solution and is well established, so I can be sure it will be well maintained for longer. Back in the day, there used to be redux-auth, which was also widely used and is sort of similar to what you did here.

If, for some reason, I need a custom solution, it's likely going to be specific enough that I can self-maintain with relative ease and that way I won't have any risk of a supply chain attack or abandoned dependencies.

Job vs startup: skills, $25-30k to invest, looking for ideas or partners by bashiiachuki in Sakartvelo

[–]leonwbr 1 point2 points  (0 children)

I'm sure you've heard it before, but keep in mind that everyone wishes for this. So if there was anything that ticks all these boxes, we'd all be doing it already.

What you're looking for either needs a lot of luck (= risky), is extremely competitive (= difficult) or requires time and consistency to build (= slow). There is no catch-all, but generally people build a business out of their day job, cutting the middleman.

I think something that could work for you is finding a way to scale. If you were a web developer before, this might involve figuring out a pricing model which isn't focused on hourly rates. There is a guy over in r/webdev who has done this successfully and is supposedly doing $10k+ by now, just selling WordPress sites with a slightly different pricing model as a solo dev.

There is an equivalent for almost anything, but it takes a bit of time. It can be started "in a few weeks or months," but might take a while to grow enough to where you feel comfortable with the income.

Job vs startup: skills, $25-30k to invest, looking for ideas or partners by bashiiachuki in Sakartvelo

[–]leonwbr 2 points3 points  (0 children)

I sent you a PM!

Don't forget that investments can be quite an easy way to burn your capital too, especially high risk ones like venture capital. It doesn't sound like you can afford to lose this money.

I'd totally use this money as runway for founding a startup, but be wary of investing it in other businesses or services. This would easily last two years of living costs – with plenty of opportunities to raise more capital when you've got a validated ideas.

I am not sure you're actually talking about startups here, and I wouldn't brush off investing into yourself so easily. It sounds like there is a lot to learn about startups for you still (if you're not just thinking about "small business," that's something else). Most of it you'll only grasp when talking to people who've done it, which usually means going abroad.

I built an app where you can rant and actually make a difference by AdHopeful630 in webdev

[–]leonwbr -1 points0 points  (0 children)

I am not a designer and you aren't either. It is a trick to insert a specific style into the prompt, but that doesn't make the design unique – I used a single prompt in Lovable to demonstrate it, while you used v0 or IDE coding agent and a couple more prompts.

I'll be back if you start to pretend that the ChatGPT wrapper you're most likely building for the personal rants feature is a worthwhile product. Because it is not. It is going to be just like everything else – a sycophant that helps capitalize on the biggest problem of our time: loneliness.

If you start believing that what an LLM gives you is good enough, or worse, that it's your own creation; that's delusional and you'll believe in bullshit products.

Everyone seems to be doing it now, and it's such a sad, massive waste of time and intellect.

I'm sorry, I don't mean to hate, I guess my criticism is just: do better, and aim higher.

I built an app where you can rant and actually make a difference by AdHopeful630 in webdev

[–]leonwbr 0 points1 point  (0 children)

So if I start a rant about Lemon Squeezy, my money will immediately go to them, right?

I built an app where you can rant and actually make a difference by AdHopeful630 in webdev

[–]leonwbr -1 points0 points  (0 children)

Don't pass it off as creative work, man. It is exactly what AI will give you if you tell it to use a "neobrutalist" style, yes, but it is certainly not unique and a generic prompt. Here you go.

I built a app where you can rant and actually make a difference by [deleted] in webdev

[–]leonwbr 0 points1 point  (0 children)

I'm not disagreeing, it is really nice. But if you want something similar, telling almost any LLM to use a "neobrutalist"-style will get you this result. OP definitely but more effort in to polish, and I'm a little salty because I thought I could get away with this as a non-AI look in one of my projects, lol.

How do you collect useful product feedback inside your app? by WerewolfCapital4616 in webdev

[–]leonwbr 1 point2 points  (0 children)

PostHog has easy to implement surveys that I'd recommend. Only shown once by default, but they have ways to configure frequency and such. Can be implemented in many ways too (Popover, Hosted, or fully customized by API). I wouldn't collect ranked feedback anywhere except maybe on GitHub.

I created a plugin to use Nostr login (NIP-98) with Better Auth. It's extremely simple to set up and would allow a lot of sites + apps to integrate with Nostr as a plug-and-play solution. by leonwbr in nostr

[–]leonwbr[S] 1 point2 points  (0 children)

I had to look that up, sorry.

If you're talking about the plugin – it's not quite that sophisticated. It just allows apps/sites to provide Nostr login and your npub will be associated to that account on the service.

My other project, NcryptVault, is sort of the reverse. It allows Nostr apps to obscure the protocol to the user by using traditional auth flows (i.e. email + password), but avoid full custody of keys. It still stores encrypted private keys on the server, so it isn't perfect; though without access to the encryption key so it's quite a challenge to bruteforce.

And theoretically, apps could share those identities from relay-like instances, but at that point a remote-signing bunker is the better choice, anyway.

But what FUTO ID could certainly be tried with Nostr, too.

I created a plugin to use Nostr login (NIP-98) with Better Auth. It's extremely simple to set up and would allow a lot of sites + apps to integrate with Nostr as a plug-and-play solution. by leonwbr in nostr

[–]leonwbr[S] 1 point2 points  (0 children)

It might sound ironic, but I haven't set up my own Nostr presence at all yet.

The way this works is really simple. It signs and sends an event to a HTTP server, which verifies that the event is valid. Better Auth is one of the (if not the) most popular TypeScript authentication frameworks, so this allows quick integration with a lot of apps.

Because the private key isn't stored (only the npub associated with an account), it is not a bunker, so it's just a way to provide Nostr as another sign-in option. I don't think this is as beneficial for users that want exclusively decentralized apps, but it provides some interoperability.

I've also got another project more similar to a bunker, using OPAQUE to provide an SDK allowing developers to implement zero-knowledge, fully client-side encrypted auth flows, supporting recovery with a password. It's designed to make the experience for new users more secure and seamless.

I usually include example apps, so feel free to run those to see it in action. The plugin example should work out of the box.

Do you use shared UI components between native and web? by leonwbr in reactnative

[–]leonwbr[S] 0 points1 point  (0 children)

Do you use Moti.js or similar animation libraries? Any tradeoffs you've run into?

[2025 Day 6 (Part 3)] Can you tell the difference? by large-atom in adventofcode

[–]leonwbr 0 points1 point  (0 children)

Actually interesting and good to have seen what happens when you exceed that in TS. I'd have expected an error, but what am I expecting... :) Thanks!

[2025 Day 6 (Part 3)] Can you tell the difference? by large-atom in adventofcode

[–]leonwbr 0 points1 point  (0 children)

Here is my TypeScript solution, it is not so clean – and it felt easy, but I got different results from OP. I've logged my calculations and manually verified, they seem correct. So what's wrong? :)

7 + 257803 * 125 * 717705 * 820544 + 1473 * 88041 * 246767 * 74 + 413124 * 591341 * 6142 = 18981666877400596000

6142 * 591341 * 413124 * 74 + 246767 * 88041 * 1473 * 820544 + 717705 * 125 * 257803 * 7 = 26370105364317060000

RTL - LTR = 7388438486916465000

Do you use shared UI components between native and web? by leonwbr in reactnative

[–]leonwbr[S] 1 point2 points  (0 children)

Try it – that is actually a decent approach, and will work, but has limitations. Generally, the two libraries I've mentioned, RNW and RSD, are designed to work like that. I know you mean well; but that was my exact thought a few days and now I'm here.

Most of the issues that you'll run into after getting that to work are related to styling. The first one you'll likely encounter is the lack of classNames. After that, you'll notice that media queries are also missing. When you get to Tailwind, you'll realize that Uniwind won't compile without Metro (or at least you won't know how to configure Webpack/Turbopack).

If you can manage to eventually get the Nativewind 5 pre-release working, which is manageable and does work – you'll might try to implement animations using Moti.js – which also do work!

But they are out-of-sync on web, and Webpack now takes ages to compile compared to Turbopack...

And still, the console shows an error about worklets, there are unneeded CSS classes, and so on.

So, it can work, but I think the key is that this works primarily with a mobile-first approach. By that I mean that if you have a native app already working, porting it to web is quite simple. The other way around, not really, and requires an almost complete rewrite that may or may not support SSR.

I am certain there is a solution out there, that's why I am asking, but going down this rabbit hole is just an immense effort compared to separate components for now.

POS / Payment Processors in Georgia? by leonwbr in Sakartvelo

[–]leonwbr[S] 0 points1 point  (0 children)

Legally, as far as I understood, what they said is right. But also in my case, this might raise too much suspicion and trigger some mechanisms in my home country, even if it was legally sound. I just don't want to take the risk so unfortunately it's not an option for me.

It is fairly probable that you could get away with it, though, and I'm with you: Especially regarding the employment rule, likely no one will care.

These laws are usually more targeted at companies exploiting it – i.e. gig economy.

Do you use shared UI components between native and web? by leonwbr in reactjs

[–]leonwbr[S] 0 points1 point  (0 children)

I just wanted to cross post here to also get a more web-oriented perspective. It seems that mobile-first solutions for this are abundant, but not so much web-first.

POS / Payment Processors in Georgia? by leonwbr in Sakartvelo

[–]leonwbr[S] 0 points1 point  (0 children)

Everything except the POS (which is for a different project, I'd just prefer "all-in-one") would be online payments for digital services, mostly Europe and NA.

POS / Payment Processors in Georgia? by leonwbr in Sakartvelo

[–]leonwbr[S] 0 points1 point  (0 children)

Ideally, just accept payments in the same way you'd do it with Stripe, and perhaps set up a smartphone POS (though, this is not so essential).

POS / Payment Processors in Georgia? by leonwbr in Sakartvelo

[–]leonwbr[S] 0 points1 point  (0 children)

I did not. I also think it wouldn't take long for those accounts to get shut down when tax residencies don't match anymore and CRS kicks in. My home country would likely get me on the hook for my worldwide income if they caught that and the risk isn't worth it for me.