Paul Krill
Editor at Large

Netflix builds JavaScript library to fetch data

news
Aug 19, 20152 mins

The Falcor project, still at the preview stage, retrieves data via simple JavaScript operations

With its Falcor project, Netflix offers a JavaScript library for efficient data-fetching, with developers able to represent remote data sources as a single domain model via the JSON Graph convention.

Netflix, which uses Falcor for the company’s mobile, desktop, and TV applications, has released a developer preview of the technology, which can be accessed on GitHub.

“You retrieve your data using familiar JavaScript operations like get, set, and call,” said Netflix’s Jafar Husain, Paul Taylor and Michael Paulson, in a blog post. “If you know your data, you know your API.” JSON Graph, meanwhile, serves as a convention for modeling graph information as a JSON object.

Falcor provides a JavaScript-like path syntax for accessing as much or as little data as desired, according to the project’s website. Data is kept in a single, coherent cache, and Falcor manages stale data and cache pruning. References are automatically traversed in a graph, requests are made as needed, and network communications are handled transparently.

Falcor is middleware and not a replacement for an application server, database, or MVC framework, Netflix said. “Instead, Falcor can be used to optimize communication between the layers of a new or existing application.” Netflix plans to release a road map for Falcor soon. The developer preview features a Node.js version of the Falcor Router, which is not yet in production use. Falcor Router is an implementation of the DataSource interface, which can expose graph information. Netflix also is providing a working example server for a Netflix-like application, accessible on GitHub.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author