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

tornadofold-wasm

v0.0.3

Published

Fast RNA minimum free energy secondary structure prediction

Readme

ToRNAdoFold

Fast RNA secondary-structure prediction by minimum free energy using the Turner 2004 nearest-neighbour model (Mathews et al., 2004), with dangling ends scored on both sides of every helix.

SIMD-accelerated and header-only C++11 library. Runs on the command line, as a library, or in the browser.

  • Exact Turner 2004 nearest-neighbour model in exact integer arithmetic.
  • Fast SIMD-accelerated folding (ARM NEON, x86 SSE2/AVX2/AVX-512, WebAssembly SIMD) with OpenMP batch mode.
  • Portable header-only C++11, no dependencies; embed via CMake.
  • In the browser interactive WebAssembly folding and visualization.

Command line

make
# prints sequence, structure, and MFE
echo GGGGAAAACCCC | ./tornadofold
# FASTA, or one sequence per line
./tornadofold < sequences.fa

Fold a batch in parallel:

make tornadofold_omp
OMP_NUM_THREADS=8 ./tornadofold_omp < sequences.fa

As a library

add_subdirectory(path/to/lib EXCLUDE_FROM_ALL)
target_link_libraries(myapp PRIVATE tornadofold::tornadofold)
#include "tornadofold.h"

tornadofold::TornadoFold f;
// minimum free energy, in 0.01 kcal/mol
int mfe = f.fold("GGGGAAAACCCC");
// dot-bracket
std::string structure = f.traceback(mfe);

In the browser

npm install tornadofold-wasm
import { fold } from "tornadofold-wasm";

// structure is dot-bracket, one character per base; mfe is in kcal/mol
const { structure, mfe } = await fold("GGGCUAUUAGCUCAGUUGGUUAGAGCGCACCC");

T is read as U, whitespace is removed and any other character is treated as unknown (N), therefore positions in structure line up with the input.

To run the demo page locally:

make wasm
python3 -m http.server -d web
# open http://localhost:8000

Paste a sequence to fold and view its structure, or upload a FASTA to fold in parallel across web workers.

Benchmark

ArchiveII (3966 reference structures; Sloma & Mathews, 2016) against RNAfold (Lorenz et al., 2011) 2.7.2 -d2, on an NVIDIA DGX Spark (20-core ARM CPU):

| tool | 1 thread | 20 threads | sensitivity | PPV | F1 | F1 (macro) | |-------------|---------:|-----------:|------------:|------:|------:|-----------:| | ToRNAdoFold | 41.5 s | 3.3 s | 0.577 | 0.506 | 0.539 | 0.577 | | RNAfold | 112.3 s | 9.4 s | 0.576 | 0.506 | 0.539 | 0.577 |