
Andrei O.
@andrei0x309
759 Following
2107 Followers
0 reply
0 recast
1 reaction
1 reply
0 recast
1 reaction
0 reply
1 recast
5 reactions
0 reply
0 recast
1 reaction
2 replies
1 recast
2 reactions
1 reply
0 recast
1 reaction
0 reply
0 recast
1 reaction
2 replies
0 recast
2 reactions
0 reply
0 recast
2 reactions
0 reply
0 recast
1 reaction
4 replies
7 recasts
43 reactions
0 reply
1 recast
2 reactions
0 reply
1 recast
1 reaction
1 reply
1 recast
1 reaction
Not all of them, at the moment fosscaster only uses 35 endpoints. The most essential ones, anyone could use the class with those 35 endpoints here is public ( https://github.com/andrei0x309/fosscaster.xyz/blob/main/app/lib/wc-mod.ts )
Warpacat uses 500+ endpoints as of today, as you imagine, many of them are not super important.
Also, when they enabled the wallet, they leaked the code(using source maps) from their global API hooks, because the embed wallet is in an iframe, and it loads all endpoints again.
So the web version loads all endpoints twice, but not all endpoints are used, because for simplicity, from the code leaked, it seems queries are in a package( probably for easy reuse)
But it is simpler to remake from scratch, don't need the code just the browser is enough, the fosscaster repo duplicates a lot of types because I just use a tool to export all types to be easier, but that doesn't matter much all types are striped when vite does the transforms. 0 reply
1 recast
2 reactions
0 reply
0 recast
2 reactions
If a mini app is rebranded and changed the domain wouldn't have to register again?, the JSON would be invalid with another domain.
In theory, everybody should optimize their domain name as a slug(as per SEO strategy) but I agree that there may be cases where the domain would not be a good slug.
This means the best way would have been to have a dedicated unique slug per app.
At registration, dev would have chosen a slug to ensure the best URL, maybe even allow editing later as most sites do with slugs.
Anyway, my main point is that the character ~ took far less space than the ID, and in theory, for best SEO you should try to use only meaningful words in the URL.
Now again in a long time it doesn't matter, this is a micro optimization, we're practically talking here about the best possible practices, but many times you don't need to follow them to succeed so it's more of an observation than a recommendation. 0 reply
0 recast
1 reaction
1 reply
0 recast
0 reaction
1 reply
2 recasts
8 reactions
1 reply
0 recast
2 reactions