wisp icon indicating copy to clipboard operation
wisp copied to clipboard

Move web server adapter to different package

Open vshakitskiy opened this issue 2 months ago • 5 comments

Since ewe v1 was released, it makes sense to make wisp not directly depend on mist and to create wisp_mist and wisp_ewe packages, which opens up opportunities for supporting more web servers in the future.

vshakitskiy avatar Oct 01 '25 20:10 vshakitskiy

I agree! It would be fab to have this.

lpil avatar Oct 02 '25 09:10 lpil

I think "officially approved" adapter packages should be under the gleam-wisp github organization. Since not all future web servers will be suited for production usage like mist, creators of those web servers can develop adapter support outside the organization. What do you think of this idea?

vshakitskiy avatar Oct 02 '25 09:10 vshakitskiy

Yup that's what I had in mind. Similar to Elixir's Phoenix.

We can have the official ones in the same repo, and that'll make it easier to ensure everything is working as expected.

lpil avatar Oct 02 '25 09:10 lpil

Great! So the source for the packages will be inside some folder like adapters for example, right? I already have local implementation of adapter for ewe, so if you dont mind, I can do a PR with mist and ewe adapters in their own Gleam projects

vshakitskiy avatar Oct 02 '25 10:10 vshakitskiy

Having them at the top level would be my preference, but otherwise yup sounds good

lpil avatar Oct 02 '25 11:10 lpil