SlideShare a Scribd company logo
CYCLE.JS OVERVIEW
_by Oleksii Prohonnyi
GENERAL
 A functional and reactive JavaScript framework for cleaner code
 Website: http://cycle.js.org/
 Sandbox: http://widdersh.in/tricycle/
 Sources: https://github.com/cyclejs/cyclejs
MAIN IDEA
EXAMPLE
GETTING STARTED
 npm install xstream @cycle/xstream-run
(recommended)
 npm install rx @cycle/rx-run (for RxJS v4)
 npm install rxjs @cycle/rxjs-run (for RxJS v5+)
 npm install most @cycle/most-run
(for cujo.js most.js)
 See more: http://cycle.js.org/getting-started.html
MVI PATTERN
 See more: http://cycle.js.org/model-view-intent.html
MVI PATTERN
 intent() function
 Purpose: interpret DOM events as user’s intended actions
 Input: DOM source
 Output: Action Streams
 model() function
 Purpose: manage state
 Input: Action Streams
 Output: State Stream
 view() function
 Purpose: visually represent state from the Model
 Input: State Stream
 Output: Stream of Virtual DOM nodes as the DOM Driver sink
API
Cycle.run(app, drivers)
 app – main function
 drivers – list of sources (drivers, sinks notations)
 See more: http://cycle.js.org/documentation.html
DRIVERS
 Drivers are plugin-like simple functions that take
messages from sinks and call imperative functions.
 All side effects are contained in drivers.
 This means your application is just a pure function, and it
becomes easy to swap drivers around.
 See more: http://cycle.js.org/drivers.html
DATAFLOW
COMPOSITION
 See more: http://cycle.js.org/components.html
REFERENCES
 http://cycle.js.org/
 http://reactivex.io/rxjs/
 http://staltz.com/xstream/
 https://github.com/cyclejs
 https://egghead.io/courses/cycle-js-fundamentals
THANK YOU
FOR ATTENTION
Oleksii Prohonnyi
facebook.com/oprohonnyi
linkedin.com/in/oprohonnyi

More Related Content

What's hot (20)

PDF
Adopting GraalVM - NE Scala 2019
Petr Zapletal
 
PDF
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Fwdays
 
