Lightning

Lightning

  • Docs
  • GitHub

›Introduction

Introduction

  • Introduction
  • Alternatives

Getting Started

  • To SDK or not to SDK?
  • Stage Configuration
  • Setup Lightning
  • Setup Lightning SDK
  • Start Development
  • Developing TicTacToe
  • Run, Test & Deploy

Render Engine

  • Render Engine
  • Render Tree
  • Template
  • Positioning
  • Rendering
  • Transforms
  • Children
  • Tags
  • Patch
  • Clipping
  • Flexbox
  • Events

Texture Types

  • Overview
  • Rectangle
  • Image
  • Text
  • Toolbox
  • Canvas
  • Custom

Transitions

  • Transitions
  • Attributes
  • Methods
  • Events

Animations

  • Animations
  • Attributes
  • Actions
  • Action value
  • Value smoothing
  • Methods
  • Events

Principles

  • Components
  • State Machine

    • Overview
    • Switching states
    • Nesting states
    • Events

    Communication

    • Signal
    • Fire Ancestors
  • Focus
  • Key Handling

Code Snippets

  • Player example

Introduction

Lightning is a (TV) app development framework that offers great portability and performance.

Great performance, great portability

Lightning is a javascript TV app development framework that uses high-performance WebGL for rendering. It is full of smart optimizations to take most out of your target's GPU and CPU, and it contains the features you will need when building your app.

Because is uses HTML5 standards, it is highly portable. Apps developed in Lightning run on all major Smart TV platforms, settopboxes and everything else with a moder HTML5 browser. In terms of performance, it runs awesome on WebOS and (modern) Tizen. It also approaches the performance of native apps on Android.

This enables you to achieve an awesome User eXperience!

Characteristics

  • Portable technologies
  • Build once, deploy anywhere
  • Awesome performance
  • UX that is currently only possible in your dreams
  • Efficient memory management, no memory leaks

Development

  • Innovative, fast and high code quality development principles
  • Develop and test on your local browser
  • Development time drastically cut down
  • Easy to learn
  • Easily bundle your app for Tizen, WebOS and Android

Features

  • Application framework
  • Render tree (WebGL or Canvas2d)
  • Flexbox layout engine
  • Animations toolkit
  • Keypress-based input/focus handling
  • Special effects, custom shaders

Innovative development paradigms

Developers love the Lightning framework once they get to know it. Many of the principles used in Lightning were inspired by Google Polymer, Angular and other modern frameworks. Seeing we were not limited to using HTML we could use and combine our favorite design patterns and create our own take on the ultimate component-based framework for app development!

Some technical highlights

  • Component-based, to help you split up your app in a clean way
  • Static templates offer great overview and fast spawning
  • Not using Virtual DOM in contrast to other frameworks, but..
  • Patching allows convenient Virtual DOM-like patterns without the downsides
  • State Oriented Programming enforce robustness in reactive components
  • Signals and commands provide easy-to-use inter-component communication
Alternatives →
  • Great performance, great portability
    • Characteristics
    • Development
    • Features
  • Innovative development paradigms
Lightning
Docs
Getting Started Render Engine Transitions Animations Components Focus
Github
Lightning on GitHubStar
Copyright © 2020 Metrological