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

@noldova/code.editor.angular

v0.0.6

Published

The code editor's views in Angular: the code view with its decorations, folds and inserted rows, the find bar and the diff view, styled only with the kit's tokens.

Readme

@noldova/code.editor.angular

The code editor's views in Angular: CodeEditorComponent, the noldova-code-editor code view, and CodeTextComponent, a read-only code block. Every edit, undo step, caret move and search goes through @noldova/code.editor's core; the views render the lines in view and send input to it. Each view takes a language, an id in the app's CodeEditorRegistries or a definition, and makes its tokenizer through the app's highlighters with LanguageTokenizer, showing the text plain until the tokenizer is ready. The code view takes layers of decorations, CodeDecorations or any ICodeDecorations, each with line backgrounds, character ranges, gutter markers, inserted rows (CodeBar, CodeSpacer, CodeEmbeddedLines) and an optional second numbering; a later layer paints over an earlier one. It also takes CodeFolds, which collapse to one row and keep a gutter toggle when expanded, and tells its owner of a toggle by foldToggle and of a bar's action by barAction. @noldova/code.editor.diff.angular's diff view is built on that API, and @noldova/code.editor.merge.angular's merge view too. They are styled only with the interface kit's tokens, so the page that shows them loads the kit's kit.css and theme.css, as the tests' page does. The code view's element takes seven custom properties, each with the kit's value when unset: --nol-code-editor-font-size and --nol-code-editor-line-height for its text, --nol-code-editor-gutter-width for the gutter's least width and --nol-code-editor-gutter-end for the space after its numbers, --nol-code-editor-signs set to none to hide the gutter's signs, --nol-code-editor-inset for the space before the text, and --nol-code-editor-block-inset, which only a text-only view reads; the merge view sets the first six on its panes. A text-only view, noldova-code-text among them, insets its text inside its scroller by --nol-code-editor-inset on both sides and by --nol-code-editor-block-inset above and below, each 0 when unset. WorkerRunner runs any package's background jobs in a web worker whose script serves them through the core's WorkerJobHost, importing no Angular, and runs a job the worker doesn't serve, or every job once the worker fails, on its fallback runner; KeyScope, which shares one key dispatcher between a view and the code views inside it, LanguageTokenizer, LineIndex and BackgroundTicker are the helpers other view packages build on.

documents/ARCHITECTURE.md says how the views are built.