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

pedit-cms

v0.6.0

Published

Make website easy to edit using a chrome extension

Downloads

1

Readme

pedit Build Status

An easy way to make your websites editable!

pedit in action!

pedit helps you make the text on your site easily editable with the help of a chrome extension. This could be helpful when you're making a website for a client who wants to keep their site updated, or if you just wanna easily edit the content on your own site without messing with html or pushing updates.

pedit works by dynamically loading all pedit enabled text from Firebase.

It's as easy as 1, 2, 3...

  1. You use the data-pedit attribute in your html code on elements that you/your client might want to edit in the future.
  2. When viewing the site on chrome with the extension, you'll see the pedit logo in your address bar. Hit it!
  3. Your website magically becomes editable (after authenticating you, ofcourse). All changes made are saved (as a hidden bonus, changes are live and updates are pushed to everyone viewing your page in realtime)!

Installation

NPM installation

Run this command to fetch required scripts

 $ npm install pedit-cms

Then, include the following code in your website

 <script src="node_modules/pedit-cms/dist/pedit.js"></script>

Bower installation

Run this command to fetch required scripts

 $ bower install pedit-cms

Then, include the following code in your website

 <script src="bower_components/pedit/dist/pedit.js"></script>

Source install

pedit

Download the latest release and extract it into your site's source directory.

Then, include the following code in your website

 <script src="pedit/dist/pedit.js"></script>

Usage

After installing the required js scripts and ensuring that you included the js files for every page where you want to enable pedit,

Add the data-pedit attribute to any html element that you want to make editable. It's value should be an ID that you want to associate with that element.

data-pedit values should be unique accross all pages in the same domain, unless you want elements to share content

Using the same data-pedit value on multiple elements will give them the same text data. This can be useful for common elements across pages like footer description.

Example:

<body>
...
  <h1 data-pedit="title">Title</h1>
  <p data-pedit="paragraph">Lorem ipsum dolor sit amet</p>
  <p data-pedit="paragraph-2"></p>
...
</body>

Example 2 (Notice how using the same data-pedit value is useful here):

index.html

<body>
...
  <footer>
    <p data-pedit="copyright-line">pedit. All rights reserved</p>
  </footer>
...
</body>

about.html

<body>
...
  <footer>
    <p data-pedit="copyright-line">pedit. All rights reserved</p>
  </footer>
...
</body>

When the site's deployed, visit the url using chrome. With the chrome extension installed, you'll see the pedit logo in the action bar. Click it to start editing content.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

Pranay Prakash - Personal Site, LinkedIn, Github