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

ngx-hex-editor

v0.0.5

Published

[![npm version](https://img.shields.io/npm/v/ngx-hex-editor)](https://www.npmjs.com/package/ngx-hex-editor) [![License](https://img.shields.io/npm/l/ngx-hex-editor)](./LICENSE)

Readme

Ngx Hex Editor

npm version
License

A simple and lightweight Hex Editor component for Angular applications. This library allows you to display and edit binary data efficiently, with features such as editable hex values and UTF8 visualization.


Features

  • Hex and UTF8 Views: Displays data in both hexadecimal and UTF8 formats.
  • Editable Data: Supports modifying individual bytes interactively in place.
  • Insert/Delete: Press Insert to insert a new byte before the selected one, or Backspace/Delete to remove byte.
  • Pagination: Allows to efficiently edit big byte arrays.
  • Responsive: Works well across various screen sizes.

Installation

Install the package using npm or yarn:

npm install ngx-hex-editor

or

yarn add ngx-hex-editor

Usage

  1. Import the module in your Angular application:
// app.module.ts
import { NgModule } from "@angular/core";
import { BrowserModule } from "@angular/platform-browser";
import { HexEditorModule } from "ngx-hex-editor";

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, HexEditorModule],
  bootstrap: [AppComponent],
})
export class AppModule {}
  1. Use the component in your template:
<hex-editor [data]="data" (dataChange)="handleDataChange($event)"> </hex-editor>
  1. Bind data and handle events in your component:
import { Component } from "@angular/core";

@Component({
  selector: "app-root",
  templateUrl: "./app.component.html",
  styleUrls: ["./app.component.css"],
})
export class AppComponent {
  data = new Uint8Array([0x48, 0x65, 0x6c, 0x6c, 0x6f]);

  handleDataChange(newData: Uint8Array) {
    this.data = newData;
    console.log("Data updated:", this.data);
  }
}

Options

| Input | Type | Default | Description | | ------------- | ------------ | ------------------ | --------------------------------------------------------- | | data | Uint8Array | new Uint8Array() | Binary data to display/edit. | | readOnly | boolean | false | If true, editing is disabled. | | maxRows | number | 0 | Max amount of rows in the viewport. 0 means unlimited. | | maxColumns | number | 0 | Max amount of columns in the viewport. 0 means unlimited. | | showOffsets | boolean | true | Show global offset for each line (left panel). | | showUtf8 | boolean | true | Show UTF8 representation for each byte (right panel). |


Keyboard Shortcuts

| Shortcut | Description | |----------------------|---------------------------------------------------| | 0-9, a-f / A-F | Edit the selected byte. | | Insert | Insert a new byte (0x00) before the selected one. | | Backspace | Remove the previous byte. | | Delete | Remove the selected byte. | | Tab / Shift+Tab | Navigate between bytes. |


| Output | Type | Description | | ------------ | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | dataChange | EventEmitter<Uint8Array> | Emits updated data when changes occur. Note: if changes occur in already existing bytes, data is edited in place. If new bytes are appended, then a new Uint8Array is created and emitted. |


Development

To run the development subproject for testing and exploring the library:

  1. Clone the repository and install dependencies:

    npm install
  2. Run the development server:

    npm run dev

    The development application will be available at http://localhost:4200/. It provides a textarea for Base16 encoded data synced with the hex editor component.


Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.


License

Apache License