silexlabs / Silex

Silex live web creation, free/libre no-code website builder, next gen Webflow for the static web
http://www.silex.me
GNU Affero General Public License v3.0
2.24k stars 580 forks source link

Graphql CMS integration #1478

Open lexoyo opened 1 year ago

lexoyo commented 1 year ago

Here is the code for this fearure: https://github.com/silexlabs/silex-cms

Work in progress to explore how to make it possible to create dynamic, data-driven websites with Silex

This integration allows Silex to connect to a headless CMS via a GraphQL API, similar to how Webflow operates. It lets you directly pull in and arrange your CMS data within Silex, linking design elements to specific data fields. With content-based styling and real-time previews

The open source ways to get a GraphQL API, with saas and a free plan:

What I hope to achieve is in the same spirit as this in webflow https://university.webflow.com/lesson/collection-list

Or more powerful is flutterflow https://www.youtube.com/watch?v=0sVZ_yNw5gY

But maybe simpler for me and more flexible for the user, with expressions like this maybe https://youtu.be/1MwSoB0gnM4?si=OVlyRa4w3KdIgPVy&t=106

All of this would probably be implemented as GrapesJs plugins

I would love feedback and ideas for code or UX

Links

Data layer

Load data from the specified GraphQL endpoint, use introspection to display fields and load more data on demand. Give the components a way to define "variables" which will be made available as dynamic data

Components traits / UI

The user need UI to be able to set dynamic data for the selected component(s)

In the style manager:

In the page list:

In the site config or settings

UX

Each input could have a "dynamic" state which opens an editor to build "dynamic", same as n8n do:

Image Image Image Image

We could also let the user create GraphQL queries with this editor but I have no idea what for?

Excellent ux of flutterflow: https://www.youtube.com/watch?v=0sVZ_yNw5gY

The input for variables / states should be done like this

Output

There will be 2 output from the user data:

lexoyo commented 1 year ago

@ceubri

lexoyo commented 11 months ago

news about this feature here: https://community.silex.me/d/26-work-in-progress-dynamic-websites/2

lexoyo commented 5 months ago

https://www.apirocket.io/ => Nice ui, free plan, not OS

Alos check https://developer.monday.com/api-reference/docs/introduction-to-graphologue and https://thegraph.com/docs/en/querying/graphql-api/ and https://developer.salesforce.com/docs/platform/graphql/overview

lexoyo commented 5 months ago

Ecommerce https://www.divante.com/blog/the-5-most-interesting-ecommerce-platforms-with-graphql-api