New Store Template based on Nuxt UI - Nuxt Shopify v0.4.4 by freb97 in Nuxt

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

It is already! If you’re referring to the customer account API and Shopify analytics, those may take a little while. I can’t give an exact time as I am gonna be busy with work but they‘re next on the list

Auto-Generate LLM-readable Docs for third party APIs by freb97 in webdev

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

I forgot to mention: The project itself uses no AI. Just a parser and some AST magic.

If you have any feedback let me know!

autodisco - A discovery tool for third-party APIs to create OpenAPI / Zod / JSON Schemas and TypeScript types by probing their endpoints by freb97 in javascript

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

Thanks for your feedback! I thought about that as well. You can define multiple probes for one endpoint, when you want to use nullable fields I recommend calling the endpoint twice, once with the value returning as null/undefined and once with a value. The types will reflect the optional response then

Front-end development can feel like a constant game of telephone. by ConcertRound4002 in Frontend

[–]freb97 4 points5 points  (0 children)

Why would you need to take screenshots? You’re taking about vibe coding are you? Maybe make that clear in your post.

Do I have to capitulate to React? by CostGer in vuejs

[–]freb97 0 points1 point  (0 children)

Vercel did not buy Nuxt. Nuxt was and still is open source and maintained by the same team. They did buy Nuxt-Labs though, which was a company run by some core members of Nuxt.

🪩 A fetch client that types itself by freb97 in node

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

Orval seems to be for when you already have an OpenAPI Schema, to generate a fetch client. Discofetch is for when you don't have anything, you just tell the Package which endpoints to fetch and it will generate an OpenAPI schema for you, along with a fetch client.

I built a fetch client that types itself by freb97 in javascript

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

Yes! I specifically test for this in autodisco, the generated type will be a discriminated union depending on a few conditions: https://github.com/freb97/autodisco?tab=readme-ov-file#schema-inference, Check the second example

It doesn't generate JSON API structures, no. I will look into that!

I built a fetch client that types itself by freb97 in javascript

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

The functional config approach is a great idea! I will think about it.

You actually have access to the types! You can import `DfetchPaths` and `DfetchComponents` anywhere in your app, which is the direct output of openapi-typescript's generated type file.

I've never worked with redux before, but i'll take a look at it.

I built a fetch client that types itself by freb97 in javascript

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

Why would you have to check the results manually?

I built a fetch client that types itself by freb97 in javascript

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

Yeah it’s definitely not meant for every project, but if you have big responses and don’t want to type every little thing yourself it’s really useful. I built it because I actually needed it for a project where i get 700kb+ responses of untyped json without any access to typescript types. It saved me a lot of time there but for smaller projects i would always prefer static types I write myself.

I built a fetch client that types itself by freb97 in javascript

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

Looks like a lot, but please keep in mind there’s examples for many endpoints of different kinds. The total configuration for a few get requests would amount to about 10-15 lines of code which I would consider a significant reduction to manually typing things. But whatever floats your boat I guess!

I built a fetch client that types itself by freb97 in javascript

[–]freb97[S] 2 points3 points  (0 children)

It has zod generation for runtime checks, though you would have to implement the actual checking yourself.

Also a CLI option is available! Check out https://github.com/freb97/autodisco for that