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

dicoogle-client

v6.0.0

Published

Dicoogle client API for JavaScript applications

Readme

npm version Node.js CI Coverage Status

Dicoogle Client

This is a web service client API to Dicoogle, the open-source PACS archive, for use in JavaScript applications. This library is compatible with browser-based JavaScript and Node.js. A CLI application for searching medical images in Dicoogle is also included (dicoogle-query).

This library intends to be fully compatible with Dicoogle versions 2 and 3, and may be updated as future versions of Dicoogle are released.

Using the JavaScript API

The full API is documented here. Documentation was built from our TypeScript definitions, which are also available.

Quick Start

import dicoogleClient from "dicoogle-client";

// obtain a dicoogle access object
const Dicoogle = dicoogleClient("localhost:8080");

// if required, login to the system before using
await Dicoogle.login('admin', 'mysecretpassword');

// Ok! Start using Dicoogle!
let outcome = await Dicoogle.search("PatientName:Pinho^Eduardo", {provider: 'lucene'});
// use outcome
const {elapsedTime, results} = outcome;
for (const r of result) {
  console.log(`> ${r.uri}`);
}

Using the CLI client

Install this package globally (npm install -g dicoogle-client), then use dicoogle-query.

Usage: dicoogle-query [OPTIONS] QUERY

Options:

  • -h, --help : show this help
  • -k, --keyword : forcefully perform a keyword-based query
  • -F, --free-text : forcefully perform a free text query
  • -T, --tty : force terminal (TTY) output instead of minified JSON
  • -p, --provider <name> : include this query provider
  • -s, --server <url> : set the Dicoogle server's base endpoint
  • -D, --debug : output additional information

Environment variables:

  • DICOOGLE_USERNAME : The client's unique user name.
  • DICOOGLE_PASSWORD : The user's password.

Example: dicoogle-query -p lucene -s "http://demo.dicoogle.com" "Modality:MR"

License

Copyright (C) 2016 Universidade de Aveiro, DETI/IEETA, Bioinformatics Group - http://bioinformatics.ua.pt/ Copyright (C) 2026 Dicoogle Team - https://dicoogle.com

This software is part of Dicoogle.

Dicoogle/dicoogle-client-js is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Dicoogle/dicoogle-client-js is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Dicoogle. If not, see http://www.gnu.org/licenses/.