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

@flipletters/flipcode

v0.1.2

Published

Parser and serializer for flipcode — the FlipLetters split-flap board language. Zero dependencies.

Readme

@flipletters/flipcode

Parser and serializer for flipcode — the FlipLetters split-flap board language. Zero dependencies, runs in Node and the browser.

flipcode is a small file format (think Markdown or LaTeX, not a general programming language): a split-flap / flip-dot video template as a short text document. Its vocabulary is exactly what a physical flap board can do — boards, slides, flip choreography, holds, click sounds — nothing more. A document is a board file (.flip); the written rules are the flipcode spec, v1.

flipletters v1
board: trainboard 8x34
output: 1920x1080 30fps
title: DEPARTURES
accent: #ffb63d
sound: solari volume 0.8

--- slide 1
hold: 12s
flip: cascadeRows 11/s jitter 0.2 stagger 0.4
| TIME  DESTINATION     STATUS  TRK
| 10:25 LOS ANGELES     ON TIME  B4

Usage

import {
  parseFlipcode,
  serializeProject,
  encodeFlipcodeForUrl,
  projectFromUrlParams,
} from "@flipletters/flipcode";

// text → project (forgiving: aliases, percents, clamping with warnings)
const { project, warnings } = parseFlipcode(code);

// project → canonical text
const code2 = serializeProject(project);

// build a share link that opens the board in the FlipLetters Studio
const url = `https://app.flipletters.com/#code=${encodeFlipcodeForUrl(code2)}`;

// resolve a readable template URL (?board=station&title=BRUNCH&slide=A|B)
const loaded = projectFromUrlParams(new URLSearchParams(location.search), project);

The parser never hard-errors on messy input — unknown directives and out-of-range values are normalized and reported in warnings; only empty input throws. That is a spec rule: v1 parsers must ignore unknown vocabulary so documents written for newer versions degrade gracefully.

Rendering a parsed project as an MP4 (flap physics, materials, synthesized click sounds) is the FlipLetters Studio; this package is the open text layer so scripts, bots, and LLM pipelines can read and write boards.

Repository layout

  • SPEC.md — the flipcode spec, v1
  • src/index.ts — the reference parser + serializer
  • examples/ — real board files (.flip) that open in the Studio via its </> Code panel
  • npm test — spec conformance tests (Node 22+)

Publishing (maintainers)

This directory is the complete public repo. From a fresh clone of the monorepo:

cd packages/flipcode
git init -b main && git add -A && git commit -m "flipcode spec + reference parser"
git remote add origin https://github.com/<owner>/flipcode.git
git push -u origin main
npm publish --access public   # claims the @flipletters npm scope on first publish

The FlipLetters app keeps an engine-integrated copy of this parser; its test suite (npm run test:flipcode) includes a parity check against this package, so the two cannot drift silently.

License

MIT