Giter VIP home page Giter VIP logo

abi-stable-node's Introduction

Node.js API (NAPI)

This repository is the home for ABI Stable Node API project (NAPI). The goal of this project is to provide a stable Node API for native module developers. NAPI aims to provide ABI compatibility guarantees across different Node versions and also across different Node VMs – allowing NAPI enabled native modules to just work across different versions and flavors of Node.js without recompilations.

It is introduced by this Node enhancemnet proposal: 005-ABI-Stable-Module-API.md.

This project is in an early proof of concept stage. Check out our roadmap for details on the remaining work.

Copies of the Node.js source with the changes for the ABI Stable Node API are in branches in this repo. Currently we have the following versions:

  • api-prototype-0.10.40
  • api-prototype-0.12.7
  • api-prototype-6.2.0
  • api-prototype-chakracore-7.x
  • api-prototype-8.x
  • api-prototype-chakracore-8.x

API Design & Shape

The current shape of the API can be found in header file node_jsvmapi.h

Branches

This repository contains node sources from Node versions 0.10, 0.12, 6.2 and Node-ChakraCore version 7.0, with addition of ABI stable Node APIs. The branches are named according to the node versions that have been enabled with NAPI support.

NAPI enabled modules

Module Converted By Location Performance Assesment
leveldown boingoing / ianwjhalliday https://github.com/boingoing/leveldown/ #55
nanomsg sampsongao https://github.com/sampsongao/node-nanomsg #57
canvas jasongin https://github.com/jasongin/node-canvas #77
node-sass boingoing https://github.com/boingoing/node-sass In progress
sqllite3 sampsongao / mhdawson https://github.com/mhdawson/node-sqlite3 In progress
iotivity gabrielschulhof https://github.com/gabrielschulhof/iotivity-node/tree/abi-stable In progress

Testing

In addition to running the tests in the converted modules. We have also

How to get involved

  • Convert a native module to use NAPI and report issues on conversion and performance;
  • Port ABI stable APIs to your fork of Node and let us know if there are gaps;
  • Review the roadmap and see how can you can help accelerate this project.

Hangout link for weekly standup https://plus.google.com/u/0/events/c0eevtrlajniu7h8cjrdk0f56c8?authkey=COH04YCalJS8Ug

Project Participants

abi-stable-node's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.