API for the Anchor chat. You use this to create bots and custom clients / integrations
Currently this API is in a very early stage and functionality + API may change and break often.
npm i @anchor-chat/anchor-api
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 can be found here: https://anchor-chat.github.io/AnchorAPI/
This is how you start:
new AnchorAPIBuilder()
.setDirectory(".anchor") // Not needed but recommended
.setLoginAndPassword("login", "password")
.createAccount() // Or login()
.then(async (api) => {
// Magic!
});
Look at the docs for more info
Generated using TypeDoc