formie icon indicating copy to clipboard operation
formie copied to clipboard

Publish core frontend methods to NPM

Open joshuabaker opened this issue 3 years ago • 1 comments

What are you trying to do?

It’d be great to have access to some of the logic you’ve coded for the frontend in an NPM package. This would allow us to pull common logic into other implementations (e.g. React, Vue, et al.).

What's your proposed solution?

Add a package.json in the frontend directory or, perhaps, split the frontend logic into its own repo and pull it into this one.

I would imagine some adjustment to the API surface is needed. Looking now, I don’t imagine this would be significant.

Additional context

The primary reason for the ask is to allow us to better match your ongoing changes with our React implementation.

joshuabaker avatar Jul 28 '22 10:07 joshuabaker

Yep, this has been on my list for a while. I actually thought there was an open issue for this already, but I can't seem to find it.

But yes, I just need to give some more proper thought to building this out as a proper JS API that'll work well detached from the Formie library. There's a few things I need to consider

engram-design avatar Jul 28 '22 23:07 engram-design

@engram-design It’s quite likely that we’re going to abandon/archive the React implementation at some point this year.

To broaden the scope of this issue a bit, have you put any further consideration towards shipping client-side libraries as part of Formie?

joshuabaker avatar Feb 23 '23 15:02 joshuabaker

Did you mean to close this? Certainly on our list to do!

engram-design avatar Nov 21 '23 18:11 engram-design

@engram-design I’m abandoning my React implementation.

Please can you convert this to an ‘Ideas’ discussion.

joshuabaker avatar Nov 21 '23 18:11 joshuabaker

Ah, gotcha. I may take over that similar to https://github.com/verbb/formie-headless, but regardless, we certainly want to provide an npm package for Formie to make things easier for devs!

engram-design avatar Nov 21 '23 19:11 engram-design

@engram-design Bump. Josh, please can you convert this to an ‘Ideas’ discussion. I don’t have the ability to do that.

joshuabaker avatar Nov 27 '23 17:11 joshuabaker