Create Platform Independent Apps

Use Bridge.NET to build platform independent applications for mobile, web and desktop.
Run on iOS, Windows, Mac, Linux and billions of other devices with JavaScript support.

Supports popular JavaScript frameworks like JQuery, Bootstrap and more coming soon!

Write C#.
Run JavaScript.
C#Write Your Code In Visual Studio Using C#
// Full JavaScript API
Document.GetElementById("demo")
    .InnerHTML = "Hello";

// Call Alert()
Window.Alert("Bridge.NET");

// C# Classes
var person = new Demo.App.Person();
person.Name = "Frank";

// Generics
var people = new List<Person>();
people.Add(person);

// Log To The Browser Console
Console.Log(people[0].Name); // Frank 
JSBridge.NET Transforms Into JavaScript
// Full JavaScript API
document.getElementById("demo")
    .innerHTML = "Hello";

// Call Alert()
window.alert("Bridge.NET");

// C# Classes
var person = new Demo.App.Person();
person.setName("Frank");

// Generics
var people = new Bridge.List(Demo.App.Person)();
people.add(person);

// Log To The Browser Console
console.log(people.get(0).getName()); // Frank 
C#Full jQuery API With Intellisense
// Method Chaining
jQuery.Select("div")
    .FadeIn(500)
    .AddClass("highlight")
    .Text("Welcome");

// Event Handlers With Lambda Expressions
jQuery.Select("#myBtn").Click(() => {
    Console.Log("Button Clicked");
});

// Ajax Requests
jQuery.Ajax("/person/55", new AjaxOptions {
    // Handle Success Event
    Success = (object obj, string str, jqXHR request) => {
        // Deserialize JSON Object
        var person = JSON.Parse((string)obj);

        // Set Input Field Value
        jQuery.Select("#txtName").Val(person.Name);
    }
}); 
JSAdvanced C# In JavaScript
// Method Chaining
$("div")
    .fadeIn(500)
    .addClass("highlight")
    .text("Welcome");

// Event Handlers With Lambda Expressions
$("#myBtn").click(function () {
    console.log("Button Clicked");
});

// Ajax Requests
$.ajax("/person/55", {
    // Handle Success Event
    success: function (obj, str, request) {
        // Deserialize JSON Object
        var person = JSON.parse(Bridge.cast(obj, String));

        // Set Input Field Value
        $("#txtName").val(person.getName());
    }
}); 
C#C# Sample 3
// C# 3 
JSJavaScript Sample 3
// JavaScript 3 

Deploy Your Apps Anywhere!

Your app is not limited to a single platform with Bridge.NET.
Compile your C# code into native JavaScript and deploy on Billions of devices.

deploy-anywhere

Bridge.NET Gives You Great Features

rocket

C# All The Way

Leverage the power of C# and Visual Studio to build apps using the skills you know
platform-independent

Platform Independent Deployment

Build apps for iOS, Android, Windows, Mac, Linux and billions of other devices
open-source

Open Source

Bridge.NET is Open-source and Free!
Download now and start building

Supports Popular Frameworks

With official and community built libraries for popular frameworks, developing powerful JavaScript apps is easier than ever.

More framework support is currently in development!

HTML5

Build web applications using cutting-edge HTML5 technology with the aid of Intellisense, statement completion, static typing, and all the advantages a compiled language environment can provide to increase productivity.
[DOMContentLoaded]
public static void Main()
{
    var element = new Bridge.Html5.DataListElement
    {
        Id = "browsers",
    };
}

Add jQuery To Your App

Full support for jQuery allows unleashing dynamic applications coupled with the power of code reusability in a strongly typed programming environment, guaranteeing smooth running applications.
[Ready]
public static void Main()
{
    var body = Document.Body;

    new jQuery("<div>")
        .Attr("id", "div1")
        .Html("Hello World!")
        .AppendTo(body);

    new jQuery("<button>")
        .Html("Hide")
        .On("click", () => { 
            jQuery.Select("#div1").FadeOut(); 
        })
        .AppendTo(body);
}

Bootstrap

Websites can benefit from the advanced styling options and flexible components brought by Bootstrap. Written on a friendly and robust environment to allow beautiful and responsive applications.
[Ready]
public static void Main()
{
    var button = new ButtonElement { 
        Type = ButtonType.Button 
    };
    
    button.ClassList.Add("btn");
    button.ClassList.Add("btn-sm");
    button.ClassList.Add("btn-info");
    button.InnerHTML = "Bootstrap";
}