GithubHelp home page GithubHelp logo

ronnathaniel / notifire Goto Github PK

View Code? Open in Web Editor NEW

This project forked from novuhq/novu

0.0 1.0 0.0 17.41 MB

๐Ÿš€ Open-source notification infrastructure for products

Home Page: https://notifire.co

License: MIT License

TypeScript 79.42% JavaScript 5.20% Dockerfile 0.20% Shell 0.06% Handlebars 1.80% HTML 2.73% Less 9.85% EJS 0.74%

notifire's Introduction

Read here our plans for the upcoming weeks.

Notification management simplified.

The ultimate library for managing multi-channel notifications with a single API.


Explore the docs ยป

Report Bug ยท Request Feature ยท Read our blog

โญ๏ธ Why

Building a notification system is hard, at first it seems like just sending an email but in reality it's just the beginning. In today's world users expect multi channel communication experience over email, sms, push, direct and more... An ever growing list of providers are popping up each day, and notifications are spread around the code. Notifire's goal is to simplify notifications and provide developers the tools to create meaningful communication between the system and it's users.

โœจ Features

  • ๐ŸŒˆ Single API for all messaging providers (Email, SMS, Push, Direct)
  • ๐Ÿ’… Easily manage notification over multiple channels
  • ๐Ÿš€ Equipped with a templating engine for advanced layouts and designs
  • ๐Ÿ›ก Built-in protection for missing variables
  • ๐Ÿ“ฆ Easy to set up and integrate
  • ๐Ÿ›ก Written in TypeScript with predictable static types.
  • ๐Ÿ‘จโ€๐Ÿ’ป Community driven

๐Ÿ“ฆ Install

npm install @notifire/core
yarn add @notifire/core

๐Ÿ”จ Usage

import { Notifire, ChannelTypeEnum } from '@notifire/core';
import { SendgridEmailProvider } from '@notifire/sendgrid';

const notifire = new Notifire();

await notifire.registerProvider(
  new SendgridEmailProvider({
    apiKey: process.env.SENDGRID_API_KEY,
    from: '[email protected]'
  })
);

const passwordResetTemplate = await notifire.registerTemplate({
  id: 'password-reset',
  messages: [
    {
      subject: `You password reset request`,
      // Or for translation or custom logic you can use function syntax
      // subject: (payload: ITriggerPayload) => getTranslation('resetPasswordSubject', payload.language),
      channel: ChannelTypeEnum.EMAIL,
      template: `
          Hi {{firstName}}!
          
          To reset your password click <a href="{{resetLink}}">here.</a>
          
          {{#if organization}}
            <img src="{{organization.logo}}" />
          {{/if}}
      `
    },
  ]
});

await notifire.trigger('<REPLACE_WITH_EVENT_NAME>', {
  $user_id: "<USER IDENTIFIER>",
  $email: "[email protected]",
  firstName: "John",
  lastName: "Doe",
  language: "en",
  organization: {
    logo: 'https://evilcorp.com/logo.png'
  }
});

Providers

Notifire provides a single API to manage providers across multiple channels with a single to use interface.

๐Ÿ’Œ Email

๐Ÿ“ž SMS

๐Ÿ“ฑ Push (Coming Soon...)

  • Pushwoosh
  • SNS

๐Ÿ‘‡ Direct (Coming Soon...)

  • Slack
  • MS Teams
  • Discord
  • Mattermost

๐Ÿ“ฑ In-App (Coming Soon...)

  • Notifire
  • MagicBell

Other (Coming Soon...)

  • PagerDuty

๐Ÿ”— Links

notifire's People

Contributors

ainouzgali avatar akhil-gautam avatar artfuldev avatar bigpreshy avatar charliebrowncharacter avatar chasmfiend avatar cloudguruab avatar combarnea avatar davidsoderberg avatar deepak-sreekumar avatar devblin avatar diganta413 avatar djabarovgeorge avatar galezra avatar hackmd-deploy avatar l0ne avatar l8y avatar matthiez avatar nishit-g avatar osbornetunde avatar painotpi avatar ranrib avatar renovate-bot avatar sachinhatikankar100 avatar scopsy avatar scrip7 avatar timgates42 avatar tonytangdev avatar ulentini avatar wyfy0107 avatar

Watchers

 avatar

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.