zombiebox
ZombieBox is a JavaScript framework for development of Smart TV and STB applications
Last updated 2 months ago by l1bbcsg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zombiebox 
SYNC missed versions from official npm registry.

ZombieBox

ZombieBox is a JavaScript framework for development of Smart TV and STB applications.

Why ZombieBox?

  • It's cross-platform;
  • It leverages a strongly typed JavaScript by Google Closure Compiler and modern ECMAScript;
  • It provides a set of typical solutions for TV, such as spatial navigation or remote logging;
  • It produces a fast application that has a small size and a minimum of 3rd party code;

Getting started

Init a node.js project:

npm init

Install ZombieBox and some of its components that you will most likely need:

npm install zombiebox
npm install zombiebox-platform-pc zombiebox-extension-cutejs

Create application config.js and start developing or use boilerplate:

npx zombiebox init $NAME

# or without npx:
./node_modules/zombiebox/bin/cli.js init

Run the development server:

npx zombiebox run

Platforms

ZombieBox supports a lot of modern Smart TV and STB platforms and also some legacy but high-demand platforms, which allows you to deliver your application to a wide number of devices. Any capable platform can be easily support by extending it.

Platforms are a subtype of ZombieBox Addon. See addons for more information.

List of supported platforms:

Platform Package Version
Desktop browsers zombiebox-platform-pc
Android TV zombiebox-platform-android-tv
Samsung Tizen (2015+) zombiebox-platform-tizen
Samsung Orsay (2012-2014) zombiebox-platform-samsung
LG webOS (2014+) zombiebox-platform-webos
LG NetCast (2012-2014) zombiebox-platform-lg
MAG STB zombiebox-platform-mag
Dune HD zombiebox-platform-dune

Archived platforms:

Platform Package Version
Headless browsers zombiebox-platform-headless
Eltex STB zombiebox-platform-eltex
TVIP STB zombiebox-platform-tvip

Installation of a new platform is easy and nothing more than installation of a new npm package with further saving in the dependencies.

For example, for LG Netcast platform:

npm i zombiebox-platform-lg --save

Then configure the installed platform for building of a distribution package:

// Your config.js

module.exports = () => ({
	platforms: {
		lg: {
			// Some platform-specific configuration, see platform documentation
		}
	}
});

Finally, build a package:

npx zombiebox build lg

Extensions:

Extension is a special npm package that extends default functionality of the framework. To add an extension just install a package via npm and save it in the dependencies.

Extensions are a subtype of ZombieBox Addon. See addons for more information.

List of available extensions:

Description Package Version
CuteJS Template engine zombiebox-extension-cutejs
Set of basic TV-oriented components zombiebox-extension-ui
Dependency Injection zombiebox-extension-dependency-injection
I18n support zombiebox-extension-i18n
Tools for Pixel Perfect testing zombiebox-extension-pixelperfect
Popup with main info about the application zombiebox-extension-about
Lodash library integration zombiebox-extension-lodash
Environment for interactive UI development zombiebox-extension-storybook
Emoji support zombiebox-extension-emoji
Subtitles zombiebox-extension-ui-subtitles

Configuration

Configuration file is a module that exports a function returning configuration object.

By default, the framework will try to find file config.js in the root of the project, but you can set a custom path passing --config to the CLI commands.

See configuration for details.

CLI commands

Use npx to access ZombieBox CLI utility: npx zombiebox or npx zb.

  • npx zb init <name> [root] - generates skeleton of a project interactively
  • npx zb run - starts the development server
  • npx zb build <platforms..> - builds a distribution package
  • npx zb buildCode - generates runtime code
  • npx zb (addScene|addPopup|addWidget) <name> [path] - generates boilerplate code for UI components
  • npx zb generateAliases [filename] - generates alias map for development tools
  • npx zb <platform> <command> - runs a specific command provided by a specific platform

Change log

See the CHANGELOG.md.

Version policy

ZombieBox is not semver compatible. We tried, but this wasn't working well. ZombieBox tries it's best to follow a version policy close to semver that makes sense.

  • Major versions denote major changes in code structure and APIs. It's probably either a brand new framework or requires extensive migration if major version changed.
  • Minor versions mean new features. There might be breaking changes in minor versions, but they likely require minor migrations like changing methods order, signatures or replacing one component with another equivalent. These should be documented in CHANGELOG.md and migratiosn docs.
  • Patch versions do not introduce breaking changes and either fix bugs or add neglectable improvements in non-breaking way.
  • Pre-release versions are meant to contain experimental features that are going to be introduced later and are likely to break compatibility and be generally unstable. These are only pushed to @dev dist-tag.

All ZombieBox components declare their dependencies on each other with peerDependencies field in package.json. Node itself does not enforce this field, but ZombieBox does in its CLI commands.

