Environment Latest

🌍

TypeScript runtime + OS + device detection

Detect where your code runs (Node, Bun, Deno, Edge, Browser), what it runs on (OS/arch), and what it can do — with zero dependencies.

VersionLicenseDownloadsSize
🌍

Detect everywhere

One tiny library that tells you runtime, platform, architecture, and capabilities.

  • Modern runtimes: Node, Bun, Deno

  • Edge: Vercel / Netlify / Cloudflare

  • Browsers: Chrome / Firefox / Safari / Edge

  • Devices: mobile / tablet / desktop

Visit reactbd.com

Runtime detection

Reliable checks for Node.js, Bun, Deno, Electron, React Native, and edge workers.

Browser & engine

Helps identify browser engine families and capability flags for UI/runtime fallbacks.

Device type

Detects mobile/tablet/desktop and common signals like touch support.

OS & architecture

OS (Windows/macOS/Linux/iOS/Android) and arch (arm64/x64) helpers.

Contribution

Contributions are welcome — docs, new checks, or better examples.

Follow these steps to contribute:

  1. 1

    Fork the repository on GitHub

  2. 2

    Clone your fork locally

  3. 3

    Create a new feature branch (

    git checkout -b feature/amazing-feature

    )

  4. 4

    Commit your changes (

    git commit -m "Add runtime check"

    )

  5. 5

    Open a Pull Request with details

License

MIT License

This project is free and open-source software licensed under the MIT License.

Copyright © 2026 Noor Mohammad

Support the Project

If this package saves you time, consider buying me a coffee.

Your support helps keep the utilities updated and well-documented.

Zero dependenciesType-safeActive maintenance
Buy me a coffeeBuy me a coffee

💝 Thank you for your support!