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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@meanmail/devshift

v1.0.88

Published

Tool for building DevShift extensions for JetBrains IDEs

Downloads

225

Readme

DevShift Plugin Builder

A tool for building DevShift extensions for JetBrains IDEs.

Installation

npm install -g @meanmail/devshift

Or use it directly with npx:

npx @meanmail/devshift build <source-path> <output-path>

Usage

  1. Create a directory for your extension with the following files:

    • extension.json: Contains metadata about your extension
    • extension.ts: Contains the code for your extension (will be compiled to extension.mjs)
  2. Run the builder:

@meanmail/devshift build <source-path> <output-path>

Where:

  • <source-path> is the path to the directory containing your extension files
  • <output-path> is the path where the plugin will be generated

Extension Structure

extension.json

The extension.json file contains metadata about your extension:

{
  "id": "com.example.myplugin",
  "name": "My Plugin",
  "version": "1.0.0",
  "description": "A description of my plugin",
  "author": "Your Name",
  "license": "MIT",
  "url": "https://example.com"
}

Required fields:

  • id: Unique identifier for the plugin
  • name: Display name of the plugin
  • version: Version of the plugin
  • description: Short description of the plugin
  • author: Author of the plugin
  • license: License of the plugin

Optional fields:

  • url: URL for the plugin

extension.ts and extension.mjs

The extension.ts file contains the code for your extension, which will be compiled to extension.mjs. It should export two functions:

// ES module syntax - no need to import 'ide' as it's available in the global scope

export function activate() {
  // Called when the plugin is activated
  ide.showMessage('Hello!', 'Hello from the extension!')
}

export function deactivate() {
  // Called when the plugin is deactivated
  ide.showMessage('Goodbye!', 'Goodbye from the extension!')
}

IDE API

The following API is available to your extension through the global ide object:

showMessage(title: string, message: string): void

Shows an information message to the user.

  • title: The title of the message
  • message: The content of the message

Example:

ide.showMessage('Hello!', 'Hello from the extension!')

Building the Plugin

After running the builder, you'll get a directory structure that can be built using Gradle:

cd <output-path>/<plugin-name>
./gradlew buildPlugin

The built plugin will be available in the build/distributions directory.

Type Definitions

Type definitions for the IDE API are included in the package. To use them in your TypeScript project, add a reference to the types:

/// <reference path="node_modules/@meanmail/devshift/dist/types/ide-api.d.ts" />

Or import them directly:

import '@meanmail/devshift/dist/types/ide-api';

Development Tools

Type Checking

The project includes TypeScript for static type checking. You can run type checking without compiling the code using:

npm run type-check

This will help catch type errors before runtime.

Linting

ESLint is configured for code quality and consistency. You can run the linter using:

npm run lint

To automatically fix linting issues:

npm run lint:fix

The linting rules are configured in .eslintrc.js and include TypeScript-specific rules to ensure code quality.