New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

meddelare-server

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

meddelare-server - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

package.json
{
"name": "meddelare-server",
"version": "2.0.0",
"version": "2.0.1",
"description": "Install custom social share counters on your website with your own hosted solution, which only makes a single API request and loads minimal or zero assets to display the counters.",
"homepage": "http://meddelare.com/",
"homepage": "https://meddelare.com/",
"repository": {

@@ -38,3 +38,3 @@ "type": "git",

"name": "Meddelare",
"url": "http://meddelare.com/"
"url": "https://meddelare.com/"
},

@@ -41,0 +41,0 @@ "contributors": [{

@@ -1,2 +0,2 @@

# [Meddelare](http://meddelare.com/) Social Buttons Standalone Node.js Server [meddelare-node-server](https://github.com/meddelare/meddelare-node-server)
# [Meddelare](https://meddelare.com/) Social Buttons Standalone Node.js Server [meddelare-node-server](https://github.com/meddelare/meddelare-node-server)

@@ -6,15 +6,17 @@

Check out [meddelare.com](http://meddelare.com/)!
[![A screenshot of the button example](https://cloud.githubusercontent.com/assets/1398544/8511166/5c92d0b2-230b-11e5-895a-d3b67da749b5.png)](https://meddelare.com/)
[![A screenshot of the button example](https://cloud.githubusercontent.com/assets/1398544/8511166/5c92d0b2-230b-11e5-895a-d3b67da749b5.png)](http://meddelare.com/meddelare-examples)
Check out [meddelare.com](https://meddelare.com/) and view examples on [meddelare.com/meddelare-examples](https://meddelare.com/meddelare-examples).
View examples on [meddelare.com/meddelare-examples](http://meddelare.com/meddelare-examples).
---
## Standalone Node.js server
This is an open source and self-hosted alternative to sharing services such as AddThis and ShareThis. Because you run the proxy server yourself, you are also defending your users' privacy against the social networks' tracking. Users only opt in to their tracking once they decide to click a share button -- never implicitly just because they visited your page.
This is an open source and **self-hosted alternative** to sharing services such as AddThis and ShareThis. Because you run the proxy server yourself, you are also **defending your users' privacy** against the social networks' tracking. Users only opt in to their tracking once they decide to click a share button -- never implicitly just because they visited your page.
- If you want to use Meddelare in an existing Express server, check out [meddelare-node-expess](https://github.com/meddelare/meddelare-node-expess).
- If you want to use Meddelare in an existing Express server, check out [meddelare-node-express](https://github.com/meddelare/meddelare-node-express).
- If you want to use Meddelare from another server/service, check out [meddelare-node-counters](https://github.com/meddelare/meddelare-node-counters).

@@ -26,12 +28,11 @@

- Get counts from multiple social networks in a single API call, delivered as [JSON](https://en.wikipedia.org/wiki/JSON) or [JSONP](https://en.wikipedia.org/wiki/JSONP).
- The server calls social networks in parallel, making it (approximately) as fast to get the count from one as several at once.
- No third party requirements -- you can host both the social buttons server and any resources yourself.
- Proxies calls from your users to the social networks, blocking their user tracking until the user decides to click a share button.
- Super-fast in-memory cache keeps the most recent results per network and url.
- Heroku enabled -- create an app and deploy instantly.
- Sends cache control HTTP headers so client cache results and you can throw a [content delivery network](https://en.wikipedia.org/wiki/Content_delivery_network) (CDN) service, such as CloudFront, in front with ease.
- **Completely customizable** user interface design -- use layout, logotypes, animations of your own choice.
- **A single API call** to get counts from multiple social networks, delivered as JSON or JSONP.
- **Calls social networks in parallel** from the server, making it (approximately) as fast to get the count from one as several at once.
- **No third party resources required** – you can host both the social buttons server and any resources yourself.
- **Blocks social networks' user tracking** by proxying calls until the user decides to click a share button.
- **Super-fast in-memory cache** keeps the most recent results per network and url.
- **Easy to deploy** and prepared for [content delivery network](https://en.wikipedia.org/wiki/Content_delivery_network) (CDN) proxies.
## Getting started

@@ -52,3 +53,3 @@

- Test by accessing your local server on [http://localhost:5000/?networks=facebook,twitter,googleplus&url=http://meddelare.com](http://localhost:5000/?networks=facebook,twitter,googleplus&url=http://meddelare.com)
- Test by accessing your local server on [http://localhost:5000/?networks=facebook,twitter,googleplus&url=https://meddelare.com](http://localhost:5000/?networks=facebook,twitter,googleplus&url=https://meddelare.com)
- You can optionally push to a Heroku app to automatically deploy.

@@ -60,3 +61,3 @@

See this [example API call](https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=http://meddelare.com). The response is delivered as JSON, or JSONP if you specify a callback.
See this [example API call](https://meddelare-node-server.herokuapp.com/?networks=facebook,twitter,googleplus&url=https://meddelare.com). The response is delivered as JSON, or JSONP if you specify a callback.

@@ -75,3 +76,3 @@ ```json

View examples on [meddelare.com/meddelare-examples](http://meddelare.com/meddelare-examples).
View examples on [meddelare.com/meddelare-examples](https://meddelare.com/meddelare-examples).

@@ -81,3 +82,3 @@ **We would love to feature your widget design!**

You can do anything you want to display your share counts when using the API. Below is a very simple example showing the count per network -- see this [example API call with text](http://meddelare.com/meddelare-examples/examples/text/). Note that we are using a CloudFront distribution domain in the examples.
You can do anything you want to display your share counts when using the API. Below is a very simple example showing the count per network -- see this [example API call with text](https://meddelare.com/meddelare-examples/examples/text/). Note that we are using a CloudFront distribution domain in the examples.

@@ -97,3 +98,3 @@ ```html

<script>
$.ajax("https://d12cncu17l9pr5.cloudfront.net/?networks=facebook,twitter,googleplus&url=http://meddelare.com", {
$.ajax("https://d12cncu17l9pr5.cloudfront.net/?networks=facebook,twitter,googleplus&url=https://meddelare.com", {
success: function (res, err) {

@@ -124,3 +125,3 @@ $.each(res, function (network, value) {

**Url (optional)**
Use the `url` parameter to specify the address which you want to retrieve the number of shares for, for example `url=http://meddelare.com`.
Use the `url` parameter to specify the address which you want to retrieve the number of shares for, for example `url=https://meddelare.com`.

@@ -149,7 +150,7 @@ If you don't specify a `url` then the server will try to get the referring url's (HTTP `Referer` header) share count. This makes it easy to dynamically get the counts for the page currently open in the browser.

This example whitelists domains Meddelare uses: `DOMAIN_WHITELIST='http://meddelare.com,https://meddelare.github.io,https://meddelare-node-server.herokuapp.com,https://d12cncu17l9pr5.cloudfront.net' node app/server.js`
This example whitelists domains Meddelare uses: `DOMAIN_WHITELIST='https://meddelare.com,https://meddelare.github.io,https://meddelare-node-server.herokuapp.com,https://d12cncu17l9pr5.cloudfront.net' node app/server.js`
## Content delivery networks
## [Content delivery networks](https://en.wikipedia.org/wiki/Content_delivery_network) (CDN)

@@ -170,4 +171,4 @@ If you want to reduce your server load it would be wise to throw up a cache, such as CloudFront, in front.

Copyright (c) 2015 Team Meddelare <http://meddelare.com/> All rights reserved.
Copyright (c) 2015 Team Meddelare <https://meddelare.com/> All rights reserved.
When using [meddelare-node-server](https://github.com/meddelare/meddelare-node-server), comply to the [MIT license](http://opensource.org/licenses/MIT).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc