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 🙏

© 2024 – Pkg Stats / Ryan Hefner

wglmolview

v0.1.1

Published

Simple WebGL Molecule Viewer

Downloads

185

Readme

WebGL MolView

Written and maintained by Eric Mulvihill ([email protected])

What it is?

It is an open source ECMAScript 5 + WebGL compatible PDB viewer. Just insert into your web page, point it to a PDB file and it will display it in glorious 3 dimensions.

  • written in Typescript 2.X and utilizes the wonderful three.js 3D support library written by MrDoob.

  • supports interactions such as:

    • zooming/rotating
    • Selecting atoms for identification
    • Selecting multiple atoms for calculating distance, bond angle or torsion angle.
  • Licensed under Apache license which was chosen for friendliness to most personal and commercial applications. (giving back improvements is always appreciated though)

What it isn't:

  • A full organic PDB molecule viewer. No support for sheets, residues, substructures and all that other advanced chemistry stuff I don't even know anything about.
  • Compatible with browsers that don't support WebGL (Internet Explorer and old versions of Safari & Firefox)

What it could be with your help:

  • A more-full featured viewer. More color modes, possibly supporting some protein structures, maybe PDB animations?
  • A better tool for e-learning. I'd like to add support for querying the state of selections, for entering answers in web quizzes.

How to use it

  • Prerequisites: NPM 10.8.0 or greater
  • Clone the Git project to a local directory
  • Build and run as follows:
    • cd into project root
    • npm install
    • npm run build
    • npm run start
    • View at: http://localhost:8080 (change the port in package.json's start script, if needed)
  • Run unit tests using: npm run test

What's included

  • /spec - tests
  • /src/src/main.ts - stub code to get a web page to display a molecule. Your application would replicate this stub code in some way.
  • /src/src/molview - All WGLMolView source
  • /src/three/OrbitControls - A more advanced mouse navigation for spinning the molecules
  • /src/pdb - example PDB files
  • /www - front end content to be displayed in browser

Step-by-Step Guide

Step 1: 🚀 Initial Setup

  • Clone the repository: git clone https://[email protected]/ericmulvihill/wglmolview.git
  • Navigate: cd wglmolview
  • Install dependencies: npm ci

Step 2: 🏃‍♂️ Running the Project

  • Development Mode: npm run dev
  • Building: npm run build
  • Starting: npm run start