Skip to content

dfilatov/vidom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 4, 2017
2603521 · Apr 4, 2017
Apr 3, 2017
Feb 11, 2017
Feb 9, 2017
Nov 2, 2016
Feb 16, 2017
Feb 16, 2017
Mar 31, 2017
Apr 4, 2017
Nov 3, 2016
Dec 30, 2016
Aug 20, 2015
Jun 18, 2016
Sep 2, 2016
Aug 12, 2015
Sep 1, 2015
Apr 3, 2017
Apr 4, 2017

Repository files navigation

vidom

Build Status NPM Version Dependencies NPM Downloads

Vidom is just a library to build UI. It's highly inspired from React and based on the same ideas. Its main goal is to provide as fast as possible lightweight implementation with API similar to React. According to the corresponding benchmarks Vidom is 6x faster in Chrome, 5x faster in Firefox, 2x faster in IE and up to 12x faster in server-side rendering than React.

Main features

  • Fast virtual DOM builder and patcher under the hood
  • Fast server-side rendering with ability to reuse existing DOM in the browsers also known as isomorphism.
  • Easy and clear way to subscribe to DOM Events
  • API to build your own high-level components
  • Namespaces support (e.g., SVG, MathML)
  • Ability to render multiple components without unwanted DOM wrappers
  • No extra markup in the result HTML
  • JSX support via babel plugin
  • TypeScript support
  • Small footprint, 9KB after gzip
  • Zero dependencies

Benchmarks

                           mean time ops/sec
  vidom v0.9.0             0.657ms   1522
  inferno v1.5.6           1.154ms   867
  preact v7.2.1            2.231ms   448
  react.with-hack v15.4.2  6.782ms   147
  vue v2.2.6               10.950ms  91
  react v15.4.2            13.808ms  72

Playground

Try live playground to play with Vidom in your browser.

Documentation

Tools

  • Vidom inspector developer tool which helps debug vidom-based applications

Addons

Examples

Thanks

  • cdnjs for library is avalaible on CDN.