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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@kennedyrose/summarize-web-page

v1.0.0

Published

A Node.js module that outputs a summary of bullet points for a given URL. Uses OpenAI's API.

Readme

Summarize Web Page

A Node.js module that outputs a summary of bullet points for a given URL. Uses OpenAI's API.

Installation

npm install @kennedyrose/summarize-web-page

or

yarn add @kennedyrose/summarize-web-page

Usage

import summarize from '@kennedyrose/summarize-web-page'

summarize(`https://kennedyrose.com/how-to-start-your-own-webflow-agency`, {
		apiKey: `YOUR_OPEN_AI_KEY`,
	})
	.then(console.log)
	.catch(console.error)

Example Output

{
  summary: [
    'Starting Snap, a subscription-based web development and hosting service/micro-agency with tools like Webflow',
    'Clients can easily update their own sites after development',
    'Need to use a combination of code-based and no-code tools for certain tasks',
    'Choose a specific niche to specialize in and provide solutions to pain points',
    'Stand out from other agencies by targeting a specific market or solving unique problems',
    'Write copy before designing the website to determine layout and images',
    'Build your own website using Webflow and customize it to differentiate from templates',
    "Payment requests can be sent via email with Stripe's customer portal, no need for a client dashboard",
    'Pricing can be customized for each client or offer personalized quotes',
    'Create ongoing value for customers to generate monthly recurring revenue',
    'Cold emailing and direct messaging can be effective for reaching ideal clients',
    'Ideal clients are those already using Webflow, as they understand the value the agency provides',
    'Use No-Code Movers, a list of thousands of Webflow sites, to find potential clients',
    'Listen to feedback and pivot frequently until finding the right fit',
    'Subscribe to the blog for more information on running a Webflow agency or SaaS business.'
  ],
  tokens: 1239,
  url: 'https://kennedyrose.com/how-to-start-your-own-webflow-agency',
  title: 'How to Start Your Own Webflow Agency',
  description: 'A few months ago, we publicly launched Snap, a subscription-based web development and hosting service/micro-agency. We use a number of tools, some are code-based, but many are no-code like Webflow. Webflow helps us do frontend development at an expon...'
}

Configuration

Additional options can be supplied in the second argument.

import summarize from '@kennedyrose/summarize-web-page'

summarize(`https://kennedyrose.com/how-to-start-your-own-webflow-agency`, {
		prompt: `Summarize the following content in bullet points. Each bullet point should be on its own line should not have any hyphen or number at the start.`,
		model: `gpt-3.5-turbo`,
		apiKey: `YOUR_OPEN_AI_KEY`,
	})
	.then(console.log)
	.catch(console.error)