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 🙏

© 2024 – Pkg Stats / Ryan Hefner

webflow-api-node

v0.1.2

Published

Webflow CMS toolkit

Downloads

5

Readme

Webflow CMS API Client

Requirements

  • Node.js 12+
  • NPM
  • Webpack / Browserify (optional)

Installation

Install the package via NPM

$ npm i webflow-api-node

Usage

const Webflow = require('webflow-api-node')

// Initialize the API
const webflow = new Webflow({ token: 'webflow-token' })

// GET a site
webflow
  .site({ siteId: '580e63e98c9a982ac9b8b741' })
  .then((site) => console.log(site))
  .catch((err) => console.log(err))

// GET all items
webflow
  .items({ siteId: '580e63e98c9a982ac9b8b741' })
  .then((item) => console.log(item))
  .catch((err) => console.log(err))

// POST
 webflow
  .createItem({
    collectionId: '580e63fc8c9a982ac9b8b745',
    fields: {ß
      name: 'Exciting blog post title',
      slug: 'exciting-post',
      _archived: false,
      _draft: false,
      color: '#a98080',
      author: '580e640c8c9a982ac9b8b778',
      'post-body': '<p>Blog post contents...</p>',
      'post-summary': 'Summary of exciting blog post',
      'main-image': '580e63fe8c9a982ac9b8b749',
    },
  })
  .then((i) => console.log(i))
  .catch((err) => console.log(err))

ß

The Webflow constructor takes several options to initialize the API client:

  • token - the API token (required)
  • version - the version of the API you wish to use (optional)

API Documention and other information:

Contributing

Contributions are welcome - feel free to open an issue or pull request.

License

The MIT license - see LICENSE.