Giter VIP home page Giter VIP logo

getmash / mash-js Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 4.0 2.59 MB

Mash is a platform for you to monetize your content, experiences, apps & tools easily. You can charge any amount for any action or event – enabling your users to pay-you-as-they-enjoy, boost-tip with a click or tap, and as they engage with you and the community. All in your control.

Home Page: https://www.mash.com

License: MIT License

JavaScript 1.86% TypeScript 97.77% Just 0.37%
bitcoin javascript mash monetize creators lightning lightning-network

mash-js's Introduction

Earn more for what you build, create and develop.
Gain more customers because there’s no commitment barrier.


Client SDK

Overview

Mash is the monetization platform for developers, indie-hackers, creators, builders who want to earn for their content, apps & experiences based on the value that they provide and learn what users love most. You can charge any amount, add usage-based-pricing to monetize any event, action or click without requiring your users to make large-up-front purchases or input credit card details every time. Mash unlocks the fastest way to monetize experiences and get donations from your users, because their money is immediately available in your experience, and they can set a budget to auto-pay or auto-donate without interruption. It's your pricing, your experiences, your decisions, your control.

How do I get started?

Set up your account, your pricing & monetization model, and more. If you haven’t set up your account or want to change your settings or monetization model, you can do so at https://app.mash.com/earn.

If you are a developer looking to add Mash to your site the best place to start is to integrate the Mask SDK into your site. The SDK is bundled as a NPM pkg and can be found here

If you are looking for more general guides on how on how to integrate Mash, product solutions, please visit our public guides

If you are looking for pre-built UI components & widgets please visit our UI Components Library

How are people monetizing with Mash?

App & Tool Monetization

Builders, Developers & Indiehackers are charging users per use of a tool or experience instead of subscriptions to remove the large up-front purchase commitment barrier, and earn from those that want to use that experience just those few times.

You can monetize any action, event or click – and even layer in auto-pay for when users have a budget set.

You can see a few live examples at Mashing Monster and Prophecy Bitcoin.

Content Monetization

Creators of all kinds are monetizing their content in new and exciting ways. Mash provides pre-built monetization widgets, or you can create your own easily. You set pricing and they pay-as-they-enjoy to access an article, watch a great video, and even to get secret details like your email. You can have your users support you automatically, or with one-click for your amazing experiences.

  • Articles & Blog Posts – From a review of your favourite products, to a how-to guide or recipe. Hide some content in a section or an entire post.
  • Hidden Page – ask users to contribute to see everything on a secret page of anything from behind the scenes footage, or pre-released content.
  • Downloads – Share high-quality assets for a fee. For cheat sheets, mods, image assets, filter packs and more.
  • Video & Audio – For premium deep-dives, behind the scenes content and more
  • Links – Have a great resource to share but want users to contribute a small bit ask users to contribute for premium links to resources.
  • Books & Guides – Authors are monetizing their experiences per chapter or page. You can get started easily with our open-source Book Starter Gatsby Repo.

Boosts & Donations

  • Boosts – Let your users one-click-donate to you, without requiring a confirmation. You'll learn what they love, and they'll get the satisfaction of supporting you.
  • Donate Buttons – Let them say thanks, but a bit more than the boost.
  • Donations Everywhere – Share your lightning address, lightning QR code and Mash Page URL with your users to let them support you directly from all your channels, including Twitter, Reddit, Instagram, Facebook, Stackoverflow, Github… you name it!

mash-js's People

Contributors

aron-mash avatar cartonioh avatar github-actions[bot] avatar jnxdd avatar jstol avatar mdedys avatar nyonson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mash-js's Issues

Config overrides are ignored if getEarner API call fails

When setting overrides using the config object through the constructor, the values will be not be used if the getEarner API fails. The reason for this is the catch clause uses the defaultConfiguration rather then merging the defaultConfiguration into the local config. We should merge the defaultConfiguration with the localConfig in order to use overrides in either scenario (success or failure)

Line of code:

return defaultConfiguration;

Enhance SDK to load widgets based on wallet button hosting domain

Overview

We need to support older versions of the mash script that use wallet.getmash.com in addition to any new script installations using app.mash.com.

Widgets and wallet button need to be on the same domain in order to communicate with each other properly so we need to smarten up the sdk to ensure everything's loaded on the same domain, regardless of which integration variant we're dealing with.

These are variants we've seen so far:

  • User added mash sdk script on getmash.com + auto-added widgets (hosted on mash.com)

  • User added mash sdk script on getmash.com + manually added widgets (hosted on getmash.com)

  • User added mash sdk script on getmash.com + manually added widgets (hosted on getmash.com) + auto-added widgets (hosted on mash.com)

  • User is using mash sdk package < 2.15.0 which uses getmash.com

  • User is using mash sdk package >= 2.15.0 which uses mash.com

Acceptance Criteria

  • Mash sdk should look at where it itself is being hosted and use that domain to auto-load widgets

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.