npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@itwin/reality-data-transfer

v1.1.0

Published

Utils to upload local data to context share

Downloads

48

Readme

@itwin/reality-data-transfer

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

Description

The @itwin/reality-data-transfer package contains a sdk to upload local data to ContextShare and download reality data. Doesn't work in a node environment.

Requirements

A registered application in the iTwin Platform is needed for using reality data transfer package. Documentation for registering an application can be found here. Make sure that your application has realitydata:read realitydata:modify scopes enabled.

To use the data transfer package, you will need to have an access to a project. If you don't have one already, contact one of your Organization Administrators or take some time to go through the following tutorial: Create a Project.

To build and run reality data transfer, you will need Node.js v22 (must be greater than 22.14.x).

Key Types and Methods

defaultProgressHook

Sample progress hook for upload and download

RealityDataTransferBrowser

  • setUploadHook : Set the upload progress hook
  • setDownloadHook : Set the download progress hook
  • getScopes : get the required scopes to use this client.
  • downloadRealityDataBrowser : download reality data from ProjectWise ContextShare
  • uploadRealityDataBrowser : upload reality data to ProjectWise ContextShare

ReferenceTableBrowser

Stores the local path and cloud id of each uploaded data. When uploading a new reality data such as context scene, it might contains local paths, which doesn't mean anything in the cloud. The reference table will check for any local path in the context scene and replace it with the corresponding cloud id.

  • save : open a file picker and save references as txt file
  • load : load references from selected file. Open a file picker to select the reference file
  • addReference : add a new entry in the reference table
  • removeReference : remove entry from the reference table
  • hasLocalPath : check if the provided local path exists in the reference table
  • hasCloudId : check if the provided cloud id exists in the reference table
  • getCloudIdFromLocalPath : get a reality data id from a local path
  • getLocalPathFromCloudId : get a local path from a reality data id

Usage example

An example is available to show how to upload local data and download reality data. See Reality Reality data example