(Deprecated) A wrapper for nymph-client to work in Node.js.
This repository has been archived on 2026-03-30. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • JavaScript 100%
Find a file
2021-08-14 09:21:12 -07:00
.gitignore Nymph Node client ready. 2017-10-14 16:20:42 -07:00
index.js Provide ponyfills instead of polyfills. Version bump. 2019-06-28 13:26:55 -07:00
LICENSE Initial commit 2017-10-13 23:14:14 -07:00
package-lock.json Provide ponyfills instead of polyfills. Version bump. 2019-06-28 13:26:55 -07:00
package.json Provide ponyfills instead of polyfills. Version bump. 2019-06-28 13:26:55 -07:00
README.md Add deprecation notice. 2021-08-14 09:21:12 -07:00

Nymph Node Client - collaborative app data

Latest Stable Version Open Issues License

Powerful object data storage and querying for collaborative web apps.

Deprecation Notice

The PHP implementation of Nymph/Tilmeld has been deprecated. It will no longer have any new features added. Instead, a new version of Nymph running on Node.js, written entirely in TypeScript will replace the PHP implementation. You can find it over at the Nymph.js repo.

Installation

npm install --save nymph-client-node

This repository is the JavaScript client for Node. There is also a browser client. For more information, you can see the main Nymph repository.

This package provides fetch and WebSocket ponyfills to Nymph, handles Tilmeld auth tokens, and sets up Nymph.init to also call PubSub.init with your configs if you provide a pubsubURL.

Usage

To use, require it instead of nymph-client:

const { Nymph } = require("nymph-client-node");

Then provide the options to Nymph.init:

Nymph.init({
  restURL: "https://yournymphrestserver/path/to/your/rest.php",
  pubsubURL: "wss://yournymphpubsubserver",
});

For a thorough step by step guide to setting up Nymph on your own server, visit the Setup Guide.

API Docs

Check out the API Docs in the wiki.