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

@willwade/aac-processors

v0.2.2

Published

A comprehensive TypeScript library for processing AAC (Augmentative and Alternative Communication) file formats with translation support

Readme

AACProcessors

A TypeScript library for reading, analyzing, translating, and converting AAC (Augmentative and Alternative Communication) file formats. The package ships as a dual build: a full Node.js entry and a browser-safe entry.

Install

npm install @willwade/aac-processors

Dual Build Targets

Node.js (default)

Full feature set, including filesystem access, SQLite-backed formats, and ZIP/encrypted formats.

import { getProcessor, SnapProcessor } from '@willwade/aac-processors';

const processor = getProcessor('board.sps');
const tree = await processor.loadIntoTree('board.sps');

const snap = new SnapProcessor();
const texts = await snap.extractTexts('board.sps');

Browser

Browser-safe entry that avoids Node-only dependencies. It expects Buffer, Uint8Array, or ArrayBuffer inputs rather than file paths.

SQLite-backed formats (Snap .sps/.spb and TouchChat .ce) require a WASM SQLite engine. Configure sql.js in your bundler before loading those formats:

import { configureSqlJs, SnapProcessor } from '@willwade/aac-processors/browser';

configureSqlJs({
  locateFile: (file) => new URL(`./${file}`, import.meta.url).toString(),
});

const snap = new SnapProcessor();
const tree = await snap.loadIntoTree(snapUint8Array);
import { GridsetProcessor } from '@willwade/aac-processors/browser';

const processor = new GridsetProcessor();
const tree = await processor.loadIntoTree(gridsetUint8Array);

Supported Formats

  • Snap/SPS (Tobii Dynavox)
  • Grid3/Gridset (Smartbox)
  • TouchChat (PRC-Saltillo)
  • OBF/OBZ (Open Board Format)
  • OPML
  • DOT (Graphviz)
  • Apple Panels (macOS plist)
  • Asterics Grid
  • Excel export

Wrangle strings workflow

All processors implement processTexts() to get all strings eg

import { DotProcessor } from '@willwade/aac-processors';

const processor = new DotProcessor();
const texts = await processor.extractTexts('board.dot');

const translations = new Map([
  ['Hello', 'Hola'],
  ['Food', 'Comida'],
]);

await processor.processTexts('board.dot', translations, 'board-es.dot');

NB: Please use https://aactools.co.uk for a far more comphrensive translation logic - where we do far far more than this...

Documentation

  • API reference (TypeDoc): https://willwade.github.io/AACProcessors-nodejs/
  • Metrics guide: src/utilities/analytics/docs/AAC_METRICS_GUIDE.md
  • Vocabulary analysis guide: src/utilities/analytics/docs/VOCABULARY_ANALYSIS_GUIDE.md

Examples and Scripts

  • Code examples: examples/
  • Utility scripts and workflows: scripts/ (see scripts/README.md)

Build, Lint, Test

npm run build:all
npm run lint
npm test

Electron Note

better-sqlite3 is a native dependency. For Electron, rebuild it against the Electron runtime:

npx electron-rebuild