0.1.8 • Published 1 year ago

@artmuseo/topimaton v0.1.8

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

topimaton

Topimaton is an opinionated framework for designing RPCs. Developed at Artmuseo to promote a specific set of RPC design patterns and the automatic generation of their clients, it is NOT an alternative to IDL-based cross-language frameworks such as gRPC and Thrift.

STOP 🛑

Before using this software, consider the following.

Topimaton is...

:white_check_mark: An opinionated framework for RPC development.

:white_check_mark: An experimental solution to the last mile problem in RPC development.

:white_check_mark: A tool for extending the patterns of @artmuseo/makette to services.

:white_check_mark: A semantically empowered service definition framework.

Topimaton is NOT...

:x: An alternative to Interface Definition Language frameworks such as gRPC and Thrifty. In fact, Artmuseo uses gRPC internally for the layers immediately below our Topimaton target.

:x: A production-ready tool for RPC development. Though Artmuseo uses Topimaton for its application, we do not endorse its usage in production externally.

:x: A sure fire means to improve RPC performance.

You should consider using Topimaton if...

:white_check_mark: You do not want to use gRPC and Envoy to provide the last mile connection between your RPC services and your web application.

:white_check_mark: You want to write service definitions in the language in which they are implemented. (Or, not write them at all!)

:white_check_mark: You like the RPC design principles Topimaton enshrines.

:white_check_mark: You have been using @artmuseo/makette.

:white_check_mark: You want to experiment with the benefits of Topimaton's semantic system.

Quick Start

In version 0.x.x, Topimaton only supports Typescript.

Install

yarn add @artmuseo/topimaton

Implement

import { makette } from @artmuseo/makette;
import { topimaton } from @artmuseo/topimaton;

// create the add body
const add = async (args : {a : number, b : number}, c : any)=>{
    return args.a + args.b;
};

// create a model around the add body
const addModel =makette.method.models.Model({
    body : add,
    defaultContext : {}
});

// create a controller around the add model
const addController = topimaton.methods.controllers.ServerController({
    model : addModel
});

// create the view
const addView = topimaton.methods.views.ServerView({
    controller : addController
});

const arithTopic = topimaton.topics.Topic({
    views : {
        add : addView
    }
});

const mathGenre = topimaton.genres.Genre({
    topics : {
        arith : arithTopic
    }
});

const mathMachine = topimaton.topimata.Topimaton({
    genres : {
        math  : mathGenre
    }
});

Serve

const app = topimaton.methods.views.TopimatonServer(mathMachine);
await new Promise((resolve)=>app.listen(8080, ()=>resolve(true)));

Generate

const mathMachineClient = topimaton.clients.Client(mathMachine);
const res = await mathMachineClient.math.arith.add({ a : 2, b : 2 }); // 4

Translate

import { topimatonStone } from "@artmuseo/topimaton-stone";

// write a Swift package
topimatonStone.swift.packageSwift(mathMachine);

v1.x.x Roadmap

Support ProtoBuf

Protocol Buffers are used by gRPC to reduce message size and increase serialization and deserialization speed. Topimaton will seek to add ProtoBuf tranfers as an additional optional way to get objects from the server.

Support CapnProto

CapnProto can outperform Protocol Buffers due to removing encoding and decoding steps in the data interchange process. Topimaton will seek to add CapnProto as its preferred high-performance binary communication protocol.

Support Python Topimata

Topimaton services currently can only be defined in Typescript. We will seek to add support for building them in Python as well.

Additional Translation for @artmuseo/topimaton-stone

Currently, @artmuseo/topimaton-stone supports translation from TypeScript to...

  • Swift
  • Kotlin

We will additional seek to add translation from TypeScript to...

  • Python

And, tranlsation from Python to...

  • TypeScript
  • Swift
  • Kotlin

Smart RPC and SDK Generation

Topimaton Stone's semantic engine will enable the experimental automatic generation of SDKs from Topimata. These SDKs will be layered on top of the generated clients provided suggested optimal means to perform common tasks which are predicted from the structure of the RPC.

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.90

2 years ago

0.0.89

2 years ago

0.0.86

2 years ago

0.0.85

2 years ago

0.0.84

2 years ago

0.0.83

2 years ago

0.0.82

2 years ago

0.0.81

2 years ago

0.0.80

2 years ago

0.0.79

2 years ago

0.0.78

2 years ago

0.0.77

2 years ago

0.0.76

2 years ago

0.0.75

2 years ago

0.0.65

2 years ago

0.0.64

2 years ago

0.0.63

2 years ago

0.0.62

2 years ago

0.0.61

2 years ago

0.0.60

2 years ago

0.0.59

2 years ago

0.0.58

2 years ago

0.0.57

2 years ago

0.0.56

2 years ago

0.0.55

2 years ago

0.0.54

2 years ago

0.0.53

2 years ago

0.0.52

2 years ago

0.0.51

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.48

2 years ago

0.0.47

2 years ago

0.0.46

2 years ago

0.0.45

2 years ago

0.0.44

2 years ago

0.0.43

2 years ago

0.0.42

2 years ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.20

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago