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

bookface

v1.1.6

Published

> [!IMPORTANT] > This library is in active development.

Readme

[!IMPORTANT]
This library is in active development.

The Graph API is Meta's platform for building apps and services that interact with their products (i.e. Facebook, Instagram).

Bookface allows you to interact with the Graph API through TypeScript with a more intuitive, organized, and straightforward syntax.

Getting Started

To get started with Bookface, you'll first need to install it through your preferred package manager. See the extended install section for this.

Once installed, in order to do anything useful, you'll need to create an app with Meta in their developer portal and then authenticate said app with Bookface's CLI. This can be complicated, and the process is heavily dependent on what you're trying to do, so it's recommended you go through the in-depth, step-by-step authentication guide provided on the documentation site.

Once you've done all the necessary steps required to interact with Meta's API programmatically, you can finally get started with some actual code. The following is a minimal example for publishing and reading page posts.

import Facebook from "bookface";
import type { Authentication } from "bookface";

// Initialize the client
const facebook = new Facebook();
const auth: Authentication = {};

// Login (unnecessary but good to have)
await facebook.login(auth).then(({ credentials, scope }) => {
  console.log(credentials);
  console.log(scope);
});

// Publish a post to your page
const post = await facebook.page.posts.publish({
  message: "Hello World!",
  media: "./image.png",
});

// Read your page posts
const posts = await facebook.page.posts.read();

To do anything else with Bookface, or for a more thorough understanding of the syntax, it's highly recommended that you check out the documentation site.

Install

JSR

NPM Version

bunx jsr add @bookface/ts # Bun

npx jsr add @bookface/ts # npm

deno add jsr:@bookface/ts # Deno

pnpm i jsr:@bookface/ts # pnpm 10.8 or older
pnpm dlx jsr add @bookface/ts # pnpm

yarn add jsr:@bookface/ts # Yarn 4.8 or older
yarn dlx jsr add @bookface/ts # Yarn

If you want to install from npm, rather than using jsr, you can use the bookface-ts package instead. It should be noted though that this package is not as well maintained as the jsr package.

Once you've installed, you'll likely want to login. You can do this with following command. Replace npx with your preferred package manager's package runner (i.e. bunx, dlx).

npx facebook login

Contributing

This project is looking for contributors — feel free to submit a pull request or open an issue.

If you're looking for something to work on, check out the roadmap for direction.

License

MIT