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

simai-sharp

v1.0.0

Published

TypeScript port of SimaiSharp - A parser and serializer for simai chart format used in maimai rhythm games

Readme

Simai-Sharp TypeScript

TypeScript port of SimaiSharp - A parser and serializer for the simai chart format used in the maimai

Current Status

✅ Production Ready (v1.0.0) - 100% Complete

  • Lexical Analysis: Tokenizer fully functional
  • Syntactic Analysis: Complete parser with all state readers
  • Serializer: Basic implementation working
  • File I/O: SimaiFile class for .txt/.maidata files
  • Data Structures: All enums and classes converted
  • Error Handling: Full exception system

Features

import { SimaiConvert, SimaiFile } from 'simai-sharp';

// Read from maidata file
const file = new SimaiFile('chart.txt');
console.log(file.getValue('title')); // Get metadata
const chartData = file.getValue('inote_1'); // Get chart

// Parse simai chart
const chart = SimaiConvert.deserialize(chartData);
console.log(chart.noteCollections.length);
console.log(chart.timingChanges[0].tempo);

// Serialize back
const simai = SimaiConvert.serialize(chart);

Test Coverage (38 tests)

  • SimaiFile (12 tests): File I/O, key-value parsing, UTF-8 support
  • SimaiChart (7 tests): Basic parsing, tempo, holds, slides, touch notes
  • Extended Tests (19 tests): Complex charts, decorators, round-trip serialization

Installation

npm install simai-sharp
# or
bun add simai-sharp

Development

# Install dependencies
bun install

# Build
bun run build

# Run tests
bun run test

# Run examples
bun run examples/test-parser.ts

Basic Usage (Planned)


// Deserialize a simai chart string
const chart = SimaiConvert.deserialize('1,2,3,4');

// Serialize back to string
const simaiText = SimaiConvert.serialize(chart);

Current API

While full parsing is being implemented, you can use the tokenizer and type definitions:

import { Tokenizer, Location, NoteGroup, NoteType } from 'simai-sharp';

// Tokenize simai notation
const tokenizer = new Tokenizer('1,2,3,4');
for (const token of tokenizer.getTokens()) {
  console.log(token.type, token.lexeme);
}

// Create and manipulate chart structures
const location = new Location(0, NoteGroup.Tap);
console.log(location.toString()); // "1"

Project Structure

src/
├── structures/          # Data structures (Note, Location, MaiChart, etc.)
├── internal/
│   ├── errors       # Custom error classes
│   └── lexical-analysis/  # Tokenizer
├── SimaiConvert     # Main API (in progress)
└── index           # Main exports

About Simai Format

Simai is a text-based chart format for maimai charts. Learn more about the format at:

Original Project

This is a TypeScript port of SimaiSharp, originally written in C# for use in AstroDX.

License

MIT