Skip to content
ekuiterPublic

About

A collaborative, real-time feature model editor

Resources

Stars

10 stars

Watchers

3 watching

Forks

Repository files navigation

variED

variED (the variability editor) is a software for viewing, editing and analyzing feature models. It is backed by FeatJAR.

Try variED: live demo · documentation

variED running on desktop device

What? variED (the variability editor) is a research prototype for viewing, editing and analyzing feature models that supports real-time collaboration.

Why? In software product line engineering, a team of developers and other stakeholders may be involved in the feature modeling process. To facilitate live, light-weight editing, a real-time editing platform similar to Google Docs or Overleaf may be useful. This enables various use cases, such as sharing and editing feature models or teaching feature model concepts.

How? variED relies on a client-server architecture where the client is implemented in TypeScript and the server in Java. It requires Java 21 or newer and includes an embedded Jetty server. variED can either serialize edits with a traditional server-side lock (the default) or use optimistic real-time collaboration based on a modification of the multi-version multi-display (MVMD) technique (Chen 2001, Sun and Chen 2002).

Who? This project is a research effort of the DBSE working group and has been supported by pure-systems. It is released under the LGPL v3 license. Contact me (the main developer) if you have any questions. You can also leave some feedback if you like to.

Detailed resources are available about ...

Getting Started

The only system dependency required for building is JDK 21 or newer. Clone the FeatJAR submodule along with the repository:

git clone --recurse-submodules https://github.com/ekuiter/variED
# For an existing clone:
git submodule update --init --recursive

Gradle, Node 20, npm, and the project's Leiningen launcher are managed by the repository's build scripts.

  • ./gradlew build performs a clean production build and runs all kernel, client, and server tests. Runnable archives are written to build/server.zip and build/server.tar.
  • ./gradlew :server:run runs the complete application on http://localhost:8080.
  • To deploy variED, unpack build/server.zip or build/server.tar and run the included bin/server launcher. Set PORT to change the HTTP/WebSocket port and VARIED_KERNEL to choose the kernel. The server is a standalone Jetty application; this project no longer builds or deploys a Tomcat WAR. The checked-in render.yaml Blueprint provides a free demonstration deployment using the locking kernel.
  • npm start inside client runs the development client on http://localhost:3000; run the server separately for its WebSocket API.
  • The default kernel is locking. Set VARIED_KERNEL=collaborative (or the Java system property -Dvaried.kernel=collaborative) to use the original optimistic collaboration kernel. The values locking and collaborative are supported.

Implementation

variED architecture

The server and client use the same Clojure kernel facade. Its interchangeable implementations either perform optimistic concurrency control or immediately apply operations in server-lock order. Client and server communicate by sending JSON-encoded messages over a WebSocket connection.

The client makes use of React, Redux, Fluent UI and D3.js libraries to provide a user interface for feature modeling. The server relies on FeatJAR for feature model representation and XML/DIMACS I/O. The client-server interface is described in API.md. The generated documentation contains the Clojure kernel and Java server API references. GitHub Actions rebuilds and publishes it after documentation-relevant changes to main; run ./gradlew documentation to generate the same site locally in build/documentation-site.

Development

These are some notes if you want to set up an IDE for development.

  • WebStorm / VS Code: Open the repository (or the client directory for a client-only workspace). Use the npm start, test, and build scripts from client; TypeScript checking is part of the normal client build.
  • IntelliJ IDEA: Import the repository's Gradle build and use the checked-in wrapper with JDK 21 or newer. Run the :server:run task for the complete application. The kernel sources can also be developed with Cursive; its Leiningen launcher and dependencies are managed by the repository.

About

A collaborative, real-time feature model editor

Resources

Stars

10 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages