17 releases (11 breaking)

0.13.0 Dec 19, 2025
0.11.0 Oct 8, 2025
0.7.0 Jul 16, 2025
0.4.2 Mar 27, 2025
0.0.0 Oct 8, 2024

#4 in #omni

Download history 642/week @ 2025-09-28 714/week @ 2025-10-05 568/week @ 2025-10-12 561/week @ 2025-10-19 587/week @ 2025-10-26 730/week @ 2025-11-02 1024/week @ 2025-11-09 788/week @ 2025-11-16 655/week @ 2025-11-23 918/week @ 2025-11-30 562/week @ 2025-12-07 595/week @ 2025-12-14 650/week @ 2025-12-21 690/week @ 2025-12-28 643/week @ 2026-01-04 461/week @ 2026-01-11

2,540 downloads per month
Used in 9 crates (2 directly)

Apache-2.0 and GPL-3.0-only

12MB
166K SLoC

Polkadot Omni Node Library

Helper library that can be used to run a parachain node.

Overview

This library can be used to run a parachain node while also customizing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the parameters of the runtime that is associated with each of these chain specs.

API

The library exposes the possibility to provide a RunConfig. Through this structure 2 optional configurations can be provided:

  • a chain spec loader (an implementation of chain_spec::LoadSpec): this can be used for providing the chain specs that are supported by default by the --chain-spec argument of the node's CLI and the actual chain config associated with each one.
  • a runtime resolver (an implementation of runtime::RuntimeResolver): this can be used for providing the parameters of the runtime that is associated with each of the chain specs

Apart from this, a CliConfig can also be provided, that can be used to customize some user-facing binary author, support url, etc.

Examples

For an example, see the polkadot-parachain-bin crate.

Dependencies

~140–185MB
~3M SLoC