Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Madcore Web

Madcore Web (madcore-web) is a high-level library for building Delta Chat-compatible messengers in web environments. It runs on the Delta Chat Relay protocol (JSON-RPC over WebSocket) and provides a multi-account, PGP-first messaging experience with zero backend required.


Installation

npm install madcore-web
# or
bun add madcore-web

From source:

bun install
bun run build

Package entry points

Import Purpose
madcore-web DeltaChatSDK, DeltaChatAccount, crypto helpers
madcore-web/store MemoryStore, IndexedDBStore, createStore()
madcore-web/types TypeScript type definitions

Quick Start

import { DeltaChatSDK } from 'madcore-web';

const SERVER = 'https://relay.example';

const dc = DeltaChatSDK({ logLevel: 'debug' });

const { account: alice } = await dc.register(SERVER, 'Alice');
const { account: bob }   = await dc.register(SERVER, 'Bob');

await alice.connect();
await bob.connect();

const uri = alice.generateSecureJoinURI();
const { contact } = await bob.secureJoin(uri);

await bob.send(contact, { text: 'Hello Alice!' });
console.log(bob.status());

For browser persistence, pass store: new IndexedDBStore('my-app') to DeltaChatSDK(). The default IndexedDB database name is madcore-web.

See docs/examples.md for the full guide.


Documentation

Choose your entry point based on your needs:

Level 1: SDK Fundamentals

New developers and evaluators.

Level 2: Core Messaging & Management

Application developers building messenger features.

Level 3: Security & Advanced Features

Security-conscious developers and advanced users.

Level 4: Architecture & Protocol Internals

Core contributors and protocol researchers.


Development

bun run dev          # watch mode (tsc)
bun run test         # full integration test suite
bun run test:interactive

Integration tests expect a relay URL in .env:

SERVER_URL=https://relay.example

License

Madcore Web is licensed under the GNU Lesser General Public License v3.0 (LGPLv3).

You may download the full license text from the LICENSE file in this repository.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages