schnack logo

schnack

  •  0 ratings
In category: Communication / Social Networks and Forums

About schnack

Schnack is simple self-hosted node app for Disqus-like drop-in commenting on static websites.

  •   585  
  •   0  
  •   0  
  •   0  
Github stats:
  •  Commits: N/A  
  •   N/A  
  •   N/A  
  •  Latest commit: N/A  

Deploy this app to Linode with a free $100 credit!

Languages/Platforms/Technologies:
Lincenses:

More about schnack

schnack.js

Schnack is a simple Disqus-like drop-in commenting system written in JavaScript.

What the schnack?

Features:

  • Tiny! It takes only ~8 KB!!! to embed Schnack.
  • Open source and self-hosted.
  • Ad-free and Tracking-free. Schnack will not disturb your users.
  • It's simpy to moderate, with a minimal and slick UI to allow/reject comments or trust/block users.
  • webpush protocol to notify the site owner about new comments awaiting for moderation.
  • Third party providers for authentication like Github, Twitter, Google and Facebook. Users are not required to register a new account on your system and you don't need to manage a user management system.

Quickstart

Note: If you are updating Schnack from a 0.x version check out the separate upgrade instructions.

This is the fastest way to setup schnack.

Requirements:

  • Node.js (>= v8)
  • npm (>= v6)

Create a new folder for schnack and change into it:

mkdir schnack
cd schnack
npm init schnack

if there is no schnack.json in this folder, the init script copied over the default config and ask you if you want to configure your server interactively.

alternatively you can just edit the config file according to configuration section:

vim schnack.json                 # or open with any editor of your choice

Finally, run npm init schnack again to finish installation:

npm init schnack

Run the server:

npm start

If you want to try out Schnack on localhost (without authentication), run

npm start -- --dev

Embed in your HTML page:

<div class="comments-go-here"></div>
<script
    src="https://comments.example.com/embed.js"
    data-schnack-slug="post-slug"
    data-schnack-target=".comments-go-here"
></script>

or initialize schnack programmatically:

<div class="comments-go-here"></div>

<script src="http://comments.example.com/client.js"></script>
<script>
    new Schnack({
        target: '.comments-go-here',
        slug: 'post-slug',
        host: 'http://comments.example.com'
    });
</script>

You will find further information on the schnack page.

Plugins

Authentication and notification providers can be added via plugins.

npm install @schnack/plugin-auth-github  @schnack/plugin-auth-google @schnack/plugin-notify-slack

To enable the plugins you need to add them to the plugins section of your schnack.json:

{
    // ...
    "plugins": {
        "auth-github": {
            "client_id": "xxxxx",
            "client_secret": "xxxxx"
        },
        "auth-google": {
            "client_id": "xxxxx",
            "client_secret": "xxxxx"
        },
        "notify-slack": {
            "webhook_url": "xxxxx"
        }
    }
}

if you want to write your own plugins you need to install them and specify their package name in the schnack.json. Otherwise Schnack would try to load as from @schnack/plugin-my-plugin.

{
    // ...
    "plugins": {
        "my-plugin": {
            "pkg": "my-schnack-plugin",
            // ...
        }
    }
}

Feel free to open a PR on schnack-plugins with your plugin if you want to add it to the "official" repository.

Who is behind Schnack?

Schnack is yet another happy collaboration between Webkid and Gregor Aisch, with amazing contributions from:

Who is using Schnack?

Schnack will never track who is using it, so we don't know! If you are a Schnack user, let us know and we'll add your website here. So far Schnack is being used on:

Related projects

This is not a new idea, so there are a few projects that are doing almost the same thing:

Developer notes

If you want to run your Schnack server on https on localhost, add the following section to your schnack.json:

{
    "ssl": {
        "certificate_path": "./certs/local.crt",
        "certificate_key": "./certs/local.key"
    }
}

To test changes on the embed.js and client.js templates you can open a local test server with minimal styles and by-passed authentication using

npm run dev

We're veIf you want to contribute additional plugins, check out the source code for the existing plugins first. We happily accept pull requests on schnack-plugins.

This project used Conventional Commits.

Comments (0)

Please login to join the discussion on this project.

schnack Reviews (0)

Overall Rating

None

based on 0 ratings

Please login to review this project.

No reviews for this project yet.

↑ back to top

pCloud Lifetime

Popular Projects

FluxBB

in Social Networks and Forums
 33k    0    0    0  

Nextcloud

in File Transfer & Synchronization
 20k    1    1    0  

Libreddit

in Social Networks and Forums
 6k    0    1    0  

CasaOS

in Self-hosting Solutions
 5k    0    0    0  

Audiobookshelf

in Audio Streaming
 5k    0    1    0  

Dashboard

in Personal Dashboards
 5k    0    0    0  

Mediagoblin

in Photo and Video Galleries
 4k    0    0    0  

Most Discussed

Nextcloud

in File Transfer & Synchronization
 20k    1    1    0  

Tube Archivist

in Automation
 3k    0    1    0  

OneDev

in Project Management
 2k    0    0    0  

iodine

in Proxy
 2k    0    0    0  

Alf.io

in Booking and Scheduling
 2k    0    0    0  

sysPass

in Password Managers
 987    0    0    0  

Misskey

in Social Networks and Forums
 2k    0    0    0  
Linux VPS from $11/yr.
RackNerd VPS for $11.38/mo

Top Rated Projects

Gitea

 1 rating
in Project Management

Bagisto

 1 rating
in E-commerce

LinkAce

 1 rating
in Bookmarks and Link Sharing

Pydio

 1 rating
in File Transfer & Synchronization

Audiobookshelf

 1 rating
in Audio Streaming

Nextcloud

 1 rating
in File Transfer & Synchronization

Seafile

 1 rating
in File Transfer & Synchronization

Categories

You May Also Be Interested In

OSSN logo
OSSN cover

OSSN

Open Source Social Network (OSSN) is a social networking so…

Lemmy logo
Lemmy cover

Lemmy

A link aggregator / reddit clone for the fediverse. Reddit …

Glosa logo
Glosa cover

Glosa

Open source commentary system easy to integrate with static…