# platform

> A pluggable, mockable platform information abstraction for Dart

Source: https://talira.ai/catalog/platform-8ypdaq3a
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / system information](https://talira.ai/categories/libraries/system-information), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: BSD-3-Clause[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^2]

platform is a Dart package from the Dart team that gives cross-platform access to information about the current runtime. On native platforms its NativePlatform wraps the static Platform properties of dart:io, and on the web it exposes a BrowserPlatform with the browser's user agent, so the same code can check which one it runs on. Its testing library mocks platform objects and overrides the current platform in tests, and platform checks used as branch conditions let a production compiler drop code for other platforms.

## Links

- GitHub: https://github.com/dart-lang/core

## Problems it solves

- check which operating system my Dart program is running on
- mock the platform in Dart tests
- write Dart code that runs on both native and the web and knows which one it is on

## Features

- Cross-platform Platform API for native and web
- NativePlatform wrapper over dart:io Platform properties
- BrowserPlatform with the user agent on the web
- Mock platforms and Zone-based overrides for tests

## Trust

Overall: 0.55 out of 1.
Signals: maintenance 0.83, adoption 0.38, momentum 0.17, community 0.88, backing 0.55, extensibility 0.00.

- last commit 6 days ago
- 34 commits in the last 90 days
- latest release os_detect-v2.0.4 23 days ago
- 77 GitHub stars
- 160 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

## Sources

[^1]: https://github.com/dart-lang/core/blob/main/pkgs/platform/LICENSE (checked 27 Nov 2026)
[^2]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
