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

raizensu

v0.1.3

Published

Quickly generate license for repos.

Downloads

7

Readme

Raizensu

npm version npm downloads License

Quickly generate license for repos. (Raizensu = License)

Supporting licenses

For now:

  • MIT
  • GPLv3 (GPL v3)
  • Apache2 (Apache 2.0)
  • LGPLv3 (LGPL v3)
  • Anti996_zh (Anti996 license in Chinese)
  • Anti996_en (Anti996 license in English)
  • BSD-3-Clause

Use CLI Without Installation

See parameters at Use as CLI

npx raizensu generate ...

Installation

This package provides both CLI and library usage.

Library

Generally, we use this package as a dev dependency.

npm i raizensu -D

CLI

npm i raizensu -g

Usage

You can set your config in raizensu.config.[ts,js,mjs,mts,cjs,cts,json]

import { defineConfig } from 'raizensu'

export default defineConfig({
  cwd: './',
  filename: 'LICENSE.txt',
  date: 'June 26th, 2025', // not shown in MIT, BSD-3-Clause, Anti996
  license: 'MIT',
  copyrights: [{
    year: '2025-present',
    author: 'Vincent-the-gamer',
    link: 'https://github.com/Vincent-the-gamer'
  }]
})

File will be generated in ./target/LICENSE.txt

Use as library

Example:

if msg returns empty string, that means license failed to generate.

import { Copyright, generateLicense } from 'raizensu'

const msg = await generateLicense({
  license: 'GPLv3',
  cwd: './',
  date: 'June 26th, 2025',
  copyrights: <Copyright[]>[{
    year: '2025-present',
    author: 'Vincent-the-gamer',
    link: 'https://github.com/Vincent-the-gamer'
  }, {
    year: '2025-present',
    author: 'Random',
    link: 'https://github.com/random'
  }]
})

Result:

Copyright (c) 2025-present Vincent-the-gamer <https://github.com/Vincent-the-gamer>
Copyright (c) 2025-present Random <https://github.com/random>

    GNU GENERAL PUBLIC LICENSE
    Version 3, June 26th, 2025

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

...

Use as CLI

Example:

# This command generates a license with your config in `raizensu.config.ts`
raizensu generate

# This command generates a license with specified config.
# --type, -t <type>: License type.
# --cwd, -c <cwd>, Choose the path you want to generate your file.
# --date, -d <date>", Licese create date, can be any format, like 2025-06-26.
# --copyrights, -C <copyrights>, Copyrights, an array contains: year, author, link.
# --filename, -n <filename>, File name, e.g. license.txt.
raizensu generate -t MIT -c ./ -C '[{ "author": "Vincent-the-gamer" }]' -n "MIT.txt"

raizensu generate -t GPLv3 -c ./ -d June\ 26th \ 2025 -C '[{ "author": "Vincent-the-gamer" }]' -n "GPLv3.txt"

Licenses

This work is dual-licensed under MIT and Anti996 (or any later version).

MIT License © 2025-PRESENT Vincent-the-gamer

Anti996 License © 2025-PRESENT Vincent-the-gamer