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 🙏

© 2026 – Pkg Stats / Ryan Hefner

mdining-proto

v0.2.2

Published

[![Build Status](https://travis-ci.org/anders617/mdining-proto.svg?branch=master)](https://travis-ci.org/anders617/mdining-proto)

Readme

mdining-proto

Build Status

Proto definitions for use with the michigan-dining-api service

The file mdining.proto defines the grpc service for michigan-dining-api and is the most important file for clients to use.

The remaining files define the proto messages used by the service

Language Support

Bazel
Go
Javascript/Node.js

Bazel

Add the following to your WORKSPACE file:

load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

go_repository(
    name = "com_github_anders617_mdining_proto",
    importpath = "github.com/anders617/mdining-proto",
    sum = "h1:EIFfF2+iUhY/aRRxH3LqsDafKpDMp4tbEx7Wulb9th0=",
    version = "v0.0.9",
)

load("@com_github_anders617_mdining_proto//rules:rule_deps.bzl", "rule_dependencies")
rule_dependencies()
load("@com_github_anders617_mdining_proto//rules:proto_deps.bzl", "proto_dependencies")
proto_dependencies()
load("@com_github_anders617_mdining_proto//rules:go_deps.bzl", "go_dependencies")
go_dependencies()

Go

Go is supported through Bazel. You can reference the //proto:mdining_go_proto target like so:

go_library(
    name = "my_library",
    srcs = [
        "my_source.go"
    ],
    importpath = "github.com/my/import/path",
    deps = [
        "@com_github_anders617_mdining_proto//proto:mdining_go_proto",
    ],
)

In your Go code:

package main

import (
    "context"
    "fmt"

    pb "github.com/anders617/mdining-proto/proto/mdining"
    "google.golang.org/grpc"
)

func main() {
    address := "michigan-dining-api.herokuapp.com:80"
    fmt.Printf("Connecting to %s...", address)
    conn, err := grpc.Dial(address, grpc.WithInsecure(), grpc.WithBlock())
    if err != nil {
        fmt.Printf("Could not dial %s: %s", address, err)
        return
    }
    defer conn.Close()
    fmt.Printf("Connected")

    // Create the MDiningClient
    client := pb.NewMDiningClient(conn)

    // Send a GetDiningHalls request
    diningHallsReply, err := client.GetDiningHalls(context.Background(), &pb.DiningHallsRequest{})

    if err != nil {
        fmt.Printf("Could not call GetDiningHalls: %s", err)
        return
    }
    fmt.Printf("DiningHallsReply: %v\n", diningHallsReply)
}

Javascript/Node.js

Download the npm package using npm:

npm install mdining-proto

or yarn:

yarn add mdining-proto

Then in your code you can import the proto types and client like so:

import { MDiningPromiseClient, DiningHallsRequest } from 'mdining-proto';

const client = new MDiningPromiseClient('https://michigan-dining-api.herokuapp.com');

client.getDiningHalls(new DiningHallsRequest())
    .then((diningHalls) => console.log(diningHalls))
    .catch((err) => console.log(err));

Development

Run the following command to build and publish the npm package

bazel run //:mdining_ts_proto_package.publish