1.2.5 • Published 5 years ago

@anchor-chat/anchor-api v1.2.5

Weekly downloads
-
License
LGPL-3.0
Repository
github
Last release
5 years ago

AnchorAPI Build Status

API for the Anchor chat. You use this to create bots and custom clients / integrations

W.I.P

Currently this API is in a very early stage and functionality + API may change and break often.

Installation

npm i @anchor-chat/anchor-api

Browsers

if you want to use this in the browser add this to the end of your <body> <script src="https://anchor-chat.github.io/AnchorAPI/dist/anchor-api.min.js"></script> This includes IPFS and OrbitB

Docs

Docs can be found here: https://anchor-chat.github.io/AnchorAPI/

Getting started

This is how you start:

const { AnchorAPIBuilder } = require("@anchor-chat/anchor-api");

new AnchorAPIBuilder()
    .setDirectory(".anchor") // Not needed but recommended
    .setCredentials("login", "password")
    .createAccount() // Or login()
    .then(async (api) => {
        // Magic!
    });

Look at the docs for more info

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago