GithubHelp home page GithubHelp logo

isabella232 / pbnj-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medium/pbnj

0.0 0.0 0.0 9.79 MB

JavaScript protocol buffer schema parser and template based code generator

License: Other

Shell 0.46% JavaScript 99.32% Closure Templates 0.22%

pbnj-1's Introduction

pbnj

Build Status

JavaScript protocol buffer schema parser and template based code generator

This project is functional and being used in real projects. But is in its early days and likely to be in a state of flux for some time.

Protocol Buffers

Protocol buffers were designed as a way to automatically serialize and deserialize data, in a fast and efficient manner. You define how you want your data to be structured in the special proto format, and then use special generated code to read and write your data.

This project focuses on using the proto schema definition as a generalized basis for code generation. Serialization / deserialization is a side effect of the generated code and this project is un-opinionated on such matters -- you may use JSON, binary data, JS Arrays, Message Pack, whatever.

To learn more about the proto buffer format, visit Google's Language Guide.

Rationale

  1. The official protoc compiler does have plugin support for customizing code generation, but the tool chain I was working with was nodejs and I wanted consistency. Also, exposing an object representation of the schema allows for other tools and analysis, for example schema validation and tests.

  2. I was unhappy with existing JS implementations. They seem to either be partially open sourced or else rely on unstructured JSON as their format in JS.

Author

Dan Pupius (personal website).

License

Copyright 2013 Daniel Pupius. Apache License, Version 2.0.

pbnj-1's People

Contributors

nicks avatar eduardoramirez avatar sachee avatar koop avatar jyhsu avatar andrew3886 avatar dmccartney avatar mrblackus avatar giannic avatar kylehg avatar traviscrawford 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.