Skip to content

The Open Standard for Generative UI

3.0 KB
Raw Blame
{
  "name": "@openuidev/react-lang",
  "version": "1.0.2",
  "description": "Define component libraries, generate LLM system prompts, and render streaming OpenUI Lang output in React — the core runtime for OpenUI generative UI",
  "license": "MIT",
  "type": "module",
  "main": "dist/index.cjs",
  "module": "dist/index.mjs",
  "types": "dist/index.d.cts",
  "sideEffects": [
    "./dist/index.mjs",
    "./dist/index.cjs",
    "./src/index.ts",
    "./src/devtoolsBootstrap.ts"
  ],
  "files": [
    "dist",
    "README.md"
  ],
  "exports": {
    ".": {
      "react-native": {
        "import": {
          "types": "./dist/index.native.d.mts",
          "default": "./dist/index.native.mjs"
        },
        "require": {
          "types": "./dist/index.native.d.cts",
          "default": "./dist/index.native.cjs"
        }
      },
      "import": {
        "types": "./dist/index.d.mts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    }
  },
  "react-native": "./dist/index.native.cjs",
  "scripts": {
    "test": "vitest run --passWithNoTests",
    "build": "tsdown",
    "watch": "tsdown --watch",
    "typecheck": "tsc --noEmit && tsc -p tsconfig.native.json --noEmit",
    "lint:check": "eslint ./src",
    "lint:fix": "eslint ./src --fix",
    "format:fix": "prettier --write ./src",
    "format:check": "prettier --check ./src",
    "check:publint": "publint",
    "check:attw": "attw --pack .",
    "prepare": "pnpm run build",
    "prepublishOnly": "pnpm run check:publint && pnpm run check:attw",
    "ci": "pnpm run lint:check && pnpm run format:check && pnpm run test && tsc -p tsconfig.test.json --noEmit && tsc -p tsconfig.native.json --noEmit"
  },
  "keywords": [
    "openui",
    "generative-ui",
    "react",
    "llm",
    "streaming",
    "renderer",
    "parser",
    "ai",
    "components",
    "prompt-generation",
    "zod",
    "ui-generation",
    "model-driven-ui",
    "openui-lang"
  ],
  "homepage": "https://openui.com",
  "repository": {
    "type": "git",
    "url": "https://github.com/thesysdev/openui.git",
    "directory": "packages/react-lang"
  },
  "bugs": {
    "url": "https://github.com/thesysdev/openui/issues"
  },
  "author": "[email protected]",
  "dependencies": {
    "@openuidev/devtools": "workspace:^",
    "@openuidev/lang-core": "workspace:^",
    "@openuidev/observability": "workspace:^"
  },
  "peerDependencies": {
    "@modelcontextprotocol/sdk": ">=1.0.0",
    "react": "*",
    "react-dom": "*",
    "react-native": "*",
    "zod": "catalog:"
  },
  "peerDependenciesMeta": {
    "@modelcontextprotocol/sdk": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "react-native": {
      "optional": true
    }
  },
  "devDependencies": {
    "@modelcontextprotocol/sdk": "^1.27.1",
    "@types/node": "catalog:",
    "@types/react": "catalog:",
    "@types/react-dom": "catalog:",
    "jsdom": "catalog:",
    "react-dom": "catalog:",
    "react-native": "0.83.10",
    "vitest": "^4.0.18"
  }
}