Slide 1

Slide 1 text

Desktop JS Evan Morikawa | @e0m | [email protected] | May 2016

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Swing Qt Cocoa GTK WPF/WinRT …

Slide 7

Slide 7 text

NW.js (Node Webkit)

Slide 8

Slide 8 text

Shell

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

Chromium

Slide 14

Slide 14 text

Chromium Browser aka Backend aka Main Process

Slide 15

Slide 15 text

Chromium Browser aka Backend aka Main Process C++

Slide 16

Slide 16 text

Chromium Browser aka Backend aka Main Process C++ Renderer Renderer Renderer HTML / JS (DOM) HTML / JS (DOM) HTML / JS (DOM)

Slide 17

Slide 17 text

Chromium Browser aka Backend aka Main Process C++ Renderer Renderer Renderer HTML / JS (DOM) HTML / JS (DOM) HTML / JS (DOM) ipc

Slide 18

Slide 18 text

Browser aka Backend aka Main Process Renderer Renderer Renderer HTML / JS (DOM) HTML / JS (DOM) HTML / JS (DOM) ipc

Slide 19

Slide 19 text

Nylas N1

Slide 20

Slide 20 text

Nylas N1 main.js

Slide 21

Slide 21 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show()

Slide 22

Slide 22 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show()

Slide 23

Slide 23 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show() index.html index.js

Slide 24

Slide 24 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show() index.html index.js React.render()

Slide 25

Slide 25 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show() index.html index.js React.render()

Slide 26

Slide 26 text

Nylas N1 main.js const win = new BrowserWindow() win.loadURL(`file://index.html`) win.show() index.html index.js React.render() Composer Work Window

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility

Slide 29

Slide 29 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail

Slide 32

Slide 32 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail Jasnkbusting | Worker windows

Slide 35

Slide 35 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail Jasnkbusting | Worker windows

Slide 36

Slide 36 text

ReactiveX.js

Slide 37

Slide 37 text

const q = `SELECT * FROM threads WHERE …` Rx.Observable.fromQuery(q).subscribe((threads) => { this.setState({threads}) })

Slide 38

Slide 38 text

const q = `SELECT * FROM threads WHERE …` Rx.Observable.fromQuery(q) .filter(myFn).subscribe((threads) => { this.setState({threads}) })

Slide 39

Slide 39 text

const q = `SELECT * FROM threads WHERE …` Rx.Observable.fromQuery(q) .filter(myFn) .map(mapFn).subscribe((threads) => { this.setState({threads}) })

Slide 40

Slide 40 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail SQL | Observables | Task Jasnkbusting | Worker windows

Slide 41

Slide 41 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail Jasnkbusting | Worker windows SQL | Observables | Task

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail React | Components as “data” Jasnkbusting | Worker windows SQL | Observables | Task

Slide 44

Slide 44 text

Desktop JS 1. “Native” experience 2. Performance 3. Data Storage & Offline 4. Plugins & Extensibility Native extensions | Cross-platform CSS | Retina Detail Jasnkbusting | Worker windows SQL | Observables | Task React | Components as “data”

Slide 45

Slide 45 text

https://github.com/nylas/n1 Open Source

Slide 46

Slide 46 text

N1 Core Team https://nylas.com/team @e0m @bengotow @juanstejada @karim_hamidou @jackiehluo Drew Regitsky

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

Evan Morikawa | @e0m | [email protected] | May 2016 Thank you! Slides here

Slide 49

Slide 49 text

Desktop JS Evan Morikawa | @e0m | [email protected] | May 2016