Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By hughescrIn 1 marketplace
TypeScript-specific development tools - type checking, strict mode, TSDoc, and a language server that follows the project's own TypeScript version
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
TypeScript-specific development tools for Claude Code.
tsc or tsrs with individual file arguments (both ignore the project's tsconfig.json when given files, so they need full project context). tsrs-lint and path-qualified invocations such as ./node_modules/.bin/tsc are not matched. It is a hooks module (hooks/register.ts, with the logic in hooks/guard.ts), declared under modules in hooks/hooks.json. A mod loads only while Claude Code's hooks-modules feature flag is on, so the guard is absent in a process where the flag is off. This plugin loads only in sessions started through claude-smart.sh. See my-plugins/MODS-ACTIVATION.md.The plugin declares one LSP server for .ts .tsx .mts .cts .js .jsx .mjs .cjs (lspServers in .claude-plugin/plugin.json). Its command is ${CLAUDE_PLUGIN_ROOT}/bin/ts-lsp, a POSIX sh launcher that picks the server that matches the project's TypeScript and execs it over stdio. Claude Code expands ${CLAUDE_PLUGIN_ROOT} in an LSP server's command, args, env and workspaceFolder (plugins manifest reference, "Environment variables"). The command may contain no spaces unless it starts with /, which the expanded value does.
This replaces the official typescript-lsp plugin, which hardcodes typescript-language-server --stdio and starts nothing when that binary is not installed.
The workspace is $CLAUDE_PROJECT_DIR, else the process cwd.
What the project declares decides; node_modules only supplies the binary for what is declared. The nearest ancestor package.json that declares a relevant dependency (typescript, an npm alias of typescript, @typescript/native-preview or tsrs, in dependencies, devDependencies, peerDependencies or optionalDependencies) decides, so a monorepo root that declares TypeScript decides for its sub-packages. The declared package is found the way Node finds it: the nearest node_modules, from that package.json's directory upward, that has it, so a hoisted root install works. A binary in node_modules that no package.json declares (a stale tsgo dev build, say) is never used. The first rule that applies wins:
| # | Project declares | Server run | Kind |
|---|---|---|---|
| 1 | tsrs | node_modules/.bin/tsrs --lsp --stdio | tsrs-project |
| 2 | TypeScript 7+: typescript with a range whose major is >= 7 (dist-tags such as latest count as 7), or any dependency that is an npm alias of typescript 7+ ("@typescript/native": "npm:[email protected]") | that package's own bin/tsc --lsp --stdio (node_modules/NAME/bin/tsc; plain typescript falls back to .bin/tsc); the installed package.json must report major >= 7 | tsc7-project |
| 3 | @typescript/native-preview | node_modules/.bin/tsgo --lsp --stdio | tsgo-project |
| 4 | only typescript < 7 (directly or via an alias) | typescript-language-server --stdio, from the project's node_modules/.bin if present, else from PATH (it finds the workspace's own typescript; without one it exits with "Could not find a valid TypeScript installation"). This helper need not be declared: it is tooling, not the compiler | tsls-project, tsls-path |
Rule 2 beats a co-declared typescript < 7: a project that keeps "typescript": "^6.0.3" for tools that import the JS API next to "@typescript/native": "npm:[email protected]" gets TypeScript 7's server, because that is what it type-checks with. A range with no readable major (catalog:, workspace:*) takes the major of the installed version.
If the declared choice is not installed (no node_modules, the binary is absent, or the installed version is not 7+), the result is matched=no with a hint to install the project's dependencies, and the fallback applies; the launcher does not drop to a lower rule. If no package.json up the tree declares anything relevant, want=unknown and the fallback applies. --explain says which package.json and which declaration decided, and mentions an undeclared tsrs or tsgo it ignored.
Fallback (the project lacks what its server needs): tsrs on PATH (kind tsrs-path), then tsc >= 7 on PATH (tsc7-path), then tsgo on PATH (tsgo-path). If none works, the launcher exits 3 with one stderr line and the kind is none.
TypeScript 7 (the Go-native compiler) ships its language server in tsc itself: tsc --lsp --stdio. tsrs (the experimental Rust port, npm tsrs) ships one too, with the same flags: tsrs --lsp --stdio (its own docs write -stdio; both spellings work).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub hughescr/claude-code-config --plugin typescriptPlugins from other owners that cover similar ground