Skip to content

A pure JavaScript library to create web editor interfaces and components.

License

jxarco/lexgui.js

Repository files navigation

logo logo

lexgui.js

lexgui.js is a lightweight JavaScript library for building web user interfaces. No bloated frameworks, no unnecessary complexity, just pure HTML, CSS, and JavaScript magic. It gives you an easy API for crafting dynamic, interactive editor interfaces without the headache of big libraries.

NPM Package: npmjs.com/package/lexgui

Code Editor

Node Graph Editor

Extension Features

  • Timeline
  • Code Editor
  • Docs Maker
  • Node Graph Editor (WIP)
  • Video Editor (WIP)
  • Immediate UI (WIP)

Quick start

index.html:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>My first lexgui.js app</title>
    <link rel="stylesheet" href="https://cdn.skypack.dev/lexgui@^<version>/build/lexgui.css">
    <script type="importmap">
        {
          "imports": {
            "lexgui": "https://cdn.skypack.dev/lexgui@^<version>/build/lexgui.module.js",
            "lexgui/extensions/": "https://cdn.skypack.dev/lexgui@^<version>/build/extensions/"
          }
        }
    </script>
</head>
<body>
	<script type="module" src="my_app.js"></script>
<body>
</html>

my_app.js:

import { LX } from 'lexgui';

// Using extensions
import { CodeEditor } from 'lexgui/extensions/codeeditor.js';

// Create main area
let area = await LX.init();

// Create area panels
let panel = area.addPanel();

// Start branch/section
panel.branch("Section Title");

// Add some components
panel.addButton(null, "Click me, Im Full Width...");
panel.addText("Text", "Warning text", null, { warning: true });

// Close section
panel.merge();

Docs

The library documentation is available at lexgui.js/docs/.

Examples

Look at this examples to see how to create the different components and integrate the extensions!

Projects using lexgui.js

Animics (EU H2020 SignON project)

github.com/upf-gti/animics

scriptAnimation_signon

Performs (EU H2020 SignON project)

github.com/upf-gti/performs

scriptAnimation_signon

Feedback/Issues

You can use the repository issues section or simply write any feedback to alexroco.30@gmail.com.

About

A pure JavaScript library to create web editor interfaces and components.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •