t2t-sonbui / matter.js-java

Java runtime for matter.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java / GraalVM Engine For Matter.JS

This project implements the native runtime dependencies in Java needed to run a matter.js service, similar to the matter-node.js implementation. This includes

  • Crypto
  • Network
  • Storage
  • Time (background tasks)
  • Utils (command line and signed/unsigned byte operations)

Objectives

To Provide a working service which acts as:

  • A Matter Controller: to pair and control matter devices (lights, thermostats, etc...)
  • A Matter Server: to expose local objects as matter devices (for Alexa, Google Home, Apple Homekit, etc....)

Eventually this may become a openHAB addon for Matter.

Running

For demonstration purposes, this project implements the matter.js example shell application mostly unmodified except for the readline/console shim in Java.

The following command will compile all classes (TS and Java), webpack the JS files and run the shell application

npm install && npm run webpack-dev && mvn clean compile exec:java -Dexec.mainClass="com.matterjs.Main"

Note: this probably won't work on windows yet due to lazy path programming on my part

About

Java runtime for matter.js

License:Eclipse Public License 2.0


Languages

Language:JavaScript 48.8%Language:TypeScript 35.0%Language:Java 16.2%