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

bs-recipes

v1.3.4

Published

Fully working project examples showing how to use BrowserSync in various ways

Downloads

3,591,867

Readme

Browsersync recipes.

There are endless amounts of possible integrations and workflow scenarios when using Browsersync, so this project is an attempt to highlight as many of them as we can, whilst providing full, working examples.

Here's what we have currently...

... each one is a full, working example - just have a look at the readme.md in each one for installation instructions.

Contributions / Feedback

Spotted an error? Couldn't get one of the examples running? Have your own sweet setup that you want to show off to the world? We'd love to receive your feedback and contributions - so please get in touch! We aim to make this project the canonical source of example projects & code snippets related to running Browsersync.

How to contribute an example

First thing you should do, is take a look at our simplest example here - this will give you a great head-start on setting up your code.

Then, fork this repo and clone your fork down to your local machine. Now create a new folder inside recipes (note the naming structure). This is where you create your awesome example. You're free to do as you like, but there are a couple of rules you'll need to follow to ensure the project can build.

Required Files

  • package.json (see below for requirements)
  • app.js (or any JS file showing the example)
  • ./app directory. Always include the minimum HTML, JS & CSS needed to prove your example.

Do NOT include

  • readme.md (this is created dynamically for you)
  • any other files that are not related to your example.

package.json requirements

start command: For consistency, ensure your example can be run with the command npm start. To do this, you just need to provide something along these lines:

"scripts": {
    "start": "node app.js"
},

main file: We inline your main Javascript file into the readme.md, so don't miss this field.

"main": "app.js" // or gulpfile.js etc

description: We use this as the Title. So make it short and descriptive, such as

"description": "Server example"

Finally, build.

After you've added your example in the recipes folder, return to the root and run

npm install && npm run build

This will install Crossbow.js and compile the project. Commit everything that has changed and push it up to your fork. Send a Pull Request when you're ready, or if you'd like us to have a look over your code before that, just ping us twitter and we'll take a look!