[API reference](https://evolu.dev/docs/api-reference) › [@evolu/common](https://evolu.dev/docs/api-reference/common) › Platform

Platform runtime utilities and capability abstractions.

## Detection

| Variable                                                                         | Description                                                 |
| -------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [hasNodeBuffer](https://evolu.dev/docs/api-reference/common/Platform/variables/hasNodeBuffer) | Detects if Node.js Buffer is available and should be used.  |
| [isDev](https://evolu.dev/docs/api-reference/common/Platform/variables/isDev)                 | True outside production builds.                             |
| [isHermes](https://evolu.dev/docs/api-reference/common/Platform/variables/isHermes)           | Returns true if running in React Native with Hermes engine. |
| [isServer](https://evolu.dev/docs/api-reference/common/Platform/variables/isServer)           | Returns true if running in a server environment (no DOM).   |

## Integration

| Name                                                                            | Description                                                                                                                                 |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [FlushSyncDep](https://evolu.dev/docs/api-reference/common/Platform/interfaces/FlushSyncDep) | Dependency wrapper for [FlushSync](https://evolu.dev/docs/api-reference/common/Platform/type-aliases/FlushSync).                                         |
| [ReloadAppDep](https://evolu.dev/docs/api-reference/common/Platform/interfaces/ReloadAppDep) | Dependency wrapper for [ReloadApp](https://evolu.dev/docs/api-reference/common/Platform/type-aliases/ReloadApp).                                         |
| [FlushSync](https://evolu.dev/docs/api-reference/common/Platform/type-aliases/FlushSync)     | FlushSync is for libraries like React to flush updates synchronously inside the provided callback to ensure the DOM is updated immediately. |
| [ReloadApp](https://evolu.dev/docs/api-reference/common/Platform/type-aliases/ReloadApp)     | Reload the app in a platform-specific way.                                                                                                  |

## Testing

| Name                                                                                                             | Description                                                           |
| ---------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [TestGlobalErrors](https://evolu.dev/docs/api-reference/common/Platform/interfaces/TestGlobalErrors)                          | Records platform global errors until disposed.                        |
| [testGlobalUncaughtErrors](https://evolu.dev/docs/api-reference/common/Platform/functions/testGlobalUncaughtErrors)           | Records platform global uncaught-error reporting until disposed.      |
| [testGlobalUnhandledRejections](https://evolu.dev/docs/api-reference/common/Platform/functions/testGlobalUnhandledRejections) | Records platform global unhandled-rejection reporting until disposed. |