
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@chopsui/log-viewer
Advanced tools
A component library that provides UI to display and handle logs. It was built using ReactJS, MUI, and Virtusoo.
Install the required dependencies:
npm install react react-dom @mui/material @emotion/react @emotion/styled
Install via npm:
npm install @chopsui/log-viewer
Note: Ensure that @chopsui packages are allowlisted in Skia NPM registry for your project.
There are two methods to locally test the component:
Testing the component with Storebook.
Testing the component's integration with your project.
You can build log-viewer's components and see how look and act in isolation using Storybook.
An example of this works is included under src/base_component/base_component.stories.tsx.
In order to integrate the component with your project we will use npm-link. NPM-link creates a symbolic link for the project in the global NPM repository.
Set up local development:
At the top directory of log-viewer run:
npm link
This will create a link to your local npm library copy in your global node_modules.
Then at your UI project's top directory run:
npm link @chopsui/log-viewer
Ensure that your jest config in your project has the following config:
moduleDirectories: ['<rootDir>/node_modules', 'node_modules']
This ensures that the library can work with local development environments and jest.
This will use the linked version of the log-viewer from your global npm_modules.
Clean up after local development:
Only run this after you have finished your work and after publishing the changes to npm registry.
Update the version of @chopsui/log-viewer in your package.json
to the one you have published.
At your project's top directory run:
npm ci @chopsui/log-viewer
This will install the version you just published and undo the linking.
This will not remove the link we created in the global node_modules,
which allows us to reuse this link later, rather this will only remove
it from the project.
If you want to delete the global link as well, run this in the top
directory of log-viewer:
npm unlink -g
If you are not yet ready to use the published version, you can skip step 2 and just run step 3, which reset the version to the one you had before linking.
Alternatively, you can utilize npm local paths to test local changes against your project.
e.g. directly install the library in your project's top level directory:
npm install -S /usr/local/google/home/$USER/cr/infra/crdx/packages/log-viewer
All components must be extracted in the top directory, except for sub components.
All folders must include an index.ts files that exposes the components and files that
will be exposed as an external API.
Ensure that your changes are backwards compatible and ideally also forward compatible, if a breaking change has to be introduced, then discuss this with the other team.
Versioning: a. Use PATCH versions for bugfixes and security updates. b. use MINOR versions for new components or features.
After making your changes and before subtmitting the CL, you must run this command to ensure the version is updated in the same CL:
npm run versionPatch # for patch updates
npm run versionMinor # for minor updates
Only publish the package after you have submitted your changes CL changes.
After versioning your package run:
npm publish
FAQs
React and MUI based log data viewer.
We found that @chopsui/log-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.