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

laikoi-dromoi

v0.1.2

Published

Greek Bouzouki music scale generator – Laikoi Dromoi. Comprehensive collection of Greek music scales (dromoi) with transposition utilities.

Downloads

8

Readme

Laikoi Dromoi (Λαϊκοί Δρόμοι)

A comprehensive TypeScript library for Greek Bouzouki music scales (dromoi) with transposition utilities and helper functions.

Features

  • Complete collection of 19 Greek music scales (both minor and major)
  • Transpose scales to any root note
  • Transpose chords along with scales
  • Helper functions to get scales by type and root note
  • TypeScript support with full type definitions
  • Zero dependencies (core library)
  • Tiny bundle size
  • ESM module support

Installation

npm install laikoi-dromoi

or

yarn add laikoi-dromoi

Usage

Basic Usage

import { scales, transposeScale, transposeChords } from 'laikoi-dromoi';

// Get all scales
console.log(scales);

// Find a specific scale
const armoniko = scales.find(s => s.name === 'Armoniko');
console.log(armoniko);
// {
//   name: 'Armoniko',
//   type: 'minor',
//   notes: ['D', 'E', 'F', 'G', 'A', 'Bb', 'C#', 'D'],
//   basicChords: ['Dm', 'Gm', 'A', 'A7', 'Bb'],
//   otherChords: ['C#dim', 'Edim', 'Faug']
// }

Transposing Scales

import { scales, transposeScale } from 'laikoi-dromoi';

const armoniko = scales.find(s => s.name === 'Armoniko');

// Transpose to E
const armonikoInE = transposeScale(armoniko.notes, 'E');
console.log(armonikoInE);
// ['E', 'F#', 'G', 'A', 'B', 'C', 'D#', 'E']

// Transpose to A
const armonikoInA = transposeScale(armoniko.notes, 'A');
console.log(armonikoInA);
// ['A', 'B', 'C', 'D', 'E', 'F', 'G#', 'A']

Transposing Chords

import { scales, transposeChords } from 'laikoi-dromoi';

const armoniko = scales.find(s => s.name === 'Armoniko');

// Transpose chords to E
const chordsInE = transposeChords(armoniko.basicChords, 'E');
console.log(chordsInE);
// ['Em', 'Am', 'B', 'B7', 'C']

Using Helper Functions (New!)

import { 
  getScaleWithRoot,
  getAllMajorScalesWithRoot,
  getAllMinorScalesWithRoot,
  getAllScalesWithRoot 
} from 'laikoi-dromoi';

// Get a specific scale transposed to a root note
const matzoreInE = getScaleWithRoot('Matzore', 'E');
console.log(matzoreInE);
// {
//   name: 'Matzore',
//   type: 'major',
//   transposedNotes: ['E', 'F#', 'G#', 'A', 'B', 'C#', 'D#', 'E'],
//   basicChords: ['A', 'D', 'E', 'E7', 'Bm'],
//   otherChords: [...]
// }

// Get all major scales in E
const majorScalesInE = getAllMajorScalesWithRoot('E');
console.log(majorScalesInE.length); // 9 major scales

// Get all minor scales in A
const minorScalesInA = getAllMinorScalesWithRoot('A');
console.log(minorScalesInA.length); // 10 minor scales

// Get all scales (both major and minor) in G
const allScalesInG = getAllScalesWithRoot('G');
console.log(allScalesInG.length); // 19 scales total

TypeScript Support

import { Scale, scales } from 'laikoi-dromoi';

const minorScales: Scale[] = scales.filter(s => s.type === 'minor');
const majorScales: Scale[] = scales.filter(s => s.type === 'major');

console.log(`Found ${minorScales.length} minor scales`);
console.log(`Found ${majorScales.length} major scales`);

Available Scales

Minor Scales (10)

  • Armoniko
  • Diatoniko
  • Kartziyar
  • Kiourdi
  • Melodiko (Ascending & Descending)
  • Niavent
  • Ousak
  • Poimeniko
  • Sambah

Major Scales (9)

  • Hitzaz
  • Hitzazkiar
  • Houzam
  • Matzore
  • Peiraiotikos
  • Rast (Ascending & Descending)
  • Segiah
  • Tabahaniotikos

API Reference

Types

Scale

interface Scale {
  name: string;
  type: 'minor' | 'major';
  notes: string[];
  basicChords?: string[];
  otherChords?: string[];
}

Functions

getScaleWithRoot(scaleName: string, rootNote: string): TransposedScale | null

Get a specific scale transposed to a root note.

  • scaleName: Name of the scale (e.g., 'Armoniko', 'Matzore')
  • rootNote: Target root note (e.g., 'E', 'A', 'G#')
  • returns: Transposed scale object with all properties, or null if scale not found

getAllMajorScalesWithRoot(rootNote: string): TransposedScale[]

Get all major scales transposed to a specific root note.

  • rootNote: Target root note
  • returns: Array of all major scales transposed to the root note

getAllMinorScalesWithRoot(rootNote: string): TransposedScale[]

Get all minor scales transposed to a specific root note.

  • rootNote: Target root note
  • returns: Array of all minor scales transposed to the root note

getAllScalesWithRoot(rootNote: string): TransposedScale[]

Get all scales (major and minor) transposed to a specific root note.

  • rootNote: Target root note
  • returns: Array of all scales transposed to the root note

transposeScale(notes: string[], root: string): string[]

Transposes a scale to a new root note.

  • notes: Array of note names representing the scale
  • root: Target root note (e.g., 'E', 'A', 'G#')
  • returns: Array of transposed notes

transposeChords(chords: string[], root: string): string[]

Transposes chord names to a new root note.

  • chords: Array of chord names
  • root: Target root note
  • returns: Array of transposed chord names

Constants

scales

An array containing all available Greek music scales with their properties.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT © Panayiotis Georgiou

Acknowledgments

This library documents traditional Greek music scales used in Bouzouki, Laiko, and Rembetiko music.