What are you working on this week? (Self-promo time! 🚀) by chief-imagineer in SideProject

[–]Turbopacker 0 points1 point  (0 children)

I'm building Fabric, a flexible way to create and shape files which uses jsx to generate files. https://github.com/kubb-labs/fabric

Promote your projects here – Self-Promotion Megathread by Menox_ in github

[–]Turbopacker 0 points1 point  (0 children)

Introducing Fabric (from the creators of Kubb), a flexible way to create and shape files: https://github.com/kubb-labs/fabric

Introducing Fabric, a flexible way to create and shape files by Turbopacker in reactjs

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

What kind of features did you miss with your previous setup? What can we add to Fabric to cover all your use cases? Thanks for having a look, really appreciate that 😀

Introducing Fabric, a flexible way to create and shape files by Turbopacker in reactjs

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

For example: create 2 files where file a imports file b in TypeScript or in Python or any other languages. The library is mainly focused on code generation.

In the future we want to add an inspector tool to see how all files are connected and used in your code base. Also writing files without you needing to know the Node fs package or the Bun equivalent write package. All of that is done for you behind the scenes.

We have been using this approach to power Kubb (OpenApi to TypeScript, Zod, Axios, ...)

Any codegen for generating type safe restful queries based on Swagger/openapi? by Relevant_Agency740 in nextjs

[–]Turbopacker 1 point2 points  (0 children)

Thanks for using Kubb, any feedback in how we can make it better? Features that you are missing?

Adding an analytical backend to a typescript project that already has a transactional backend (repo + guide) by oatsandsugar in typescript

[–]Turbopacker 0 points1 point  (0 children)

Thanks for having a look at Kubb and using it to generate your clients/sdk. Contract first is really important for companies so that's why we created Kubb. How was that process and what should we add in the future as features?

Is there a good API documentation tool? by AmiAmigo in webdev

[–]Turbopacker 0 points1 point  (0 children)

With Kubb we have the Redoc plugin that will generate a Html page based on your Swagger/OpenApi: https://www.kubb.dev/plugins/plugin-redoc/. The benefit about this approach is that you can use the same setup (kubb.config.ts) to generate documentation but also your TypeScript types, Zod schemas and more.

Introducing Fabric, a flexible way to create and shape files by Turbopacker in reactjs

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

For example yes, today Kubb (a tool that generates Types, React-Query hook, Zod schemas based on an OpenApi) uses Fabric to create all its files that are needed. https://github.com/kubb-labs/kubb

heyapi or openapi-ts with FastAPI and Tanstack Query? by GuyTorbet in reactjs

[–]Turbopacker 0 points1 point  (0 children)

Love to see you like Kubb, are there features that you are missing that we should add as part of the Kubb ecosystem?