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

@orvium/orvium-tools

v1.1.2

Published

Set of tools to interact with Orvium API

Downloads

23

Readme

Orvium Tools

Orvium Tools is a command-line and programmatic toolkit for interacting with the Orvium API. It simplifies common workflows such as:

  • Importing deposits and manuscripts into Orvium communities.
  • Exporting deposits from Orvium as a zip file (metadata + manuscript files).
  • Retrieving user contribution summaries by ORCID.
  • Using all of the above either via CLI or inside your own Node.js applications.

Features

  • Import Deposits: Import a deposit with metadata and manuscript files into a target Orvium community.
  • Export Deposits: Export a deposit as a zip file containing meta.json and manuscript files.
  • User Contribution Summary: Retrieve a summary of a user’s contributions (deposits, reviews, communities) using their ORCID.
  • Programmatic Usage: Import, export, and retrieve summaries directly inside your Node.js workflows.

Table of Contents

Installation

You can install the Orvium Tools package globally or use it directly via npx. You can also install it locally in your project for programmatic usage.

Option 1: Run via npx (No Installation Required)

You can run Orvium Tools directly without installing it globally using npx:

Importing

npx  @orvium/orvium-tools-import <manuscriptPath> <community>
  • directory: The path to the folder that contains the deposit metadata and manuscript files (required).
  • community: The name of the Orvium community where the deposit should be uploaded (required).

Example

npx  orvium-tools-import  ./manuscripts/manuscript_1  Orvium

Exporting

npx  @orvium/orvium-tools-export <depositId> <directory>
  • depositId: Orvium deposit unique identifier (required).
  • directory: The path to the folder to download the zip file (required).

Example

npx  orvium-tools-export  34274234697423cdsf  /tmp

User Contribution Summary

npx orvium-tools-user-summary <orcid>
  • orcid: ORCID iD of the user (e.g., 0000-0002-1825-0097).

Example

npx orvium-tools-user-summary 0000-0002-1825-0097

Option 2: Install Globally

To install Orvium Tools globally on your machine:

npm  install  -g  @orvium/orvium-tools

Option 3: Install Locally for Programmatic Usage

To use Orvium Tools programmatically in your Node.js project, install it as a dependency:

npm  install  @orvium/orvium-tools  --save

Usage

CLI

Orvium Tools provides a simple CLI for managing deposits in Orvium.


# Import a deposit
orvium-tools-import ./manuscripts/my_deposit "Ethics Community"
# Export a deposit
orvium-tools-export 64a09f6ce3d5ff0813586345 ./downloads
# Get user contribution summary
orvium-tools-user-summary 0000-0002-1825-0097

Please make sure your PATH include the global NPM bin directory.

Programmatic Usage

You can also use Orvium Tools within your own Node.js applications.

Importing:

import { importDeposit } from "@orvium/orvium-tools";

const directoryPath = "/manuscript/manuscript_1";
const community = "Orvium";

importDeposit(directoryPath, community)
  .then(() => console.log("Deposit imported successfully"))
  .catch((err) => console.error("Error during deposit import:", err));

Exporting:

import { exportDeposit } from "@orvium/orvium-tools";

const depositId = "63214723845236xc631q3";
const directoryPath = "/tmp";

exportDeposit(depositId, directoryPath)
  .then(() => console.log("Deposit exported successfully"))
  .catch((err) => console.error("Error during deposit export:", err));

User Summary

import { getUserSummary } from "@orvium/orvium-tools";

const orcid = "0000-0002-1825-0097";
const summary = await getUserSummary(orcid);
console.log("User contribution summary:", summary);

Example output

{
  "nickname": "jane-doe",
  "orcid": "https://orcid.org/0000-0002-1825-0097",
  "isOpensciVerified": true,
  "depositsSummaryPopulated": [
    {
      "title": "Open Access in Practice",
      "abstract": "This paper explores the implementation of open access...",
      "publicationType": "Research article",
      "accessRight": "open",
      "submissionDate": "2025-01-15",
      "status": "published",
      "reviewType": "open",
      "authors": [
        { "firstName": "Jane", "lastName": "Doe" },
        { "firstName": "John", "lastName": "Smith" }
      ],
      "keywords": ["Open Science", "Publishing"],
      "doi": "https://doi.org/10.1234/example",
      "url": "https://platform.orvium.io/deposits/64a09f6ce3d5ff0813586345/view"
    }
  ],
  "peerReviewsSummaryPopulated": [
    {
      "_id": "65b7a0a8ef2cde1d3f98a77f",
      "creator": "65b79fa3ef2cde1d3f98a12c",
      "status": "published",
      "kind": "peer review",
      "decision": "accepted",
      "showIdentityToAuthor": true,
      "showIdentityToEveryone": false
    }
  ],
  "communitiesSummaryPopulated": [
    {
      "name": "Ethics, Privacy, and Legal Issues",
      "description": "A community focused on ethical and legal aspects of science.",
      "country": "Spain",
      "type": "community",
      "subscription": "free",
      "membershipType": "open",
      "logoURL": "https://assets.example.com/community/logo.png"
    }
  ]
}

Environment Variables

To connect to the Orvium platform, Orvium Tools requires some environment variables to be set. These variables are typically loaded from a .env file located in your project root.

Example .env file:


API_KEY=your-api-key-here
API_KEY_USER=your-api-key-user-here
API_URL=https://your-orvium-api-url-here

Make sure to replace the placeholders with actual values for your Orvium environment.

Development

If you want to contribute to the development of Orvium Tools or add your own features, follow these steps to get started:

1. Clone the repository:

git  clone  https://github.com/orvium/orvium-tools.git
cd  orvium-tools

2. Install dependencies:

npm  install

3. Build the project:

npm  run  build

4. Test locally:

You can test the tool locally using npm link to create a symlink to your local package:

npm  link
orvium-tools-import  ./manuscripts/manuscript_1  Orvium

5. Run in development mode:

To run the TypeScript files directly (without building):

npx  ts-node  src/import-deposit-cli.ts  ./manuscripts/manuscript_1  Orvium

License

This project is licensed under the MIT License. See the LICENSE file for details.