@briij/typescript-sdk
v0.2.0
Published
TypeScript SDK for Matrix-core and Briij homeserver APIs with Angular integration.
Readme
@briij/typescript-sdk
TypeScript SDK for Matrix-core and Briij homeserver APIs, with an Angular-friendly integration layer.
Install
npm install @briij/typescript-sdkQuick start
import { BriijClient, InMemoryTokenStorage } from "@briij/typescript-sdk";
const client = new BriijClient(
{
homeserverUrl: "http://localhost:8080",
timeoutMs: 5000,
retryCount: 1
},
new InMemoryTokenStorage()
);
const health = await client.matrix.health();
console.log(health.status);Angular usage
import { bootstrapApplication } from "@angular/platform-browser";
import { provideBriijSdk } from "@briij/typescript-sdk";
bootstrapApplication(AppComponent, {
providers: [
provideBriijSdk({
homeserverUrl: "http://localhost:8080"
})
]
});Scripts (package local)
npm run lintnpm run testnpm run build
Publishing
This package is configured for npm public scoped publishing via:
publishConfig.access = publicpublishConfig.registry = https://registry.npmjs.org/
Use the workspace release workflow or run:
npm publish --access public