explaingit

madeval/readsightjs

Analysis updated 2026-05-18

25TypeScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A library that scores how hard text is to read, across 86 languages and 17 readability formulas.

Mindmap

mindmap
  root((ReadSightJS))
    What it does
      Scores text readability
      Returns grade level
      Plain interpretation
    Tech stack
      TypeScript
      Node.js 18 plus
      Zero dependencies
    Use cases
      Check document reading level
      Flag complex writing
      Compare drafts across languages
    Audience
      Developers
      Writers
      Content teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Check whether a document or article is written at an appropriate reading level for its audience.

USE CASE 2

Flag overly complex sentences in an editor or content pipeline before publishing.

USE CASE 3

Compare readability scores across drafts written in different languages.

What is it built with?

TypeScriptNode.js

How does it compare?

madeval/readsightjs8thpark/geodecodeweb-dev/spark-ui
Stars252525
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderate
Complexity2/52/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

ReadSightJS is a Node.js and TypeScript library that measures how easy a piece of text is to read. Instead of guessing at reading difficulty by eye, it runs your text through established readability formulas and gives you back a score, a grade level, and a plain description like "Very Easy" or "College" level. The library supports 86 languages and 17 different readability formulas. Some formulas, like Gunning Fog and Coleman-Liau, work across every supported language. Others are tuned for specific languages: for example there are formulas built specifically for German, Italian, Arabic, and Spanish text. When you create a ReadSight instance for a language, it automatically knows which formulas apply to that language, so you never accidentally run an English-only formula on Thai text. Under the hood, the tool counts syllables in three different ways depending on the language: a heuristic method using vowel patterns and word lists, the TeX hyphenation algorithm originally built for line breaking in typesetting, or a combination of both. Most languages use the TeX-based approach, a handful use the heuristic approach, and English uses a mix of the two. This matters because syllable counting is the backbone of most readability formulas. ReadSightJS has no runtime dependencies, so installing it does not pull in a chain of other packages. It works with both modern ESM imports and older CommonJS require statements, and it ships with TypeScript type definitions built in. It is described as a byte-accurate port of an existing PHP library, meaning its output is verified to match that reference implementation using saved test data. A typical use case is checking whether a piece of writing, like a legal document or a product description, is written at an appropriate reading level for its intended audience. Developers could use it to flag overly complex text in an editor, or to compare drafts before publishing. The project is released under the MIT license and requires Node.js version 18 or later.

Copy-paste prompts

Prompt 1
Show me how to install @globus.studio/readsight and score a paragraph of English text with the Flesch Reading Ease formula.
Prompt 2
Write a Node.js script using ReadSightJS that compares the readability of two text files side by side.
Prompt 3
Explain the difference between the tex, heuristic, and composite syllable counting modes in ReadSightJS.
Prompt 4
Help me add ReadSightJS to a CommonJS project and count syllables in a list of Spanish words.

Frequently asked questions

What is readsightjs?

A library that scores how hard text is to read, across 86 languages and 17 readability formulas.

What language is readsightjs written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js.

What license does readsightjs use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is readsightjs to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is readsightjs for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.