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

get-anime-girls-holding-programming-books

v0.0.1

Published

Get images of anime girls holding programming books from a GitHub repository

Readme

Get Anime Girls Holding Programming Books

Fetch images of anime girls holding programming books from the GitHub repository cat-milk/Anime-Girls-Holding-Programming-Books via TypeScript/JavaScript simple functions and the GitHub REST API.

Features

  • List all available programming books in the repository
  • Fetch images for a specific book with optional limiting
  • Get one random image from a specific book
  • You can add your Github token to use authenticated requests (optional)
  • TypeScript typings included

Installation

npm i get-anime-girls-holding-programming-books

Quick Start

import { getAllBooks, getImagesByBook, getRandomImageByBook } from "get-anime-girls-holding-programming-books";

// List available book folders
const books = await getAllBooks();
console.log(books.map(b => b.name));

// Fetch up to 5 images from the "Python" folder
const images = await getImagesByBook("Python", { limit: 5 });
console.log(images);

// Pick a random image from the "C++" folder
const randomImage = await getRandomImageByBook("C++");
console.log(randomImage.download_url);

Reference

getAllBooks(options?: GetBooksOptions): Promise<ProgrammingBook[]>

Fetches all top-level folders in the Github repository (each folder is a programming book category).

Returns items shaped like:

interface ProgrammingBook {
	name: string; // e.g., "C++", "Python", "Visual Basic"
	url: string;  // GitHub API URL for the folder contents
}
interface GetBooksOptions {
	authToken?: string; // Optional authorization token for GitHub API.
}

getImagesByBook(bookName: string, options?: GetBookImagesOptions): Promise<BookImage[]>

Lists images in a specific folder (book).

  • bookName: The folder name (case-sensitive as per the repository). Examples: "Python", "C++", "Visual Basic".
  • options.limit?: Maximum number of images to return.

Returns items shaped like:

interface BookImage {
	name: string;
	size: number;
	download_url: string; // Direct URL you can <img src={...}/> or download
}

interface GetBookImagesOptions {
	limit?: number;
	authToken?: string;
}

getRandomImageByBook(bookName: string): Promise<BookImage>

Fetches images from a folder and returns one randomly selected.

Notes & Best Practices

  • GitHub REST API rate limits: Unauthenticated requests are limited (commonly ~60/hour). You can add a github token to use authenticated requests (5000/hour). "Unauthenticated requests are associated with the originating IP address, not with the user or application that made the request." Learn more...
  • Folder names are derived from repository directories. Use exact names as they appear in the Github repository.
  • Node.js 20+ recommended.

Acknowledgements

  • Images and folders are sourced from the excellent community repository: https://github.com/cat-milk/Anime-Girls-Holding-Programming-Books
  • This library simply provides convenient typed functions to that content.