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/fsh-language-server

v0.8.6

Published

Language support for FHIR Shorthand (FSH) with IntelliSense, validation, and documentation

Readme

FSH Language Server for VS Code

Language support for FHIR Shorthand (FSH) with IntelliSense, validation, and documentation.

This extension uses the FSH Language Server to provide language features.

Features

🎯 IntelliSense & Auto-completion

  • FHIR Resources: Auto-complete FHIR resource types (Patient, Observation, etc.)
  • Element Paths: Smart completion for resource elements with dot notation
  • FSH Keywords: Complete FSH entity types (Profile, Extension, Instance, etc.)
  • Context-Aware: Suggestions based on your current position in the file

✅ Validation & Diagnostics

  • Real-time Validation: Instant feedback on FSH syntax errors
  • FHIR Compliance: Validates against FHIR specifications
  • Package Name Validation: Ensures consistent package naming conventions
  • Configurable Severity: Adjust error/warning levels to your needs

📖 Documentation on Hover

  • Element Information: View FHIR element types, cardinality, and descriptions
  • ValueSet Bindings: See bound value sets and their strength
  • Quick Links: Direct links to FHIR documentation
  • Code System Info: Lookup code definitions from terminology servers

🔍 Navigation

  • Go to Definition: Jump to profile, extension, or instance definitions (F12)
  • Find References: Find all usages of a definition
  • Document Symbols: Outline view of all entities in your file
  • Workspace Symbols: Search across all FSH files in your project

🎨 Code Actions & Formatting

  • Auto-formatting: Format FSH files with consistent style
  • Quick Fixes: Suggested fixes for common issues
  • Rename Refactoring: Safely rename entities across files

Getting Started

  1. Install the Extension

    • Search for "FSH Language Server" in VS Code Extensions
    • Click Install
  2. Open a FSH Project

    • Open a folder containing .fsh files
    • The extension activates automatically
  3. Configure Settings (Optional)

    • Open Settings (Ctrl+,)
    • Search for "FSH"
    • Customize to your preferences

Configuration

Validation

{
  "fsh.validation.enabled": true,
  "fsh.fhirVersion": "4.0.1"
}

Hover & IntelliSense

{
  "fsh.hover.showElementInfo": true,
  "fsh.hover.showDocumentationLinks": true,
  "fsh.completion.enabled": true
}

Formatting

{
  "fsh.format.indentSize": 2,
  "fsh.format.maxLineLength": 120,
  "fsh.format.alignCaretPaths": false
}

Terminology Servers

{
  "fsh.terminology.servers": [
    "https://tx.fhir.org/r4"
  ],
  "fsh.terminology.enableCache": true
}

Package Naming

{
  "fsh.packageName.prefix": "au.csiro",
  "fsh.packageName.severity": "warning"
}

Commands

  • FSH: Restart Language Server - Restart the language server
  • FSH: Show Output Channel - View language server logs
  • FSH: Open Documentation - Open FSH specification

Access commands via Command Palette (Ctrl+Shift+P)

Keyboard Shortcuts

  • F12 - Go to Definition
  • Shift+F12 - Find References
  • F2 - Rename Symbol
  • Ctrl+Space - Trigger Completion
  • Ctrl+Shift+O - Go to Symbol in File

Troubleshooting

Language Server Not Starting

  1. Check the Output panel: View → Output → "FSH Language Server"
  2. Try restarting: Command Palette → "FSH: Restart Language Server"
  3. Reload VS Code: Command Palette → "Developer: Reload Window"

No Auto-completion

  • Ensure fsh.completion.enabled is true
  • Check that your file has .fsh extension
  • Try triggering manually with Ctrl+Space

Validation Issues

  • Verify fsh.validation.enabled is true
  • Check fsh.fhirVersion matches your project
  • Review diagnostics in the Problems panel

Requirements

  • VS Code 1.75.0 or higher
  • Node.js 16.0.0 or higher (for development)

Development

Setup

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build: npm run build

Using GitLab NPM Registry

The extension depends on @aehrc/fsh-lsp from the GitLab NPM registry. For local development:

  1. Create a GitLab personal access token with read_api and read_registry scopes
  2. Add to ~/.npmrc:
@aehrc:registry=https://gitlab.com/api/v4/projects/79617133/packages/npm/
//gitlab.com/api/v4/projects/79617133/packages/npm/:_authToken=YOUR_TOKEN

Support

License

Apache-2.0

Credits

Developed by CSIRO's Australian e-Health Research Centre (AEHRC)