API Docs

Libraries

Choose an Osmium library for a ready-to-use client, or pair the protocol definitions with a protobuf implementation in your language of choice.

Community Libraries

Osmium only maintains a select few official SDK examples. This table is a non-exhaustive list of third-party libraries that have been validated by the community.

LanguagePackageDescription
JavaScript / TypeScript@osmiumchat/sdkClient SDK for Osmium
JavaScript / TypeScript@osmiumchat/protoGenerated protobuf types for Osmium
Pythonijsbol/osmium-chatA Python API wrapper for Osmium

Examples

The JavaScript bot example and Go bot example show complete login and event-handling flows.

Protobuf libraries

If you’d rather work with the protocol directly, these are Protobuf libraries that have been tested to work well with the Osmium protocol definitions and provide ergonomic code generation.

LanguageLibraryUse it for
JavaScriptprotobuf.js (Uncollapse fork)Runtime protobuf support with improved bigint handling
TypeScriptts-protoGenerating typed TypeScript from .proto files
Lualua-protobufEncoding and decoding protobuf messages in Lua
Pythonpython-betterprotoGenerating typed Python clients and message classes

Protocol definitions

All libraries use the public osmiumchat/proto repository. The protocol reference provides a browseable guide to all methods, classes, enums, and field types.