netzo / fresh-netzo

Full-stack Deno Fresh meta-framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
https://netzo.io
MIT License
52 stars 2 forks source link

[modules] add `devTools` module to inject at `/devtools` #46

Closed miguelrk closed 7 months ago

miguelrk commented 1 year ago

Motivation

Netzo should meet developers where they already are: developing. The DX of netzo apps could be greatly improved by a plugin which mounts itself into /devtools (only during development, not during production). Nuxt DevTools is a great source of inspiration.

Netzo could then mount this within the app using <iframe src="http://localhost:8000/devtools" /> during development and if not present, prompt the developer to enable the plugin.

Implementation

There are 2 possible alternatives:

  1. netzoDevTools: a plugin which auto serves itself. this makes MUCH more sense. Basically Nuxt DevTools but for Netzo. This would speed-up its development, promote code reuse, and make it IDE agnostic, and eventually even framework agnostic (e.g. Hono can be supported, the devtools plugins just needs to mount itself into /devtools.
  2. vscode extension: would not be IDE-agnostic and it is also quite complicated to develop, plus it has certain limitations (it runs in another environment, not same as apps).
miguelrk commented 7 months ago

Closing as out of scope (at least for now)