nextjournal

chaos 2024-03-24T19:24:06.110659Z

Hi, I've been experimenting with the https://github.com/nextjournal/command-bar as a stand alone library, and it looks fantastic so far (great job!). I've noticed that it currently relies the full of clerk library as a dependency (which also requires dozens of npm packages). How difficult do you think it would be to separate it from clerk? I think it primary relies on nextjournal.clerk.render.hooks, which in turn depends on sci . I tried converting it to vanilla React hooks instead, but didn't have much luck with the results. Thanks

2024-03-25T08:16:46.734129Z

We plan to further unbundle it, and also to factor out several pieces of Clerk to make it feasible to use its components a la carte. What I can’t say is how soon we’ll get to that! 🙃

chaos 2024-03-25T17:50:15.081029Z

Thanks, happy to help on this if someone can guide me through the work that needs to be done for unbundling it. I've also noticed it has a dependency on codemirror just for the sake of the demo, which is something i can remove right away I think, I'll open a PR to move the dep in the demo.

chaos 2024-03-26T05:38:03.387059Z

https://github.com/nextjournal/command-bar/pull/2