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

attic-viewer

v1.3.0

Published

Web-based robot model viewer supporting URDF, MJCF, and USD formats

Readme

screenshot


中文README


Attic Viewer

Version License Platform TypeScript Three.js Vite Demo

Attic Viewer is a web-based 3D viewer for robot models and scenes. Built on top of Three.js, it provides an intuitive interface for visualizing, editing, and simulating robots directly in the browser without any installation required.

Live Demo: http://viewer.osaerialrobot.top/

📝 This is a fork of fan-ziqi/robot_viewer, rewritten in TypeScript.

pre-release: https://atticlmr.github.io/attic_viewer/ support URDF2MJCF and MJCF2URDF, but need more feedback!

Key Features

  • Format Support: URDF, Xacro, MJCF, USD
  • Visualization: Visual/collision geometry, inertia tensors, center of mass, coordinate frames
  • Interactive Controls: Drag joints in real-time
  • Measurement Tools: Measure distances between joints and links
  • Code Editor: Built-in CodeMirror editor with syntax highlighting
  • Integrated Conversion Workflow: Convert between URDF and MJCF directly from the viewer
  • Export Packages: Export converted models as ZIP packages with bundled assets and mesh/ directory layout
  • Physics Simulation: Integrated MuJoCo runtime for MJCF models
  • Web Deployment: GitHub Pages workflow for automatic build and deployment on main

What's New in v1.3.0

  • Integrated the robot conversion workflow into the main viewer instead of keeping it as a standalone page
  • Added viewer export flow for URDF/MJCF with packaged assets in ZIP format
  • Normalized exported mesh assets into a dedicated mesh/ folder
  • Improved URDF <-> MJCF conversion fidelity, including better handling of multi-joint bodies, default classes, actuators, and constraint-related metadata
  • Fixed export behavior so converted downloads are packaged consistently for direct reuse
  • Added GitHub Actions deployment for automatic GitHub Pages publishing on main
  • Completed the current TypeScript cleanup pass across adapters, controllers, renderers, utilities, and tests

Getting Started

# Clone the repository
git clone https://github.com/Atticlmr/attic_viewer.git
cd attic_viewer

# Install dependencies
pnpm install

# Start development server
pnpm run dev

# Build for production
pnpm run build

# Run tests
pnpm test

# TypeScript type checking
pnpm typecheck

Development Commands

| Command | Description | |---------|-------------| | pnpm dev | Start development server | | pnpm build | Build for production | | pnpm preview | Preview production build | | pnpm test | Run unit tests | | pnpm test:watch | Run tests in watch mode | | pnpm test:coverage | Run tests with coverage | | pnpm typecheck | TypeScript type checking |

Project Structure

attic_viewer/
├── src/
│   ├── main.ts              # Application entry point
│   ├── app/
│   │   ├── App.ts           # Main application class
│   │   ├── AppState.ts      # Application state management
│   │   └── handlers/         # Event handlers
│   ├── adapters/             # Model format adapters (URDF, MJCF, USD, Xacro)
│   ├── controllers/          # Controllers (File, CodeEditor, Measurement)
│   ├── editor/              # Code editor (CodeMirror)
│   ├── loaders/             # Model loaders
│   ├── models/
│   │   └── UnifiedRobotModel.ts  # Unified robot model data interface
│   ├── renderer/            # Render managers (Scene, Visual, MuJoCo, etc.)
│   ├── ui/                  # UI components
│   ├── utils/               # Utilities
│   ├── views/               # View components (FileTree, ModelGraph)
│   └── test/                # Test setup
├── tsconfig.json            # TypeScript configuration
├── vitest.config.js         # Vitest configuration
└── vite.config.js           # Vite configuration

TypeScript Migration

This project has been migrated from JavaScript to TypeScript:

  • Status: TypeScript migration baseline completed for the current codebase
  • Build: Passing ✓
  • Type Check: Passing ✓
  • Tests: Passing (10 tests) ✓

Branches

  • main - Stable release branch (from original repo)
  • dev - Development branch with TypeScript rewrite

Contributing

We welcome contributions! Please read our contributing guidelines before submitting PRs.

License

Apache License 2.0 - see LICENSE file.

Open Source Attribution

This project is a TypeScript rewrite and derivative work based on fan-ziqi/robot_viewer. It also uses third-party open source software such as Three.js, Vite, CodeMirror, D3, urdf-loader, xacro-parser, and mujoco-js. See NOTICE for attribution details.