Skip to main content

Features

Suggestions

We're taking any and all kinds of feature requests, suggestions and recommendations. Please direct them kindly to the github ticket or better yet discussion boards. Thank you!

Typegate

Typegraph

Loading...

Runtimes

Loading...
from typegraph import typegraph, Policy, t, Graph
from typegraph.runtimes.deno import PythonRuntime

@typegraph()
def example_python(g: Graph):
public = Policy.public()
python = PythonRuntime()

g.expose(
public,
add=t.func(
t.struct({"a": t.integer(), "b": t.integer()}),
t.integer(),
# we can provide the code inline using lambdas
python.from_lambda(lambda x: x["a"] + x["b"]),
),
sayHello=python.import_(
t.struct({"name": t.string()}),
t.string(),
# point to pythoin a file on disc
module="hello.py",
name="say_hello"
),
)
}

Prisma

Access a myriad of databases directly from your typegraph. Run queries, mange it's schema, the full orm featureset.

Loading...

Auth

Loading...

Tooling

❯ meta --help                                                                                    at 02:03:36
Declarative API development platform. Build backend components with WASM/Typescript/Python, no matter where and how your (legacy) systems are.

Usage: meta [OPTIONS] [COMMAND]

Commands:
serialize Serialize the typegraphs defined in the specified python file(s) into JSON
dev Push typegraph(s) with development mode features enabled
deploy Push typegraph(s) to typegate
undeploy Undeploy typegraph(s) from typegate
gen Access metagen generators
upgrade Upgrade
completion Generate shell completion
doctor Troubleshoot the installation
new Create a new Metatype project
typegate Access a minimal deno CLI
help Print this message or the help of the given subcommand(s)

Options:
--version
-v, --verbose... Increase logging verbosity
-q, --quiet... Decrease logging verbosity
-C, --dir <DIR> [default: .]
--config <CONFIG> path to the config file
-h, --help Print help
docker run --rm --pull always \
-p 7890:7890 \
-e TG_SECRET=$(openssl rand -base64 64 | tr -d '\n') \
-e TG_ADMIN_PASSWORD="password" \
ghcr.io/metatypedev/typegate:latest

SDK