PPT
Lifthub (#rpscala 26)
k4200
 
PDF
Is the order code deploy?
Yoichi Toyota
 
PDF
React starter-kitでとっとと始めるisomorphic開発
Yoichi Toyota
 
PDF
Introduction to Node.js
Setyo Nugroho
 
PDF
Building a deployment pipeline
Noam Shochat
 
PPTX
Introduction to Docker Compose
Prabhas Gupte
 
PPTX
Node.js 201: building real-world applications in pure JavaScript
Tom Boutell
 
PDF
"Applied Enterprise Metaprogramming in JavaScript", Vladyslav Dukhin
Fwdays
 
PDF
OSDC.no 2015 introduction to node.js workshop
leffen
 
PDF
Viktor Turskyi "Effective NodeJS Application Development"
Fwdays
 
KEY
Richard rodger-appgen-2012-lxjs-lisbon
Richard Rodger
 
PDF
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
logomachy
 
PPTX
Robolectric v2
Eugen Martynov
 
PPTX
Angular 2 Migration - JHipster Meetup 6
William Marques
 
PPTX
MVVM com RxJava com Kotlin
GDGFoz
 
PDF
Angular2 - A story from the trenches
Johannes Rudolph
 
PDF
API First with Connexion - PyConWeb 2018
Henning Jacobs
 
PDF
jsDay 2016 recap
Giorgio Cefaro
 
Adopting GraalVM - NE Scala 2019
Petr Zapletal
 
Alexander Mostovenko "'Devide at impera' with GraphQL and SSR"
Fwdays
 
Lifthub (#rpscala 26)
k4200
 
Is the order code deploy?
Yoichi Toyota
 
React starter-kitでとっとと始めるisomorphic開発
Yoichi Toyota
 
Introduction to Node.js
Setyo Nugroho
 
Building a deployment pipeline
Noam Shochat
 
Introduction to Docker Compose
Prabhas Gupte
 
Node.js 201: building real-world applications in pure JavaScript
Tom Boutell
 
"Applied Enterprise Metaprogramming in JavaScript", Vladyslav Dukhin
Fwdays
 
OSDC.no 2015 introduction to node.js workshop
leffen
 
Viktor Turskyi "Effective NodeJS Application Development"
Fwdays
 
Richard rodger-appgen-2012-lxjs-lisbon
Richard Rodger
 
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
logomachy
 
Robolectric v2
Eugen Martynov
 
Angular 2 Migration - JHipster Meetup 6
William Marques
 
MVVM com RxJava com Kotlin
GDGFoz
 
Angular2 - A story from the trenches
Johannes Rudolph
 
API First with Connexion - PyConWeb 2018
Henning Jacobs
 
jsDay 2016 recap
Giorgio Cefaro
 

Viewers also liked (20)

PPTX
Moment.js overview
Oleksii Prohonnyi
 
PPTX
Utility libraries to make your life easier
Oleksii Prohonnyi
 
PPTX
D3.JS Tips & Tricks (export to svg, crossfilter, maps etc.)
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
PPT
Разработка веб-сайта. Сайт. Зачем он?
Oleksii Prohonnyi
 
PPTX
Exploradores.caroes
maryespitia
 
PPTX
Front-end rich JavaScript application creation (Backbone.js)
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
PPTX
Как создать сайт за 2 часа? (Wordpress)
Oleksii Prohonnyi
 
PPTX
Conference DotJS 2015 Paris review
Oleksii Prohonnyi
 
PPTX
Chorme devtools
傑倫 鍾
 
PPTX
OpenLayer's basics
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
PDF
Chrome DevTools Awesome 10 Features +1
yoshikawa_t
 
PPTX
Bower introduction
Oleksii Prohonnyi
 
PPTX
Google Chrome DevTools features overview
Oleksii Prohonnyi
 
PPTX
Introduction to D3.js
Oleksii Prohonnyi
 
PPTX
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 
PPTX
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
PPTX
Code review process with JetBrains UpSource
Oleksii Prohonnyi
 
Moment.js overview
Oleksii Prohonnyi
 
Utility libraries to make your life easier
Oleksii Prohonnyi
 
D3.JS Tips & Tricks (export to svg, crossfilter, maps etc.)
Oleksii Prohonnyi
 
Dive into Angular, part 3: Performance
Oleksii Prohonnyi
 
Разработка веб-сайта. Сайт. Зачем он?
Oleksii Prohonnyi
 
Exploradores.caroes
maryespitia
 
Front-end rich JavaScript application creation (Backbone.js)
Oleksii Prohonnyi
 
Dive into Angular, part 5: Experience
Oleksii Prohonnyi
 
Как создать сайт за 2 часа? (Wordpress)
Oleksii Prohonnyi
 
Conference DotJS 2015 Paris review
Oleksii Prohonnyi
 
Chorme devtools
傑倫 鍾
 
OpenLayer's basics
Oleksii Prohonnyi
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Chrome DevTools Awesome 10 Features +1
yoshikawa_t
 
Bower introduction
Oleksii Prohonnyi
 
Google Chrome DevTools features overview
Oleksii Prohonnyi
 
Introduction to D3.js
Oleksii Prohonnyi
 
JavaScript Presentation Frameworks and Libraries
Oleksii Prohonnyi
 
Dive into Angular, part 4: Angular 2.0
Oleksii Prohonnyi
 
Code review process with JetBrains UpSource
Oleksii Prohonnyi
 
Ad

Similar to Cycle.js overview (20)

PPTX
Getting Reactive with Cycle.js and xstream
Steve Lee
 
PPTX
Dropwizard Introduction
Anthony Chen
 
PDF
Serverless Java on Kubernetes
Krzysztof Sobkowiak
 
PDF
Rest web service_with_spring_hateoas
Zeid Hassan
 
PDF
using Mithril.js + postgREST to build and consume API's
Antônio Roberto Silva
 
PDF
Maxim Salnikov - Service Worker: taking the best from the past experience for...
Codemotion
 
PPTX
React django
Heber Silva
 
PDF
React & The Art of Managing Complexity
Ryan Anklam
 
PPTX
Cycle.js a reactive framework
luca mezzalira
 
PPTX
Let's react - Meetup
RAJNISH KATHAROTIYA
 
PDF
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016
Matt Raible
 
PPTX
AngularJS with TypeScript and Windows Azure Mobile Services
Rainer Stropek
 
KEY
Writing your Third Plugin
Justin Ryan
 
PPTX
Samza 0.13 meetup slide v1.0.pptx
Yi Pan
 
PDF
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx UK 2016
Matt Raible
 
PPTX
Getting Reactive with CycleJS and XStream
TechExeter
 
PDF
Spring Framework - MVC
Dzmitry Naskou
 
PPT
Jdk Tools For Performance Diagnostics
Dror Bereznitsky
 
PDF
Developing maintainable Cordova applications
Ivano Malavolta
 
PPTX
Angular Js Basics
أحمد عبد الوهاب
 
Getting Reactive with Cycle.js and xstream
Steve Lee
 
Dropwizard Introduction
Anthony Chen
 
Serverless Java on Kubernetes
Krzysztof Sobkowiak
 
Rest web service_with_spring_hateoas
Zeid Hassan
 
using Mithril.js + postgREST to build and consume API's
Antônio Roberto Silva
 
Maxim Salnikov - Service Worker: taking the best from the past experience for...
Codemotion
 
React django
Heber Silva
 
React & The Art of Managing Complexity
Ryan Anklam
 
Cycle.js a reactive framework
luca mezzalira
 
Let's react - Meetup
RAJNISH KATHAROTIYA
 
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016
Matt Raible
 
AngularJS with TypeScript and Windows Azure Mobile Services
Rainer Stropek
 
Writing your Third Plugin
Justin Ryan
 
Samza 0.13 meetup slide v1.0.pptx
Yi Pan
 
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx UK 2016
Matt Raible
 
Getting Reactive with CycleJS and XStream
TechExeter
 
Spring Framework - MVC
Dzmitry Naskou
 
Jdk Tools For Performance Diagnostics
Dror Bereznitsky
 
Developing maintainable Cordova applications
Ivano Malavolta
 
Angular Js Basics
أحمد عبد الوهاب
 
Ad

More from Oleksii Prohonnyi (9)

PPTX
Dive into Angular, part 2: Architecture
Oleksii Prohonnyi
 
PPTX
BEM methodology overview
Oleksii Prohonnyi
 
PPTX
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
PPTX
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
PPTX
Test-driven development & Behavior-driven development basics
Oleksii Prohonnyi
 
PPTX
JavaScript Coding Guidelines
Oleksii Prohonnyi
 
PPTX
Database Optimization (MySQL)
Oleksii Prohonnyi
 
PPTX
PHPCS (PHP Code Sniffer)
Oleksii Prohonnyi
 
PPTX
Usability of UI Design (motivation, heuristics, tools)
Oleksii Prohonnyi
 
Dive into Angular, part 2: Architecture
Oleksii Prohonnyi
 
BEM methodology overview
Oleksii Prohonnyi
 
Front-end development introduction (JavaScript). Part 2
Oleksii Prohonnyi
 
Front-end development introduction (HTML, CSS). Part 1
Oleksii Prohonnyi
 
Test-driven development & Behavior-driven development basics
Oleksii Prohonnyi
 
JavaScript Coding Guidelines
Oleksii Prohonnyi
 
Database Optimization (MySQL)
Oleksii Prohonnyi
 
PHPCS (PHP Code Sniffer)
Oleksii Prohonnyi
 
Usability of UI Design (motivation, heuristics, tools)
Oleksii Prohonnyi
 

Recently uploaded (20)

PDF
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
PDF
How to Download and Install ADT (ABAP Development Tools) for Eclipse IDE | SA...
SAP Vista, an A L T Z E N Company
 
PDF
SAP GUI Installation Guide for Windows | Step-by-Step Setup for SAP Access
SAP Vista, an A L T Z E N Company
 
PDF
What companies do with Pharo (ESUG 2025)
ESUG
 
PDF
AI Software Engineering based on Multi-view Modeling and Engineering Patterns
Hironori Washizaki
 
PDF
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
 
PDF
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
PDF
Step-by-Step Guide to Install SAP HANA Studio | Complete Installation Tutoria...
SAP Vista, an A L T Z E N Company
 
PPTX
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
 
PDF
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
PDF
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
PDF
System Center 2025 vs. 2022; What’s new, what’s next_PDF.pdf
Q-Advise
 
PDF
AI Image Enhancer: Revolutionizing Visual Quality”
docmasoom
 
PPTX
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
PPTX
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
How to Download and Install ADT (ABAP Development Tools) for Eclipse IDE | SA...
SAP Vista, an A L T Z E N Company
 
SAP GUI Installation Guide for Windows | Step-by-Step Setup for SAP Access
SAP Vista, an A L T Z E N Company
 
What companies do with Pharo (ESUG 2025)
ESUG
 
AI Software Engineering based on Multi-view Modeling and Engineering Patterns
Hironori Washizaki
 
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
 
ChatPharo: an Open Architecture for Understanding How to Talk Live to LLMs
ESUG
 
Step-by-Step Guide to Install SAP HANA Studio | Complete Installation Tutoria...
SAP Vista, an A L T Z E N Company
 
Cutting Optimization Pro 5.18.2 Crack With Free Download
cracked shares
 
10 posting ideas for community engagement with AI prompts
Pankaj Taneja
 
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
System Center 2025 vs. 2022; What’s new, what’s next_PDF.pdf
Q-Advise
 
AI Image Enhancer: Revolutionizing Visual Quality”
docmasoom
 
ChessBase 18.02 Crack + Serial Key Free Download
cracked shares
 
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
Activate_Methodology_Summary presentatio
annapureddyn
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 

Cycle.js overview