Skip to content

iTwin/scenes-client

Repository files navigation

Scenes

latest version CI CodeQL

About

This repository contains a TypeScript client for interacting with the Scenes API.

Getting started? Begin with the Scenes API Overview, then dive into Schema Docs for implementation details.

Documentation

Quick Start

pnpm install           # Install dependencies
pnpm run test:client   # Run tests
pnpm run build:client  # Build the package

Project Structure

scenes-client/
├── docs/                          # Scene documentation
│   ├── README.md                  # Schema guide with examples
│   └── schemas/                   # JSON schema definitions
├── packages/
│   └── scenes-client/             # Main client package
│       ├── src/                   # Source code
│       ├── tests/                 # Tests
│       └── README.md              # Usage docs
├── .changeset/                    # Versioning config
└── README.md

Development & Testing

Prerequisites

  • Node >=20 : Node installation also includes the npm package manager.
  • pnpm >=9: Package manager used for this repository. Install with npm install -g pnpm@9.

Top-level Commands

This is a pnpm workspace. All commands should be run from the repository root:

pnpm install                      # Install all dependencies
pnpm run build:client             # Build client
pnpm run test:client:unit         # Run client unit tests
pnpm run test:client:integration  # Run client integration tests
pnpm run lint:client              # Lint code
pnpm run typecheck:client         # Type check

Integration Test Setup

  1. Create an .env file in the scenes-client/tests folder based on .env.template
  2. Run tests using the commands above or use the Vitest extension in VS Code

Contributing

For information on how to contribute to this project, please see CONTRIBUTING.md.


Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.

About

Central repository for Scenes API client and schemas

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •