Home Facebook Releases Open Source JavaScript Library

Facebook Releases Open Source JavaScript Library

Facebook has long been a big contributor to the open source movement, and releases a number of their in-house projects under open source licenses. They even provide a a mirror for popular open source endeavors, such as Mozilla and Apache. This week Facebook announced the release their first open source JavaScript library.

In September, Facebook released FBJS, which is a layer on top of JavaScript designed specifically for use with the Facebook platform. It lets developers use JavaScript in their Facebook applications, including things like AJAX and DOM manipulation. The problem with FBJS, though, was that it didn’t play nice with outside JavaScript libraries, so for anything that it didn’t support, developers were out of luck.

With that in mind, Facebook decided to internally develop a library for creating JavaScript animations in FBJS. “And then we thought: ‘why stop there?’ The library had very little Facebook-specific code, so we took some time to modularize it, and now we’re open-sourcing it for everyone,” said Facebook developer Marcel Laverdet.

Facebook is following in the steps of rival web giants Google and Yahoo!, who both have open sourced internal JavaScript libraries. While Facebook’s release of the animation library is a far cry from the more complete libraries released by Yahoo! and Google, such as Yahoo!’s YUI or Google’s Web Toolkit, it is a step in that direction. Releasing open source development libraries is a very smart thing to do, because it builds capital with developers and attracts developers to your platform. For Yahoo! and Google, their development libraries help to attract developers to their other APIs (such as Google Maps or Flickr). For Facebook, releasing libraries like Animation could help draw more developers toward their platform.

The Animation library is described as a way for developers to create “customizable animations using CSS and DOM manipulation.” It is released under a modified BSD license.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.