@4players/odin-common
v9.5.1
Published
Commonly used type definitions and utility functions across ODIN web projects
Readme
@4players/odin-common
A collection of commonly used type definitions and schemas across ODIN web projects.
Entrypoints
The package is split into three entrypoints:
@4players/odin-common
Lightweight utilities with no heavy dependencies. Includes logging, a Result type, video
codec helpers, async primitives (sleep, task queues, promise racing), base64/byte array encoding,
UUID generation, environment detection, type guards, URL helpers and the backend plugin API types.
import { Logger, LogFilter } from '@4players/odin-common';@4players/odin-common/api
Zod-based schemas for the ODIN Voice protocol (rooms, peers, media, tokens, channels) and RPC command/notification definitions. Importing from this entrypoint will pull in Zod.
import { TokenClaims, TokenClaimsSchema } from '@4players/odin-common/api';@4players/odin-common/zod
Re-exports the Zod library for consumers that need to create their own schemas without adding a separate Zod dependency.
import { zod } from '@4players/odin-common/zod'; Troubleshooting
Contact us through the listed methods below to receive answers to your questions and learn more about ODIN.
Discord
Join our official Discord server to chat with us directly and become a part of the 4Players ODIN community.
Have a quick question? Tweet us at @ODIN4Players and we’ll help you resolve any issues.
Don’t use Discord or Twitter? Send us an email and we’ll get back to you as soon as possible.

