No description
  • C++ 50.5%
  • Python 17.6%
  • Kotlin 9.6%
  • Java 8.5%
  • Objective-C 5.3%
  • Other 8.3%
Find a file
Cristian Bulacu 3a300777e1
Refactor jf app (#75269)
* [jf-admin] Split Linux example into shared jfa-common + Linux-specific layer

OS-agnostic Joint Fabric Administrator logic now lives in
examples/jf-admin-app/jfa-common/, and examples/jf-admin-app/linux/

Shared layer: examples/jf-admin-app/jfa-common/
- include/JFAPlatform.h: new platform-hook interface (JFAInitCommissioner,
  JFAGetDeviceCommissioner). Shared code never includes CommissionerMain.h.
- include/JFARpc.h: moved from linux/.
- include/JFADatastoreSync.h: moved from linux/.
- src/JFADatastoreSync.cpp: moved from linux/. Internal rewiring;
- include/JFAManagerBase.h + src/JFAManagerBase.cpp: moved from linux/JFAManager.{h,cpp}
  and renamed class to JFAManagerBase. Members are now protected so a subclass
  can access shared state. New virtual extension points for future platform
  ports (default implementations keep the Linux example behavior unchanged).

The OnConnectedAction enum reserves kFirstPlatformAction = 32 for subclass use.
  JFAMgr() is declared extern in the base and defined per platform.
- BUILD.gn: adds two source_set targets:
    * jfa-datastore-sync (JFADatastoreSync + JFAPlatform.h + JFARpc.h)
    * jfa-manager-base   (JFAManagerBase)

Linux layer: examples/jf-admin-app/linux/
- include/JFAManagerLinux.h + JFAManagerLinux.cpp: new thin derived class
  JFAManagerLinux : public JFAManagerBase, singleton via GetDefaultInstance(),
  and the Linux definition of chip::JFAMgr().
- JFAPlatformLinux.cpp: implements the two JFAPlatform.h hooks by wrapping the
  existing CommissionerMain.h helpers (InitCommissioner / GetDeviceCommissioner).
- main.cpp: swapped  #include "JFAManager.h"  ->  #include "JFAManagerLinux.h".
  All JFAMgr() call sites keep working; return type is still JFAManagerBase &.
- BUILD.gn: drops JFAManager.{h,cpp} from sources, adds JFAManagerLinux.{h,cpp}
  and JFAPlatformLinux.cpp, and adds deps on jfa-common:jfa-datastore-sync and
  jfa-common:jfa-manager-base.

Pigweed RPC service: examples/common/pigweed/rpc_services/JointFabric.h now
includes JFAManagerBase.h instead of JFAManager.h. It keeps calling
chip::JFAMgr().FinalizeCommissioning(...) through the base; no behavior change.

Future ports: the architecture is ready for other platforms to
drop in a sibling JFAManagerX.{h,cpp} + JFAPlatformX.cpp providing their own
chip::JFAMgr() and overriding the virtual hooks they need. No further changes
to jfa-common are required for a new port.

* [jf-admin] Share JFA RPC server via response-signal shim

Move the Joint Fabric Administrator pigweed RPC server into
examples/jf-admin-app/jfa-common/src/RpcServer.cpp and factor the
wait/signal/reset for the ICAC CSR response out behind the
JFAResponseSignal.h shim. Linux links the POSIX shim
(JFAResponseSignalPosix.cpp, std::condition_variable).

Only the wait/signal mechanism is platform-specific, so other operating
systems can provide their own JFAResponseSignal.h implementation (for
example a FreeRTOS semaphore or a Zephyr k_sem) and reuse the shared RPC
server unchanged.

* [jf-admin] Share JFA init wire-up via common JFAInitialize()

Move the shared steps of Joint Fabric Administrator server wire-up into
examples/jf-admin-app/jfa-common/src/JFAInit.cpp behind a new
JFAInitialize(Server &) entry point declared in JFAInit.h.

JFAInit.cpp owns the OS-agnostic setup: the DeviceInstanceInfoProvider
wrapper, the commissioning / DNS-SD event handler (covering
kDnssdInitialized), and the common delegate/provider wiring. Each
platform calls JFAInitialize() and performs only its own extra,
platform-specific steps around it, so a new port reuses the shared setup
rather than copying it.
2026-11-12 14:47:04 +00:00
.agents Remove NOLINT bugprone-unchecked-optional-access from tests again, and reject it in lint (#75191) 2026-11-07 16:56:01 +13:00
.claude make a symlink so Claude detected Agent Skills (#72406) 2026-06-04 12:09:44 -04:00
.devcontainer [devcontainer] Remove invalid comment from devcontainer.json file (#72314) 2026-06-02 11:40:19 +00:00
.gemini Add an agents markdown file, remove old instructions/styleguide (#71642) 2026-04-20 19:22:33 +00:00
.githooks
.github Bump in-tree Mbed TLS from 2.28 to 3.6.7 LTS (#75203) 2026-11-11 10:27:33 +00:00
.vscode Small changes to vs code files and to gitignore (#73862) 2026-09-01 08:46:26 -04:00
build Default to relatives paths in debug info when using a compiler launcher (#75235) 2026-11-10 22:07:36 +13:00
build_overrides Remove unused ot-br-posix dependency from the build system (#41181) 2025-10-03 00:54:05 +00:00
config [Telink] Fix platform configurations and firmware packaging (Auto-merged by platform-bot) (#75167) 2026-11-09 09:48:16 -05:00
credentials [PQC CertificateChainRequest] Certificate chain request updates (#74871) 2026-10-23 14:16:59 +00:00
data_model [Data Model] Update Matter 1.7 SVE reference model and generated artifacts (#74862) 2026-10-23 14:25:11 +00:00
docs Bump pydata-sphinx-theme from 0.23.0 to 0.24.0 (Auto-merged by bot) 2026-11-10 10:23:12 -05:00
examples Refactor jf app (#75269) 2026-11-12 14:47:04 +00:00
integrations [Ameba] Update docker image (#75259) 2026-11-10 07:58:58 -05:00
scripts [Linux] Clear all of a removed Wi-Fi network, credentials included (#75077) 2026-11-10 16:44:22 -05:00
src Refactor jf app (#75269) 2026-11-12 14:47:04 +00:00
third_party Optimize stack sizes of the tasks (#75277) 2026-11-12 07:27:24 -05:00
zephyr [all-device-app][Zephyr] Zephyr all-device app 2/3 Config and Build Files (#73899) 2026-09-29 16:32:08 +00:00
zzz_generated xml: Regenerate Network Commissioning cluster with Alchemy (#75287) 2026-11-11 13:00:27 +13:00
.actrc More support for local action runner act (#30615) 2023-11-23 07:52:24 +00:00
.clang-format clang-format: disable AlignTrailingComments.OverEmptyLines (#42554) 2026-01-07 16:04:51 +00:00
.clang-tidy Make the tree clang-tidy clean with the clang 23 toolchain (#75293) 2026-11-11 19:18:52 +13:00
.default-version.min
.dir-locals.el
.editorconfig
.gitattributes [fuzztest] Migrate the FuzzTest and Abseil GN files from Pigweed into the tree (#74426) 2026-09-30 18:38:52 +00:00
.gitignore [Silabs] : Update install-packages script to use curl (#74562) 2026-10-02 17:42:06 +00:00
.gitmodules Bump in-tree Mbed TLS from 2.28 to 3.6.7 LTS (#75203) 2026-11-11 10:27:33 +00:00
.gn Rename constraints.txt so Dependabot reads the Python pins (#74912) 2026-10-23 16:09:09 +00:00
.matterlint [AVAnalysis] Server cluster and unit tests for Enable and Disable commands with local context feature only (#73095) 2026-07-30 04:51:12 +00:00
.mergify.yml Target only 1.7 for request-backport-latest-mve-sve (#75014) 2026-10-28 10:31:17 -04:00
.pre-commit-config.yaml [styling] Move shell formatting to pre-commit.ci and disable shellharden in restyled (#74991) 2026-10-27 18:33:49 +00:00
.prettierrc.json
.pullapprove.yml Add OHF to shared reviewers (#74134) 2026-09-14 13:33:46 -04:00
.restyled.yaml [styling] Move shell formatting to pre-commit.ci and disable shellharden in restyled (#74991) 2026-10-27 18:33:49 +00:00
.shellcheck_tree
.spellcheck.yml Add PICS Code support to generate_spec_xml.py (#41180) 2025-10-01 18:19:06 +00:00
AGENTS.md Remove NOLINT bugprone-unchecked-optional-access from tests again, and reject it in lint (#75191) 2026-11-07 16:56:01 +13:00
BUILD.gn Default to relatives paths in debug info when using a compiler launcher (#75235) 2026-11-10 22:07:36 +13:00
CLAUDE.md Update Content Launcher cluster via Alchemy v1.6.20 (#72662) 2026-07-08 08:17:55 -04:00
CODE_OF_CONDUCT.md
CODEOWNERS [Telink] Update Docker image (Zephyr update) (#73824) 2026-08-31 09:52:19 -04:00
CONTRIBUTING.md [docs] Fix broken links in contribution guidelines (#74547) 2026-10-01 13:33:27 +00:00
GEMINI.md Add GEMINI.md to redirect bot to AGENTS.md (#71965) 2026-05-07 20:29:59 +00:00
gn_build.sh [Android]upgrade android with ndk 28c and 16kb page size (#40455) 2025-08-07 08:12:27 -04:00
iwyu.imp Use include-what-you-use on lib/core (#32046) 2024-02-13 17:40:20 +00:00
kotlin-detect-config.yaml Make global attributes be part of IM instead of part of DataModel::Provider (#37345) 2025-02-06 02:19:57 +00:00
lgtm.yml
LICENSE
NOTICE
pigweed.json Add pigweed.json to root and opt out to cli analytics (#36598) 2024-11-21 20:53:09 +00:00
pyproject.toml Don't include build outputs and submodules in pyright analysis (#75233) 2026-11-09 16:57:25 +00:00
README.md [docs] Note that example apps are not production-ready (#73424) 2026-08-05 22:04:27 +00:00
REVIEWERS.md
SECURITY.md Adding a Security Policy that redirects to CSA's Vulnerability Reporting page (#37872) 2025-03-05 13:56:44 +00:00
SPECIFICATION_VERSION

Documentation links

Matter

Builds

Builds

Android Ameba ASR BouffaloLab Darwin TI CC26X2X7 TI CC32XX EFR32 ESP32 Infineon i.MX Linux NXP FreeRTOS/Zephyr Linux ARM Linux Standalone nRF Connect SDK QPG STM32 Telink Tizen

Tests

Tests-Master Tests-LTS Unit / Integration Tests Cirque QEMU Nightly Run

Tools

ZAP Templates

Documentation

Documentation Build

About

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.

What is Matter?

Matter is a unified, open-source application-layer connectivity standard built to enable developers and device manufacturers to connect and build reliable, and secure ecosystems and increase compatibility among connected home devices. It is built with market-proven technologies using Internet Protocol (IP) and is compatible with Thread and Wi-Fi network transports. Matter was developed by a Working Group within the Connectivity Standards Alliance (Alliance). This Working Group develops and promotes the adoption of the Matter standard, a royalty-free connectivity standard to increase compatibility among smart home products, with security as a fundamental design tenet. The vision that led major industry players to come together to build Matter is that smart connectivity should be simple, reliable, and interoperable.

Matter simplifies development for manufacturers and increases compatibility for consumers.

The standard was built around a shared belief that smart home devices should be secure, reliable, and seamless to use. By building upon Internet Protocol (IP), Matter enables communication across smart home devices, mobile apps, and cloud services and defines a specific set of IP-based networking technologies for device certification.

The Matter specification details everything necessary to implement a Matter application and transport layer stack. It is intended to be used by implementers as a complete specification.

The Alliance officially opened the Matter Working Group on January 17, 2020, and the specification is available for adoption now.

Visit buildwithmatter.com to learn more and read the latest news and updates about the project.

Project Overview

Development Goals

Matter is developed with the following goals and principles in mind:

Unifying: Matter is built with and on top of market-tested, existing technologies.

Interoperable: The specification permits communication between any Matter-certified device, subject to users’ permission.

Secure: The specification leverages modern security practices and protocols.

User Control: The end user controls authorization for interaction with devices.

Federated: No single entity serves as a throttle or a single point of failure for root of trust.

Robust: The set of protocols specifies a complete lifecycle of a device — starting with the seamless out-of-box experience, through operational protocols, to device and system management specifications required for proper function in the presence of change.

Low Overhead: The protocols are practically implementable on low compute-resource devices, such as MCUs.

Pervasive: The protocols are broadly deployable and accessible, by leveraging IP and being implementable on low-capability devices.

Ecosystem-Flexible: The protocol is flexible enough to accommodate deployment in ecosystems with differing policies.

Easy to Use: The protocol provides smooth, cohesive, integrated provisioning and out-of-box experience.

Open: The Project’s design and technical processes are open and transparent to the general public, including non-members wherever possible.

Architecture Overview

Matter aims to build a universal IPv6-based communication protocol for smart home devices. The protocol defines the application layer that will be deployed on devices and the different link layers to help maintain interoperability. The following diagram illustrates the normal operational mode of the stack: Matter Architecture Overview

The architecture is divided into layers to help separate the different responsibilities and introduce a good level of encapsulation among the various pieces of the protocol stack. The vast majority of interactions flow through the stack captured in the following Figure:

Matter Stack Architecture

  1. Application: High-order business logic of a device. For example, an application that is focused on lighting might contain logic to handle turning on/off the bulb as well as its color characteristics.
  1. Data Model: The data layer corresponds to the data and verb elements that help support the functionality of the application. The Application operates on these data structures when there is an intent to interact with the device.
  1. Interaction Model: The Interaction Model layer defines a set of interactions that can be performed between a client and server device. For example, reading or writing attributes on a server device would correspond to application behavior on the device. These interactions operate on the elements defined at the data model layer.
  1. Action Framing: Once an action is constructed using the Interaction Model, it is serialized into a prescribed packed binary format to encode for network transmission.
  1. Security: An encoded action frame is then sent down to the Security Layer to encrypt and sign the payload to ensure that data is secured and authenticated by both sender and receiver of a packet.

  2. Message Framing & Routing: With an interaction encrypted and signed, the Message Layer constructs the payload format with required and optional header fields; which specify the message's properties and some routing information.

  1. IP Framing & Transport Management: After the final payload has been constructed, it is sent to the underlying transport protocol for IP management of the data.

Current Status of Matter

Matter’s design and technical processes are intended to be open and transparent to the general public, including to Working Group non-members wherever possible. The availability of this GitHub repository and its source code under an Apache v2 license is an important and demonstrable step to achieving this commitment. Matter endeavors to bring together the best aspects of market-tested technologies and redeploy them as a unified and cohesive whole-system solution. The overall goal of this approach is to bring the benefits of Matter to consumers and manufacturers as quickly as possible. As a result, what you observe in this repository is an implementation-first approach to the technical specification, vetting integrations in practice. The Matter repository is growing and evolving to implement the overall architecture. The repository currently contains the security foundations, message framing and dispatch, and an implementation of the interaction model and data model. The code examples show simple interactions, and are supported on multiple transports -- Wi-Fi and Thread -- starting with resource-constrained (i.e., memory, processing) silicon platforms to help ensure Matter’s scalability.

Note: The applications under examples/ are reference implementations intended for development and testing. They are not production-ready and are not intended to be shipped as-is in a commercial product.

How to Contribute

We welcome your contributions to Matter. Read our contribution guidelines here.

Building and Developing in Matter

Instructions about how to build Matter can be found here .

Directory Structure

The Matter repository is structured as follows:

File/Folder Content
build Build system support content and built output directories
build_overrides Build system parameter customization for different platforms
config Project configurations
credentials Development and test credentials
docs Documentation, including guides. Visit the Matter SDK documentation page to read it.
examples Example firmware applications that demonstrate use of Matter (not production-ready)
integrations 3rd party integrations
scripts Scripts needed to work with the Matter repository
src Implementation of Matter
third_party 3rd party code used by Matter
zzz_generated ZAP generated template code - Revolving around cluster information
BUILD.gn Build file for the GN build system
CODE_OF_CONDUCT.md Code of conduct for Matter and contribution to it
CONTRIBUTING.md Guidelines for contributing to Matter
LICENSE Matter license file
REVIEWERS.md PR reviewers
gn_build.sh Build script for specific projects such as Android, EFR32, etc.
README.md This file

License

Matter is released under the Apache 2.0 license.