All Projects → heiseonline → shariff-backend-node

heiseonline / shariff-backend-node

Licence: other
Node.js (hapi) backend for Shariff. Shariff enables website users to share their favorite content without compromising their privacy.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to shariff-backend-node

Appy
🚀 A full stack boilerplate web app
Stars: ✭ 225 (+1223.53%)
Mutual labels:  backend, hapi
wulkanowy-web
🌋 Przeglądarkowy klient dzienniczka VULCAN UONET+ dla ucznia i rodzica
Stars: ✭ 12 (-29.41%)
Mutual labels:  backend
student-management-system
Management system for students of our free coding school.
Stars: ✭ 110 (+547.06%)
Mutual labels:  backend
hapi-dev-errors
A hapi plugin to return better error details and skip the look at command line to catch the issue.
Stars: ✭ 58 (+241.18%)
Mutual labels:  hapi
hapi-imagemin-proxy
Hapi proxy for serving optimized images
Stars: ✭ 30 (+76.47%)
Mutual labels:  hapi
TIGER
implement a full compiler based on c++ 11
Stars: ✭ 17 (+0%)
Mutual labels:  backend
Arisu
☔ Translation made with simplicity, yet robust. Made with ❤️ in TypeScript.
Stars: ✭ 15 (-11.76%)
Mutual labels:  backend
yayd
youtube-dl backend in Rust, aka youtube & co downloader
Stars: ✭ 32 (+88.24%)
Mutual labels:  backend
mangooio
An Intuitive, Lightweight, High Performance Full Stack Java Web Framework.
Stars: ✭ 52 (+205.88%)
Mutual labels:  backend
hapi-acl-auth
Authentication provider agnostic authorization plugin for HapiJS
Stars: ✭ 22 (+29.41%)
Mutual labels:  hapi
universitas.no
Online newspaper built with Django
Stars: ✭ 16 (-5.88%)
Mutual labels:  backend
food-help
A clone of popular food and business review web app yelp
Stars: ✭ 24 (+41.18%)
Mutual labels:  backend
celery-priority-tasking
This is a prototype to schedule jobs in the backend based on some priority using Rabbitmq and Celery.
Stars: ✭ 28 (+64.71%)
Mutual labels:  backend
backends
monorepo for republik, publikator and assets backends based on NodeJS providing the GraphQL API used to power republik.ch.
Stars: ✭ 40 (+135.29%)
Mutual labels:  backend
theme
Nützliche Verwaltung von Projektdateien (z. B. Assets, Sprachdateien, Funktionen und Klassen) für Frontend und Backend.
Stars: ✭ 46 (+170.59%)
Mutual labels:  backend
pern-stack-auth
📋 Repair. PERN stack todo app with jwt user authentication
Stars: ✭ 17 (+0%)
Mutual labels:  backend
mianshiya
干净免费的面试刷题网站,帮助大家拿到满意的 offer!
Stars: ✭ 190 (+1017.65%)
Mutual labels:  backend
hapi-cron
🕰️ Cron jobs for internal hapi.js routes
Stars: ✭ 41 (+141.18%)
Mutual labels:  hapi
plain-free-bootstrap-admin-template
Free Bootstrap 5 Admin and Dashboard Template that comes with all essential dashboard components, elements, charts, graph and application pages. Download now for free and use with personal or commercial projects.
Stars: ✭ 141 (+729.41%)
Mutual labels:  backend
disinfect
Request query, payload, and params sanitization for Hapi
Stars: ✭ 20 (+17.65%)
Mutual labels:  hapi

[DEPRECATED] Shariff Node Backend

Shariff is used to determine how often a page is shared in social media, but without generating requests from the displaying page to the social sites.

Shariff Logo © 2014 Heise Zeitschriften Verlag

This document describes the Node backend. The following backends are also available:

The frontend is available here:

Installing the Shariff backend on you own server

Option 1: Run the standalone server

Create a project folder and install the Shariff server using npm:

$ mkdir my-shariff-server
$ cd my-shariff-server
$ npm init
$ npm install --save shariff-backend-node

The node package contains a configuration file shariff.json. The following configuration options are available:

Key Type Description
port integer Port Shariff runs on
host string Host/IP address Shariff runs on
cache object Cache settings described below

Cache settings:

Key Type Description
engine string catbox backend
expiresIn integer Cache duration in milliseconds

Start Shariff with:

$ node node_modules/shariff-backend-node/run.js
141104/143603.929, info, Server ist running at: http://localhost:3001

Option 2:

Alternatively, you may call the Shariff backend from your own code. If called directly, the code will still use a cache and honor the expiresIn setting, the engine will however not be used in this case, just a simple object store.

Sample:

var Shariff = require('shariff-backend-node');

Shariff.getCounts('google.com').then(function(counts) {
    console.log('Success, counts:', counts);
}, function(err) {
    console.log('Failed to grab counts!', err);
});

If passed true as second parameter, the getCounts() method will not use its cache and instead re-query the services.

Testing your installation

Visit http://localhost:3001/?url=www.example.com to get a JSON structure containing the share counts:

{"facebook":1452,"googleplus":23}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].