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

@fluixi/ts-plugin

v0.1.0-alpha.28

Published

gives html`` templates the editor support JSX already gets; a component used only as a tag is no longer reported as unused

Downloads

2,060

Readme

@fluixi/ts-plugin

A TypeScript language-service plugin that gives html`...` templates the same editor support JSX gets.

The problem

TypeScript sees a tagged template as an opaque string. Everything inside it falls off the map: a component referenced only by tag is reported "declared but never used", a callback param is an implicit any, nothing completes, hover says nothing, and go-to-definition lands on the template literal instead of the component.

function UserCard() { /* … */ }

const app = html`<main><UserCard /></main>`;
//                      ^ greyed out — TypeScript never counted this as a reference

Authoring in html `` shouldn't cost you the editor.

What you get

Reparse the template with @fluixi/template-parser, map every tag and hole back to a real source position, and ask the program's own checker about it:

  • Hover — a component tag shows its signature, a prop shows its declared type, an element attribute shows what it takes, and an inferred callback param (each, event, ref, use, Show) shows the type it was inferred to.
  • Completion — component prop names inside a tag, element attributes on an intrinsic tag, and members of an inferred param (it., el., e.).
  • Navigation — go-to-definition, find-all-references and rename work through tags. Rename only adds tags when TypeScript's own rename succeeded, so you never get a rewritten <Tag> with a stale </Tag>.
  • Diagnostics — a bare accessor in a template (html`<p>${count}</p>`) is flagged, since it renders the function once and never updates; a property that doesn't exist on an inferred param is reported.
  • Quiet where it should be — unused-component reports and implicit-any noise on params the template can infer are dropped.
  • Quick fixes — "Call count" for a bare accessor, with a fix-all for the file.

Enable it

Add it to your project's tsconfig.json and use the workspace TypeScript version (VS Code: TypeScript: Select TypeScript Version → Use Workspace Version — tsconfig plugins only load under the workspace TS):

{
  "compilerOptions": {
    "plugins": [{ "name": "@fluixi/ts-plugin" }]
  }
}

Nothing else. JSX needs no plugin, and neither do the $signal-style intrinsics — those are typed by the fluixi.d.ts the compiler generates.

How it stays out of the way

Everything is computed on the existing program's checker. The plugin creates no language service, adds no files, and never touches the host — it wraps the service it's handed, and every addition is wrapped so a failure costs the extra information, never the real answer.

That restraint is deliberate. Two earlier designs for deep type-checking inside ${…} holes both had to go: a second ts.LanguageService meant a second document registry, so lib.d.ts and node_modules were parsed twice; and shadow files added via getScriptFileNames re-entered host machinery on every project sync and crashed the language service outright. Hole diagnostics weren't worth either — a ${…} hole is a real expression, so TypeScript already checks it.

License

MIT