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

@aehrc/ecl-editor-core

v1.1.2

Published

Headless ECL editor integration for Monaco and CodeMirror

Readme

@aehrc/ecl-editor-core

Headless ECL editor integration for Monaco Editor — syntax registration, diagnostics engine, completion, hover, formatting, and FHIR terminology support.

Built on ecl-core.

Install

npm install @aehrc/ecl-editor-core

Peer dependency: monaco-editor >= 0.40.0

Quick Start

import * as monaco from 'monaco-editor';
import { registerEclLanguage } from '@aehrc/ecl-editor-core';

const disposable = registerEclLanguage(monaco, {
  fhirServerUrl: 'https://tx.ontoserver.csiro.au/fhir',
  semanticValidation: true,
});

// Create an editor instance
const editor = monaco.editor.create(document.getElementById('editor'), {
  language: 'ecl',
  value: '<< 404684003 |Clinical finding|',
});

// Update config at runtime
disposable.updateConfig({ snomedVersion: 'http://snomed.info/sct/32506021000036107' });

// Clean up
disposable.dispose();

API

registerEclLanguage(monaco, config?)

Registers the ECL language with Monaco. Returns an EclEditorDisposable with dispose() and updateConfig() methods. Safe to call multiple times (idempotent).

EclEditorConfig

interface EclEditorConfig {
  fhirServerUrl?: string; // Default: 'https://tx.ontoserver.csiro.au/fhir'
  snomedVersion?: string; // SNOMED CT edition/version URI
  terminologyService?: ITerminologyService; // Custom service (bypasses fhirServerUrl)
  formattingOptions?: Partial<FormattingOptions>;
  semanticValidation?: boolean; // Default: true
  semanticDebounceMs?: number; // Default: 500
  corsProxy?: string; // Prepended to FHIR URLs for browser CORS
  onResolvedSnomedVersion?: (uri: string) => void;
}

DiagnosticsEngine

Framework-agnostic two-phase diagnostics engine. Immediate syntax errors + debounced FHIR-powered semantic validation.

registerToggleTermsAction(editor, monaco, getService)

Registers a "Toggle Display Terms" editor action bound to Shift+Alt+T. If any concept IDs lack display terms, looks them up via FHIR and inserts them; if all concepts already have terms, strips them. Returns a disposable.

import { registerToggleTermsAction } from '@aehrc/ecl-editor-core';

const disposable = registerToggleTermsAction(editor, monaco, () => registration.getTerminologyService());

ECL_LANGUAGE_ID

Language ID constant: "ecl".

CORS

When running in a browser, FHIR requests may be blocked by CORS. Use the corsProxy option to route requests through a proxy:

registerEclLanguage(monaco, {
  corsProxy: 'https://your-cors-proxy.example.com/',
});

License

Copyright 2026 Commonwealth Scientific and Industrial Research Organisation (CSIRO) ABN 41 687 119 230

Apache License 2.0 — see LICENSE.