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

@emprespresso/codemirror-lang-tabloid

v0.2.1

Published

tabloid language support for CodeMirror

Readme

@emprespresso/codemirror-lang-tabloid

Tabloid language support for CodeMirror 6.

About Tabloid

Tabloid is the clickbait headline programming language created by Linus Lee. It features outrageous keywords like DISCOVER HOW TO (function declaration), EXPERTS CLAIM (variable assignment), and PLEASE LIKE AND SUBSCRIBE (required program terminator).

Installation

npm install @emprespresso/codemirror-lang-tabloid

Usage

import { EditorView, basicSetup } from 'codemirror'
import { tabloid } from '@emprespresso/codemirror-lang-tabloid'

const view = new EditorView({
  extensions: [basicSetup, tabloid()],
  parent: document.querySelector('#editor')
})

Language Features

Keywords

  • DISCOVER HOW TO ... WITH ... - Function declaration
  • EXPERTS CLAIM ... TO BE ... - Variable assignment
  • RUMOR HAS IT ... END OF STORY - Code block
  • WHAT IF ... LIES! ... - If/else statement
  • SHOCKING DEVELOPMENT - Return statement
  • YOU WON'T WANT TO MISS - Print statement
  • LATEST NEWS ON - Input statement
  • PLEASE LIKE AND SUBSCRIBE - Program terminator (required)

Operators

Arithmetic:

  • PLUS - Addition
  • MINUS - Subtraction
  • TIMES - Multiplication
  • DIVIDED BY - Division
  • MODULO - Modulo

Comparison:

  • IS ACTUALLY - Equality
  • BEATS - Greater than
  • SMALLER THAN - Less than

Logical:

  • AND - Logical AND
  • OR - Logical OR

Literals

  • Numbers: 123, 45.67
  • Strings: "hello", 'world'
  • Booleans: TOTALLY RIGHT (true), COMPLETELY WRONG (false)

Example Programs

Hello World

YOU WON'T WANT TO MISS 'Hello, World!'

PLEASE LIKE AND SUBSCRIBE

Factorial

DISCOVER HOW TO FACTORIAL WITH N
RUMOR HAS IT
    WHAT IF N IS ACTUALLY 0
        SHOCKING DEVELOPMENT 1
    LIES!
        SHOCKING DEVELOPMENT
            N TIMES FACTORIAL OF N MINUS 1
END OF STORY

EXPERTS CLAIM RESULT TO BE FACTORIAL OF 10
YOU WON'T WANT TO MISS 'Result is'
YOU WON'T WANT TO MISS RESULT

PLEASE LIKE AND SUBSCRIBE

Fibonacci

DISCOVER HOW TO FIBONACCI WITH A, B, N
RUMOR HAS IT
    WHAT IF N SMALLER THAN 1
        SHOCKING DEVELOPMENT B
    LIES! RUMOR HAS IT
        YOU WON'T WANT TO MISS B
        SHOCKING DEVELOPMENT
            FIBONACCI OF B, A PLUS B, N MINUS 1
    END OF STORY
END OF STORY

EXPERTS CLAIM LIMIT TO BE 10
YOU WON'T WANT TO MISS 'First 10 Fibonacci numbers'
EXPERTS CLAIM NOTHING TO BE FIBONACCI OF 0, 1, LIMIT

PLEASE LIKE AND SUBSCRIBE

Development

# Install dependencies
npm install

# Build the parser
npm run prepare

# Run tests
npm test

License

MIT