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

@tidurand/webflow-dev-template

v0.1.1

Published

A template for starting all your Webflow projects requiring code. It looks like the one of [finsweet](https://github.com/finsweet/developer-starter) but it's easily customizable.

Downloads

8

Readme

Webflow Dev Template

A template for starting all your Webflow projects requiring code. It looks like the one of finsweet but it's easily customizable.

Requirements

Install pnpm on your computer

npm i -g pnpm

Got a npm token (named NPM_TOKEN) : How to do

Installation

  1. Click on Use this template > Create a repository
  2. Change some settings in your repository

Settings > Actions > General > Workflow Permissions

  • Read and write permissions.
  • Allow GitHub Actions to create and approve pull requests.

Settings > Secrets and variables > Actions > New repository secret

  • Name: NPM_TOKEN
  • Secret: you token
  1. Install dependencies
pnpm install

You can start your project! Here are two useful scripts:

Dev mode (with live reload)

pnpm dev

Build (for production)

pnpm build
  1. Write your code in src/index.ts (don't touch Webflow.push but you should remove console.log)
Webflow.push(() => {
  //Write your code here

  console.log('Hello World')
})

Deployment

pnpm changeset

Then push your code,

In GitHub, when CI/CD is finished, you will have a pull request, merge it and you're done!

Your package will appear in npm.

Tools

The advantage of this template is you can easily change each tool to suit your configuration.

Finsweet ts-utils (don't change)

Finsweet did a HUGE work by typing the Webflow.js file included in all Webflow projects.

With this, you can access many types and methods not provided by Webflow.

ESBuild

A fast JavaScript bundler and minifier that compiles and packages JavaScript and TypeScript code for deployment.

Update builder/esbuild.js

It includes a live reload in builder/live-reload.js

TSConfig

A configuration file for TypeScript that specifies the compiler options and file paths required to compile a TypeScript project.

Update tsconfig.json

ESLint

A static code analysis tool for JavaScript that identifies and fixes problems in your code to ensure adherence to specified coding standards and best practices.

Update eslint.config.js

Prettier

A code formatter for JavaScript that enforces consistent style by parsing code and reprinting it with its own rules.

Update .prettierrc file.

Husky (Git hooks)

A tool that enables Git hook scripts to run automatically, helping to enforce quality checks and other tasks during the development process.

Add hooks in .husky folder

Changeset (versioning)

A tool for managing and automating the versioning and changelog generation process for projects, especially those using monorepos, by tracking changes across packages.

Update .changeset/config.json

CI/CD

This pipeline uses GitHub Actions

Lint

Check if your code got errors before going to production

Update .github/workflows.ci.yml

Release

Publish package to npm

Update .github/workflows.realease.yml