npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

logbrew

v1.0.4

Published

A Simple and easy to use SDK for sending logs to the LogBrew Service

Downloads

12

Readme

LogBrew ☕

Simple and easy to use SDK to send logs to LogBrew ☕


What is it?

LogBrew is a simple and easy to integrate service that allows you to view logs visualy instead of just using the console of your app, While most just open up logs on thier phone via apps like Termius and use SSH to see what their app is doing, LogBrew allows you to have a clean and simple dashboard where you can send events that happen in your app. Using this service allows you to even send Push Notifications to your devices for urgent events like a sale happening on your E-Commerce website!.

We hope you enjoy using this platform and wish you the best on your brewing journey

How Do I use it?


Install The Package

yarn add logbrew
# Or
npm install logbrew

Create your Project on LogBrew.io And get your Credentials

First thing you need to do is get your Credentials, to do this; Head over to Our Website and create an account, you should see a screen like this when first logging in:

You are first going to want to create a project, you can do this by clicking the [+] button on the sidebar, Give your project a name and fill out the settings that the site prompts you to make.

After this is done, you are going to want to open up the project settings, head over to the API section and save your {Token} and {Project Name} Variables (Due to security, we only let you view the token when its first generated, Dont worry if you loose it, you can always regenerate it 😀)

Using the Package

Here is a basic app that will send us a sample message, you can use this to ensure that you have set everything up correctly

import Client from "logbrew"

const logbrew = new Client({
    token: "Your Project Token Here",
    project: "The Name of your project"
})

logbrew.sendLog({
    title: "Welcome to LogBrew",
    message: "Hello There new User! Welcome to LogBrew, This is your first event!, You can click me to view more!",
    emoji: "🎉",
    flags: [
        {name: "Welcome Event", color: "green"}
    ]
})

If you run this code (Make sure to swap in your token and project name) you should see an update on the dashboard with the details you provide


Contributors

| Name | GitHub | Social | | :- | :- | :- | | Thyke Adams ☕ | @ThykeAdams | @DevThyke Twitter |