figlet

Full FIGfont-spec ASCII art text renderer for Node and the browser

Library
npm
v1.12.0
3,036 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
73 /100 Good
Development Activity 80
Maintenance 60
Community 52
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
76 /100 Good
Architecture 74
Code Quality 76
Innovation 70
Learning Curve 85

figlet is a TypeScript/JavaScript implementation of the classic FIGfont specification, turning plain text into ASCII-art banners using any of dozens of bundled fonts. It runs identically in Node (as a library or CLI) and in the browser, and originally powered the well-known patorjk.com Text ASCII Art Generator.

The library exposes both a simple callback/promise-based figlet.text() API for quick banner generation and lower-level utilities for loading custom .flf fonts, making it the de facto standard for adding ASCII-art banners to CLI tool startup output, terminal splash screens, or build logs.

What You Get

  • A figlet.text() function returning a Promise (or accepting a callback) that renders ASCII art
  • Dozens of bundled FIGfonts selectable by name (Standard, Slant, Banner, etc.)
  • A figlet CLI binary for generating ASCII banners directly from the terminal
  • Support for loading custom .flf FIGfont files at runtime
  • Works unmodified in both Node.js and browser bundles (dist/figlet.mjs)

Common Use Cases

  • Printing a branded ASCII-art banner when a CLI tool starts up
  • Generating splash-screen text art for terminal applications
  • Adding decorative ASCII headers to build/CI logs for readability
  • Powering web-based ASCII-art text generators (as it does on patorjk.com)

Under The Hood

Architecture — The core src/figlet.ts implements the FIGfont layout algorithm (parsing .flf font files, applying horizontal/vertical smushing rules between adjacent glyphs, and assembling final banner lines), with src/node-figlet.ts providing the Node-specific font-loading/CLI wrapper and src/font-list.ts enumerating the bundled font catalog; fonts themselves live as data files under fonts/ and importable-fonts/. Tech Stack — Written in TypeScript, compiled via Vite (vite.config.ts) to dual ESM (dist/figlet.mjs) and CJS (dist/node-figlet.cjs) bundles with generated .d.ts/.d.cts type declarations, tested with Vitest, and built/released via a Grunt task runner plus a GitHub Actions action.yml. Code Quality — The repo has a dedicated test/ suite (figlet.test.ts, node-figlet.test.ts) with an expected/ fixtures directory used to snapshot-verify rendered output against known-good ASCII art for each bundled font, giving strong regression protection for a project where correctness is inherently visual. API Design — The API supports both modern promise-based (await figlet.text(...)) and legacy callback-based calling conventions in the same function signature, and treats the font name as a simple string option, so switching between dozens of bundled fonts requires no additional setup beyond passing a different name.

Used by 9 apps in this directory

TypeScript
76%
AGPL 3.0

Abby

Developer Tools · Product Management

166

Statically typed feature flags, remote config, and A/B testing with framework-native SDKs for TypeScript teams.

View details
31
Repo Health
70
Technical
64
Dependency
Built with
TypeScript 76%
MDX 18%
Updated 1 years ago
TypeScript
98%
Other

Hexabot

AI Development · Automation

1,160

Build and run agentic workflows across channels with YAML, tools, and RAG

View details
76
Repo Health
76
Technical
65
Dependency
Built with
TypeScript 98%
Updated 1 months ago
Vue
50%
GPL 3.0

IT-Tools

Developer Tools

40,954

A unified collection of 88 web-based developer utilities — from JSON formatting to subnet calculation — all self-hostable, keyboard-searchable, and offline-ready.

View details
60
Repo Health
74
Technical
63
Dependency
Built with
Vue 50%
TypeScript 48%
Updated 1 weeks ago
TypeScript
66%
MIT

Jitsu

Data Engineering

5,110

Open-source, fully-scriptable data ingestion engine that streams events from web, apps, and APIs to any data warehouse in real time.

View details
89
Repo Health
79
Technical
66
Dependency
Built with
TypeScript 66%
Go 32%
Updated 6 days ago
TypeScript
52%

Kener

Devops · Monitoring

5,216

Stunning, self-hosted status pages with real-time uptime monitoring, incident management, and multi-channel notifications in a single Docker container.

View details
87
Repo Health
76
Technical
66
Dependency
Built with
TypeScript 52%
Svelte 45%
Updated 1 weeks ago
JavaScript
55%
Other

Lokus

Knowledge Management · Note Taking

829

Local-first note-taking with graph view, canvas & AI plugins—your Markdown files, zero telemetry, blazing-fast Rust performance.

View details
75
Repo Health
75
Technical
64
Dependency
Built with
JavaScript 55%
HTML 21%
Rust 12%
Updated 2 months ago
TypeScript
97%
Other

nango

Authentication · Automation · Developer Tools

12,963

Build product integrations with AI using 800+ APIs — auth, proxy, and TypeScript functions on production-grade infrastructure.

View details
94
Repo Health
85
Technical
67
Dependency
Built with
TypeScript 97%
Updated 6 days ago
TypeScript
65%
Other

NocoDB

Databases · Low Code Platforms · No Code Platforms

65,340

Turn any SQL database into a collaborative no-code spreadsheet with automatic REST APIs and real-time views.

View details
91
Repo Health
77
Technical
63
Dependency
Built with
TypeScript 65%
Vue 30%
Updated 5 days ago
Go
36%

OpenPanel

Devops · Hosting Control Panel

764

Docker-powered web hosting control panel that gives every user a fully isolated environment with dedicated web server, database, and networking — VPS-grade security on shared hardware.

View details
87
Repo Health
75
Technical
63
Dependency
Built with
Go 36%
HTML 30%
TypeScript 24%
Updated 6 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers