Skip to content

7frank/gui-builder

Repository files navigation

overview

(WIP) POC of a gui builder with svelte & grapesjs, that uses some kind of ast transformer to connect custom components to grapesjs by automatically generating grapesjs components from svelte components or react components.

Goals:

  • connect react | svelte "views" to grapesjs automatically

  • showcase AST capabilities

  • (maybe) find out how to use monaco editor for behaviour

  • (maybe) add headless cms / firebase / superbase to provide some kind of backend / storage

how to use this?

  • create a new svelte component inside the "components" folder
    • it must use lang=ts otherwise the compiler ignores it
  • add the newly created component to whiteList.ts (currently the way we only transform files that are part of the dependency tree of the application)
  • (optional) restart your application and you should be able to select your component from the toolbar

Developing

Once you've created a project and installed dependencies with pnpm install , start a development server:

pnpm dev

# or start the server and open the app in a new browser tab
pnpm dev -- --open
  • run pnpm ast:watch if you want to make changes to the typescript transformers.

Building

To create a production version of your app:

pnpm build

You can preview the production build with pnpm preview.

To deploy your app, you may need to install an adapter for your target environment.

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published