WinJS: The Windows library for JavaScript

What is WinJS?

WinJS is an open-source JavaScript library that can assist you in building HTML, CSS, and JavaScript applications for the Windows Store with a consistent look and performance across all Windows devices. WinJS will work in any browser and can be used as a standalone solution or with other frameworks and libraries.

What can WinJS do?

WinJS makes it possible to add Windows UI controls in HTML, such as ListView, FlipView, and Semantic Zoom, features like virtualizing collections, and high-quality infrastructure like page controls, promises, data-binding, and a template engine.

Where can I use WinJS?

Use WinJS not only for your Universal Windows apps with HTML/JS, but also for your websites, and when using HTML-based app technologies like Apache Cordova. The library consists of modules that bring JavaScript coding conventions to Windows Runtime functionality.

Get started

View our source code on GitHub.

Download WinJS or create a custom build of WinJS for your project.

Edit your code online and see the changes with a click of a button.

WinJS 4.0 Released

We received great feedback and insight from our WinJS 4.0-Preview, released earlier this year. Now, the time has finally arrived. With the release of Windows 10, we are proud to announce WinJS 4.0! WinJS 4.0 supports the latest versions of all your favorite browsers, including the new Microsoft Edge, and wrappers for AngularJS, KnockoutJS, and ReactJS. Learn more about the new features and how to install WinJS in our latest blog post.

Learn more

Learn how to build cool features in your Windows web app with these Quickstart and How-to tutorials.

Look up individual APIs that you can use in your Windows web app.

Take the free online courses available at the Microsoft Virtual Academy.

Download the SDKs and use them to build Windows Store apps using WinJS in Visual Studio.

Take a look at and contribute to the WinJS source code on GitHub.

Check out our most popular ebook on building web apps for Windows 8.

Check out the Windows blogs and search for WinJS.

Follow #winjs on Stack Overflow to learn about new features and discuss WinJS with other developers.

Follow @buildwinjs on Twitter.

Videos about WinJS

video image with play button

WinJS support for popular JavaScript frameworks

Get a brief history of support for app frameworks at Microsoft, then see a demo of the responsive app “CharMap” being rebuilt in multiple frameworks as a Windows 10 app, including KnockoutJS, AngularJS, ReactJS, a look at the Windows Bootstrap theme, and Cordova for mobile development.

video image with play button

Developing Universal Windows Apps with HTML and JavaScript Jump Start

If you want to use HTML, CSS, and JavaScript to build rich, native apps on a new and exciting platform, look no further. Get the details from Microsoft experts in this fast-paced, two-day course.

video image with play button

A Quick Look at WinJS

Join your guide Cory Fowler as he talks with Olivier Bloch from MS Open Tech and Josh Williams from the WinJS team to introduce us to WinJS.

video image with play button

Build a converged app using HTML and JS

Walk through building an app for both Windows and Windows Phone using HTML, JavaScript and the WinJS library. Learn how Visual Studio Universal projects help you easily share code between your apps and also help you build differentiated experiences.

video image with play button

Create fast and fluid interfaces with HTML and JS

Learn the best coding practices for maximizing the performance of your Windows Store app with the Windows Library for JavaScript (WinJS).

video image with play button

Create your first app using HTML and JS

Watch the basics of creating a Windows Store app experience using HTML and JavaScript, including WinJS, which takes advantage of the experience that you already have.

WinJS in production code

Was this page helpful?
Additional feedback?
Thank you! We appreciate your feedback.