open-index/open-npm huggingface dataset:
npm package: @qubic-js/detect-inapp
Description: detect browser or in-app information for mobile
Author: yuting1987@gmail.com
Latest version: 1.4.1

# Detect InApp

detect browser or in-app information for mobile

[![Build Status](https://travis-ci.org/f2etw/detect-inapp.svg?branch=master)](https://travis-ci.org/f2etw/detect-inapp)
[![codecov](https://codecov.io/gh/f2etw/detect-inapp/branch/master/graph/badge.svg)](https://codecov.io/gh/f2etw/detect-inapp)
[![npm](https://img.shields.io/npm/v/detect-inapp.svg)](https://npmjs.org/package/detect-inapp)
[![downloads](https://img.shields.io/npm/dm/detect-inapp.svg)](https://npmjs.org/package/detect-inapp)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# Code Example

```
import InApp from 'detect-inapp';

const inapp = new InApp(navigator.userAgent || navigator.vendor || window.opera);
```

# Installation

`yarn add detect-inapp`

# API Reference

- `inapp.isMobile`

- `inapp.isDesktop`

- `inapp.isInApp`

- `inapp.browser`

`values: 'messenger', 'facebook', 'line', 'twitter', 'wechat', 'miui', 'instagram', 'chrome', 'safari', 'ie', 'firefox'`

# License

MIT License
npm package: @qubic-labs/contracts
Description: Type-safe runtime interfaces for Qubic contract `inputData` consumption.
Latest version: 1.2.1

# @qubic-labs/contracts

Type-safe runtime interfaces for Qubic contract `inputData` consumption.

This package is intended for external consumers (SDK/app code) to work with typed contract interfaces and runtime encode/decode helpers.

## Install

```bash
bun add @qubic-labs/contracts
```

## Public Surface (External Use)

- Bundled core registry:
- `coreContractsRegistry`
- `coreContractDefinitions`
- Runtime contract entry input codec:
- `encodeContractEntryInputData`
- `decodeContractEntryInputData`
- Base64 helpers:
- `bytesFromBase64`
- `bytesToBase64`
- Shared contract registry interfaces (types only):
- `ContractDefinition`
- `ContractEntry`
- `ContractIoTypeDefinition`
- `ContractsRegistry`
- and related type exports from `src/registry/types.ts`.

## Runtime Requirements

- Bun `>=1.1`.
- Node-compatible TypeScript runtime (ESM).

## Runtime Example

```ts
import {
  coreContractsRegistry,
  decodeContractEntryInputData,
  encodeContractEntryInputData,
} from "@qubic-labs/contracts";

const encoded = encodeContractEntryInputData({
  registry: coreContractsRegistry,
  contractName: "QUTIL",
  entryName: "Vote",
  value: {
    poll_id: 1n,
    address: "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    amount: 1000n,
    chosen_option: 0n,
  },
});

const decoded = decodeContractEntryInputData({
  registry: coreContractsRegistry,
  contractName: "QUTIL",
  entryName: "Vote",
  bytes: encoded.bytes,
});
```

## Public API

- Root exports from `src/index.ts` are intentionally consumer-only:
- bundled core registry
- base64 helpers
- runtime codec helpers
- registry/model interfaces (types only)

Detailed API reference:

- `docs/API.md`

## Maintainers

Generation, ingestion, and release tooling are repository-maintainer workflows, not public npm package API.

- `docs/CLI.md`
- `docs/RELEASING.md`
- `docs/README.md`

## Development

```bash
bun install
bun run check
bun test
bun run build
```

## Release

Run the full release gate:

```bash
CORE_REPO=../core bun run release:check
```

Automated publish is done by semantic-release on `main` using `NPM_TOKEN`.

Then follow:

- `docs/RELEASING.md`