You connect to Materialize the same way you connect to PostgreSQL with node-postgres
.
Install dependencies and build:
# Requires npm
$ npm run build # npm i && tsc
Run examples
$ node "./dist/connection.js"
$ node "./dist/source.js"
$ node "./dist/view.js"
$ node "./dist/subscribe.js"
$ node "./dist/query.js"
$ node "./dist/insert.js"