Behind ZombieBox

ZombieBox was developed and is maintained by Interfaced.

It was created as internal framework for numerous Smart TV and STB applications developed for industry leaders.

License

This library is distributed under MIT license. See LICENSE.

Copyright © 2012-2019, Interfaced. All rights reserved. If you have any questions about license, please write to licensing@zombiebox.tv.

Current Tags

  • 2.4.0-alpha.3                                ...           dev (5 days ago)
  • 2.3.0                                ...           latest (2 months ago)
  • 0.2.15                                ...           legacy (a year ago)

204 Versions

  • 2.4.0-alpha.3                                ...           5 days ago
  • 2.4.0-alpha.2                                ...           9 days ago
  • 2.4.0-alpha.1                                ...           21 days ago
  • 2.3.0                                ...           2 months ago
  • 2.2.3                                ...           3 months ago
  • 2.2.2                                ...           3 months ago
  • 2.2.1                                ...           3 months ago
  • 2.2.0                                ...           3 months ago
  • 2.1.3                                ...           4 months ago
  • 2.1.2                                ...           4 months ago
  • 2.1.1                                ...           4 months ago
  • 2.1.0                                ...           5 months ago
  • 2.0.2                                ...           6 months ago
  • 2.0.1                                ...           6 months ago
  • 2.0.0                                ...           6 months ago
  • 2.0.0-rc.2                                ...           6 months ago
  • 2.0.0-rc.1                                ...           6 months ago
  • 2.0.0-alpha.8                                ...           7 months ago
  • 2.0.0-alpha.7                                ...           7 months ago
  • 2.0.0-alpha.6                                ...           8 months ago
  • 2.0.0-alpha.5                                ...           8 months ago
  • 2.0.0-alpha.4                                ...           8 months ago
  • 2.0.0-alpha.3                                ...           8 months ago
  • 2.0.0-alpha.2                                ...           9 months ago
  • 2.0.0-alpha.1                                ...           10 months ago
  • 1.0.1                                ...           10 months ago
  • 1.0.0                                ...           10 months ago
  • 1.0.0-beta6                                ...           a year ago
  • 0.2.15                                ...           a year ago
  • 1.0.0-beta5                                ...           a year ago
  • 1.0.0-beta4                                ...           a year ago
  • 1.0.0-beta3                                ...           a year ago
  • 0.2.14                                ...           2 years ago
  • 0.1.32                                ...           2 years ago
  • 1.0.0-beta2                                ...           2 years ago
  • 0.2.13                                ...           2 years ago
  • 0.2.12                                ...           2 years ago
  • 0.2.11                                ...           2 years ago
  • 0.2.10                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.1.31                                ...           2 years ago
  • 1.0.0-alpha12                                ...           2 years ago
  • 1.0.0-beta1                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.1.30                                ...           2 years ago
  • 1.0.0-alpha11                                ...           2 years ago
  • 1.0.0-alpha10                                ...           2 years ago
  • 1.0.0-alpha9                                ...           2 years ago
  • 1.0.0-alpha8                                ...           2 years ago
  • 1.0.0-alpha7                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.1.29                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.1.28                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.1.27                                ...           2 years ago
  • 1.0.0-alpha6                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.1.26                                ...           2 years ago
  • 1.0.0-alpha5                                ...           3 years ago
  • 1.0.0-alpha4                                ...           3 years ago
  • 1.0.0-alpha3                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.1.25                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 1.0.0-alpha2                                ...           3 years ago
  • 1.0.0-alpha1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.24                                ...           3 years ago
  • 0.1.23                                ...           3 years ago
  • 0.1.22                                ...           3 years ago
  • 0.2.0-alpha2.7                                ...           3 years ago
  • 0.2.0-alpha2.6                                ...           3 years ago
  • 0.1.20                                ...           3 years ago
  • 0.1.19                                ...           3 years ago
  • 0.1.18                                ...           3 years ago
  • 0.2.0-alpha2.5                                ...           3 years ago
  • 0.1.17                                ...           3 years ago
  • 0.2.0-alpha2.4                                ...           3 years ago
  • 0.1.16                                ...           3 years ago
  • 0.2.0-alpha2.3                                ...           3 years ago
  • 0.2.0-alpha2.2                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.2.0-alpha2.1                                ...           3 years ago
  • 0.2.0-alpha2                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8                                ...           4 years ago
  • 0.1.7                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.199                                ...           4 years ago
  • 0.0.198                                ...           4 years ago
  • 0.0.197                                ...           4 years ago
  • 0.0.195                                ...           4 years ago
  • 0.0.194                                ...           4 years ago
  • 0.0.193                                ...           4 years ago
  • 0.0.192                                ...           4 years ago
  • 0.0.191                                ...           4 years ago
  • 0.0.190                                ...           4 years ago
  • 0.0.189                                ...           4 years ago
  • 0.0.188                                ...           5 years ago
  • 0.0.187                                ...           5 years ago
  • 0.0.186                                ...           5 years ago
  • 0.0.185                                ...           5 years ago
  • 0.0.184                                ...           5 years ago
  • 0.0.183                                ...           5 years ago
  • 0.0.182                                ...           5 years ago
  • 0.0.180                                ...           5 years ago
  • 0.0.179                                ...           5 years ago
  • 0.0.178                                ...           5 years ago
  • 0.0.176                                ...           5 years ago
  • 0.0.175                                ...           5 years ago
  • 0.0.174                                ...           5 years ago
  • 0.0.173                                ...           5 years ago
  • 0.0.172                                ...           5 years ago
  • 0.0.171                                ...           5 years ago
  • 0.0.170                                ...           5 years ago
  • 0.0.168                                ...           5 years ago
  • 0.0.167                                ...           5 years ago
  • 0.0.166                                ...           5 years ago
  • 0.0.165                                ...           5 years ago
  • 0.0.163                                ...           5 years ago
  • 0.0.162                                ...           5 years ago
  • 0.0.161                                ...           5 years ago
  • 0.0.160                                ...           5 years ago
  • 0.0.159                                ...           5 years ago
  • 0.0.158                                ...           5 years ago
  • 0.0.157                                ...           5 years ago
  • 0.0.156                                ...           5 years ago
  • 0.0.155                                ...           5 years ago
  • 0.0.154                                ...           5 years ago
  • 0.0.153                                ...           5 years ago
  • 0.0.152                                ...           5 years ago
  • 0.0.151                                ...           5 years ago
  • 0.0.150                                ...           5 years ago
  • 0.0.149                                ...           5 years ago
  • 0.0.148                                ...           5 years ago
  • 0.0.147                                ...           5 years ago
  • 0.0.146                                ...           5 years ago
  • 0.0.145                                ...           5 years ago
  • 0.0.144                                ...           5 years ago
  • 0.0.143                                ...           5 years ago
  • 0.0.142                                ...           5 years ago
  • 0.0.141                                ...           5 years ago
  • 0.0.140                                ...           5 years ago
  • 0.0.139                                ...           5 years ago
  • 0.0.138                                ...           5 years ago
  • 0.0.137                                ...           5 years ago
  • 0.0.136                                ...           5 years ago
  • 0.0.135                                ...           5 years ago
  • 0.0.134                                ...           5 years ago
  • 0.0.133                                ...           5 years ago
  • 0.0.131                                ...           5 years ago
  • 0.0.130                                ...           5 years ago
  • 0.0.129                                ...           5 years ago
  • 0.0.128                                ...           5 years ago
  • 0.0.127                                ...           5 years ago
  • 0.0.126                                ...           5 years ago
  • 0.0.125                                ...           5 years ago
  • 0.0.123                                ...           6 years ago
  • 0.0.122                                ...           6 years ago
  • 0.0.121                                ...           6 years ago
  • 0.0.119                                ...           6 years ago
  • 0.0.118                                ...           6 years ago
  • 0.0.117                                ...           6 years ago
  • 0.0.115                                ...           6 years ago
  • 0.0.114                                ...           6 years ago
  • 0.0.113                                ...           6 years ago
  • 0.0.112                                ...           6 years ago
  • 0.0.111                                ...           6 years ago
  • 0.0.109                                ...           6 years ago
  • 0.0.108                                ...           6 years ago
  • 0.0.107                                ...           6 years ago
  • 0.0.106                                ...           6 years ago
  • 0.0.105                                ...           6 years ago
  • 0.0.103                                ...           6 years ago
  • 0.0.102                                ...           6 years ago
  • 0.0.101                                ...           6 years ago
  • 0.0.100                                ...           6 years ago
  • 0.0.99                                ...           6 years ago
  • 0.0.98                                ...           6 years ago
  • 0.0.97                                ...           6 years ago
  • 0.0.96                                ...           6 years ago
  • 0.0.95                                ...           6 years ago
  • 0.0.94                                ...           6 years ago
  • 0.0.93                                ...           6 years ago
  • 0.0.92                                ...           6 years ago
  • 0.0.90                                ...           6 years ago
  • 0.0.89                                ...           6 years ago
  • 0.0.35                                ...           6 years ago
  • 0.0.88                                ...           6 years ago
  • 0.0.87                                ...           6 years ago
  • 0.0.86                                ...           6 years ago
  • 0.0.85                                ...           6 years ago
  • 0.0.82                                ...           6 years ago
  • 0.0.81                                ...           6 years ago
  • 0.0.80                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 30
Last Day 0
Last Week 30
Last Month 418
Dependencies (24)

Copyright 2014 - 2016 © taobao.org |