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

jisg

v0.999.0

Published

Implementations of select OEIS integer sequences in JavaScript.

Readme

jisg

Implementations of select OEIS integer sequences in JavaScript, portially inspired by intseq.

NPM Version NPM Downloads Build Status Build Size Code Coverage Scrutinizer Code Quality GPL 3.0

Install

yarn add jisg

Usage

Build System

import {A000045} from 'jisg'
const generator = A000045()
for (let i=0; i<43; i++) {
   console.log(generator.next().value)
}

Node

const {A000045} = require('jisg')
for (const i of A000045()) {
  console.log(i)
}

Script Tags

<script src="https://unpkg.com/jisg"></script>
<script>
const generator = jisg.A000045()
setInterval(
  function() => {
    document.write(
      generator.next().value,
      ', '
    )
  },
  666
)
</script>

Demos on CodePen

Fibonacci Sequence (A000045)

Chart of A000045 with ECharts

Pascal's Triangle (A007318)

In Your Browser

Try with RunKit

Read the Docs

Documentation

CLI Commands

  • yarn install: Install dependencies
  • yarn dev: Run tests when source files are changed
  • yarn lint --fix: Lint with ESLint
  • yarn test: Run tests
  • yarn doc: Build documentation
  • yarn build: Production build
  • yarn prepublish: Prepare for publishing
  • yarn publish: Publish to npm

Feedback

Contributing

Adding a Sequence Generator

  1. Fork and clone your repo locally.
  2. Create the source file in "src/oeis/" using the OEIS number (e.g. "A000001.ts") and add an entry in index.ts.
  3. Add sample sequence for testing, e.g. tests/samples/A000001.csv
  4. Implement the generator so that the test case passes (e.g. yarn test -t A000001). Important: Sequences should be generated algorithmically whenever possible. Avoid hard-coding values. Strive for simple, concise code that demonstrates the algorithm and aims to generate infinite terms efficiently. If the test takes longer than 10 seconds, optimize or remove integers from the end of the sample until it takes less than 10 seconds.
  5. Check code style and test coverage with yarn prepublish and fix any issues.
  6. Push to GitHub and submit a pull request.

Sponsorship