Product Overview

In this course, we'll build Fast Feedback – the easiest way to add reviews and comments to your static site.

When brainstorming product ideas for the course, I needed something I'd enjoy creating. Plus, it needed to be complex enough to handle user authentication, database storage, and payments. After iterating on a few thoughts, the idea for Fast Feedback came to me.

Review

Blogs are an essential part of the internet. They're an open dialogue between the author and their audience. However, it's increasingly becoming one-way communication. Adding comments to your blog is difficult, especially with the rise of static-site generators like Next.js and Gatsby.

Most people using these frameworks want comments, but they don't want the overhead of building the commenting system themselves. To add comments, you need to consider:

  • Do I want to allow anyone to comment? Should people log in?
  • What if people abuse the system? How can I moderate?
  • Will this impact the privacy of my readers?
  • Will this decrease the performance of my site?

Fast Feedback answers all those questions for you. With one line of code, you can add comments and reviews to your static site with any framework and any language.

  • Prevent spam by making users log in with social accounts
  • Authors have moderation tools to approve or reject comments.
  • Works great for blogs, e-commerce sites, e-books, courses, etc.
  • No tracking, no advertising. Just fast feedback from your users.
  • No JavaScript necessary. One line to embed a static iframe.

How does it work?

The main difference between Fast Feedback and others is that you can add feedback in one line of code. For example, this would display comments for Fast Feedback itself.

<iframe
src="https://fastfeedback.io/embed/7QUdWsz58EDnHsdub7UW/EAXJmnnTL1f6CUGeZrNI"
/>

Let's break this URL down.

  • https://fastfeedback.io/embed/${SITE_ID} - This route displays all feedback for the given site. Feedback is presented with a clean, minimal design including a link to login and leave feedback.
  • /${ROUTE_ID} - This optional path allows you to track which route the feedback is for. This allows you to use the same SITE_ID for a blog for example.

We're able to use no JavaScript by serving a static site through the iframe. You might be wondering – how does the feedback get updated then? Using Next.js and Incremental Static Regeneration, we can periodically regenerate the static page to show all comments that have been approved.

Database Schema

User

NameTypeDescription
uidStringUID from Firebase Auth
emailStringEmail from social login
nameStringName from social login
photoUrlStringAvatar from social login
providerStringWhich social login was used
stripeRoleString(Free, Starter, Premium)
stripeIdStringLinking customer with Stripe
statusString(Active, Suspended, Deleted)

Feedback

NameTypeDescription
authorStringName from social login
authorIdStringUID from Firebase Auth
createdAtStringISO Timestamp
providerStringWhich social login was used
ratingNumberOptional rating
siteIdStringWhich site feedback is for
statusString(Pending, Approved, Removed)
textStringFeedback content

Site

NameTypeDescription
authorIdStringUID from Firebase Auth
createdAtStringISO Timestamp
nameStringName of site
settingsObject(Ratings, social logos, timestamps)
urlStringLink to site