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

coherent-language-support

v1.0.0

Published

IntelliSense, validation, and snippets for Coherent.js

Readme

Coherent.js Language Support

IntelliSense, validation, and snippets for Coherent.js - a high-performance server-side rendering framework built on pure JavaScript objects.

Features

IntelliSense & Autocomplete

  • Attribute completion - Get suggestions for valid HTML attributes when typing in Coherent.js objects
  • Event handler completion - Autocomplete for onClick, onChange, onSubmit, and other event handlers
  • Context-aware suggestions - Suggestions based on the element type (div, input, form, etc.)

Validation & Diagnostics

  • Invalid attribute warnings - Highlights attributes that are not valid for the element type
  • Nesting validation - Warns about invalid HTML nesting (e.g., <p> inside <p>)
  • Typo detection - Suggests fixes for common typos like classname instead of className

Code Snippets

Quick snippets for common Coherent.js patterns:

| Prefix | Description | |--------|-------------| | cel | Create a Coherent.js element | | ccomp | Create a functional component | | ctext | Text element with text property | | clink | Anchor element | | cimg | Image element | | cinput | Input element with type choices | | cbtn | Button element | | cform | Form element | | clist | List with mapped items | | cif | Conditional rendering | | cevent | Event handler property | | cdata | Data attribute | | cpage | Full page layout | | ccard | Card component structure | | ctable | Table with header and body | | cimport | Import Coherent.js functions | | cserver | Basic server setup |

Hover Information

Hover over attributes to see their type information and valid values.

Installation

From VS Code Marketplace

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "Coherent.js Language Support"
  4. Click Install

From VSIX

  1. Download the .vsix file from releases
  2. Run: code --install-extension coherent-language-support-1.0.0.vsix

Usage

The extension activates automatically for JavaScript and TypeScript files. Simply start writing Coherent.js components:

// Type 'cel' and press Tab for a quick element
{ div: {
    className: 'container',
    children: [
        // Type 'ctext' for text elements
        { p: { text: 'Hello, Coherent.js!' } }
    ]
}}

Configuration

Configure the extension in VS Code settings:

{
  "coherent.trace.server": "off" // "off" | "messages" | "verbose"
}

Requirements

  • VS Code 1.85.0 or higher
  • Working with JavaScript or TypeScript files

Extension Settings

| Setting | Default | Description | |---------|---------|-------------| | coherent.trace.server | off | Traces communication between VS Code and the language server |

Known Issues

  • Language server features require the file to be saved at least once
  • Very large files (>10,000 lines) may experience slower validation

Contributing

This extension is part of the Coherent.js project. Contributions are welcome!

License

MIT