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

lyon

v1.2.0

Published

A smart Photop Client made by @Abooby! Use it to make Photop bots that interacts with a fun community! Make sure to join the [Lyon Group](https://app.photop.live/?j=ebe4376e) to get extra help, report bugs, or suggest features!

Readme

Lyon

A smart Photop Client made by @Abooby! Use it to make Photop bots that interacts with a fun community! Make sure to join the Lyon Group to get extra help, report bugs, or suggest features!

Redirects

Builds

Client Class

  • The Client class is the most important class needed for the bot.
    • Keep note that all "images" are directories leading to the image. For example: "./cat.png"

Starter Code

import { Client } from "lyon";

const Client = await new Client({
	userid: "bot_userid",
	token: "bot_token",
	config: { // Fully optional
		GroupConnections: < boolean | default:true > // If true, will listen for group posts with a normal Client.onPost()
	},
	onReady: <function> // Will run the function when the bot is connected and ready
})

Client Parameters

  • Client.selfData - Get your account data.
  • Client.post({string}, {object}) - Post into the home page. If groupid given, post into the group.
    • {string} - Text of the post
    • {object} - { images: {array}, poll: { title: {string}, options: {array} }, groupid: {string} }
  • Client.onPost({function}, {object}) - Listen for posts.
    • {function} - The function called when a new post is created.
    • {object} - { groupid: {string} }
  • Client.onInvite({function}) - Listen for group invites.
    • {function} - The function called when your invited to a group.
  • Client.getPosts({object}) - Get an array of posts with terms.
    • {object} - { id: {string}, userid: {string}, groupid: {string}, before: "{timestamp}", after: "{timestamp}" }
  • Client.getChats({object}) - Get an array of chats with terms.
    • {object} - { id: {string}, userid: {string}, postid: {string}, groupid: {string}, before: "{timestamp}", after: "{timestamp}" }
  • Client.getUsers({object}) - Get an array of users with terms.
    • {object} - { id: {string}, term: {string}, name: {string} }
  • Client.getGroups({object}) - Get an array of groups with terms.
    • {object} - { id: {string}, before: "{timestamp}", after: "{timestamp}" }
  • Client.getBlocked() - Get an array of all your blocked users.
  • Client.getInvites() - Get an array of all your group invites.
  • Client.createGroup({object}) - Create a group.
    • {object} - { name: {string}, invite: {string}, image: {directory} }
  • Client.joinGroup({object}) - Join a group.
    • {object} - { groupid: {string}, code: {string} }
  • Client.leaveGroup({string}) - Leave a group.
    • {string} - GroupID.
  • Client.deletePost({string}) - Delete a post.
    • {string} - PostID.
  • Client.deleteChat({string}) - Delete a chat.
    • {string} - ChatID.
  • Client.updateBio({string}) - Update your bio.
    • {string} - New bio.
  • Client.updateName({string}) - Update your name.
    • {string} - New name.
  • Client.updateVisibility({string}) - Update your visibility.
    • {string} - New visibility.
  • Client.updatePicture({string}) - Update your profile picture.
    • {string} - Directory to new profile picture.
  • Client.updateBanner({string}) - Update your profile banner.
    • {string} - Directory to new banner.
  • Client.unban({string}) - Unban a user.
    • {string} - UserID.