layerengine

package module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

layerengine

Simple LLM generated lua code running engine lib written in Golang.

🚧 WIP experimental project.

This project is under development and has experimental status and is not intended for serious or production use. Expect frequent changes and occasional breaking updates.

How it works

You write a flow — a YAML file that breaks your task into a few small steps called layers. Each layer simply states what it takes in, what it does and what it gives out.

The engine then does three things:

  1. Reads your flow. Validates the YAML and registers the flow by name.
  2. Gets an LLM to write the code. For each layer, it sends the layer's description and its input/output contract to an LLM (OpenAI or Anthropic). The LLM replies with a small Lua function, which is compiled and stored with the layer.
  3. Runs the flow. You pass in your inputs, the engine runs each layer in order, and feeds each layer's output or earlier inputs into the next layer as inputs — like an assembly line. The last layer's output is the flow's result.

For safety, every layer runs in its own private Lua environment with a whitelisted standard library and a 60-second timeout. A layer can't reach the filesystem, spawn a process, or hang the engine, and its variables can't leak into other layers — when a layer finishes, its environment is closed before the next one starts.

Generated code starts with pure computation. When a layer needs to do something real — call an API, need http client or database connection to read/write data — you register a module, whose functions the sandbox binds as a global named after the module (weather.temperature(...)); see Modules.

Quickstart

Requires Go 1.26 or newer — that is the floor in go.mod.

# 1. Clone
git clone https://github.com/slashbase/layerengine.git
cd layerengine

# 2. Set a provider key (either one works)
export OPENAI_API_KEY="sk-..."
#   or
export ANTHROPIC_API_KEY="sk-ant-..."

# 3. Run the arithmetic example
go run ./examples/arithmetic

Expected output:

---OUTPUT---
map[amount_string:Your final amount is ₹800]

Writing a flow spec

A flow is a YAML document with a name, description, typed input, and an ordered layers list. Each layer declares the inputs it consumes and the typed outputs it produces. A layer's input is either a flow-level input or the output of an earlier layer.

name: arithmetic
description: takes two numbers, adds them, multiplies the result by 100 or given multiplier, and returns a formatted rupee amount string.
input:
  - number_a:
      type: number
      description: first number
  - number_b:
      type: number
      description: second number
  - multipier:
      type: number
      description: multipier number
      optional: true
layers:
  - name: add_numbers
    description: adds number_a and number_b together
    input:
      - number_a
      - number_b
    output:
      - sum_result:
          type: number
          description: the sum of number_a and number_b
  - name: multiply_numbers
    description: multiplies the sum by multipier if given or 100.
    input:
      - sum_result
      - multipier
    output:
      - multiplied_result:
          type: number
          description: the product of sum_result and multipier (or 100 if multipier is absent)
  - name: format_amount
    description: formats the multiplied result into the string "Your final amount is ₹{number}"
    input:
      - multiplied_result
    output:
      - amount_string:
          type: string
          description: the formatted rupee amount string

Using it as a library

go get github.com/slashbase/layerengine
package main

import (
	"fmt"
	"os"

	"github.com/slashbase/layerengine"
	"github.com/slashbase/layerengine/config"
)

func main() {
	// FromEnv picks a provider from OPENAI_API_KEY or ANTHROPIC_API_KEY.
	// For an explicit choice, build a config.Config{Model: ..., APIKey: ...}.
	cfg, err := config.FromEnv()
	if err != nil {
		panic(err)
	}
	generator, err := cfg.CodeGen()
	if err != nil {
		panic(err)
	}

	engine := layerengine.NewLayerEngine(generator)

	spec, _ := os.ReadFile("flow.yaml")
	if err := engine.LoadSpec(string(spec)); err != nil {
		panic(err)
	}

	out, err := engine.RunFlow("flow_name", map[string]any{
		"input_1": 10,
		"input_2": "string value",
	})
	if err != nil {
		panic(err)
	}
	fmt.Println(out)
}
Engine API at a glance
Method What it does
LoadSpec(spec string) error Validate a spec, generate every layer and load the flow — all or nothing
GenerateLayers(flow *Flow) error Generate Lua for every layer and store it on the flow, without loading
GenerateLayer(flow *Flow, index int) error Regenerate one layer, e.g. after a retry
LoadLayers(layers []Layer) error Compile and load hand-written layers; no LLM involved
LoadFlow(flow Flow) error Register a flow whose layers are already loaded
Layer(name string) (*Layer, bool) Read back a loaded layer, including its generated Code
RunFlow(name string, inputs map[string]any) (any, error) Run a flow with lenient input coercion
RunFlowWithOptions(name string, inputs map[string]any, opts CoerceOptions) (any, error) The same, with a strict / keep-undeclared input policy
RunLayer(name string, inputs []any) (any, error) Run one loaded layer on positional arguments
RunFlowResult(name string, inputs map[string]any) (FlowResult, error) The same run, with the last layer's outputs keyed by their declared names
Flow(name string) (*Flow, bool) Read back a loaded flow's definition
GetModules() []modules.Module The module set every layer sandbox gets (a copy)

NewLayerEngine(generator) needs an LLM; NewBlankLayerEngine() has none but loads the same built-in modules, so a hand-loaded layer runs against the sandbox the codegen prompt describes — system.version() resolves on both.

Every run method has a …Context variant — RunFlowContext, RunFlowResultContext, RunLayerContext, RunFlowWithOptionsContext. The per-layer 60s timeout is derived from the context you pass, so cancelling it stops the layer that is running and the error wraps context.Canceled rather than reporting a timeout. Without a context the run is bounded only by that per-layer limit, so a ten-layer flow can hold a caller for ten minutes.

Layer names are engine-global. A flow's layers are keyed by name in one engine-wide map, so two flows cannot both own a layer called format with different code: loading the second fails and names the flow that already holds the name. Identical code is shared, which keeps re-loading the same spec idempotent. Layers loaded by hand through LoadLayers are unowned, and a later hand load may replace them.

Modules

A layer's Lua starts with pure computation only — the standard library is deliberately narrow (see Execution model & safety). Real work happens through a module: a small Go type that publishes a table of functions and describes itself so the LLM knows how to call it.

A module implements four methods:

type Module interface {
	Name() string                    // the global it is bound to: "modname" → modname.<fn>(...)
	Init(l *lua.LState) *lua.LTable  // the functions to expose
	Usage() string                   // free-text; used by codegen as notes; rendered only when Manifest is zero
	Manifest() modules.Manifest      // used by codegen; the functions it exposes, as data
}

The manifest declares each function once, as data, instead of relying on prose the model has to parse:

func (Weather) Manifest() modules.Manifest {
	return modules.Manifest{
		APIVersion: modules.APIVersion,
		Notes: "fetches live weather from live weather API",
		Functions: []modules.Function{{
			Name:    "temperature",
			Doc:     "Temperature in degrees Celsius for a city.",
			Params:  []modules.Param{{Name: "city", Type: "string"}},
			Returns: []modules.Return{{Name: "celsius", Type: "number"}},
		}},
	}
}

With a manifest, each function renders as a single call-shaped line, the way a module author would write it by hand — return names on the left, types inline, the doc after a dash:

celsius:number = weather.temperature(city:string) - Temperature in degrees Celsius for a city.

An argument with a Default renders as limit?:number=10 and may be omitted by the generated code, whether or not Optional is set.

Notes renders once per module in the same shape: weather - fetches live weather from live weather API. A module's Usage() is only rendered when it declares nothing — the zero modules.Manifest{} — and then it appears under a <name> heading. Modules and functions are sorted, so the same module set always produces the same prompt. modules.Validate(mods) reports duplicate or unusable module names and malformed manifests.

Register modules on the engine before loading a flow:

engine := layerengine.NewLayerEngine(generator)
if err := engine.LoadModules([]modules.Module{Module1{}, Module2{}}); err != nil {
	log.Fatal(err)
}

Two things happen. Each module table is bound as a global named after the module in every layer's sandbox — so modname is modname.fnname(...), and each module's surface is rendered into the prompt sent to the LLM, so the generated code knows the calls exist, their arity, and what they return. LoadModules adds new modules to the engine alongside the built-in system module.

Because a module name is a global, it has to be free in the sandbox, so LoadModules checks it and can fail: a module called string would replace the standard library's string table, and one called print would replace a base-library function the prompt says is available — both rejected with the name in the error, and a rejected set leaves the engine unchanged. The reserved set is read off a real sandbox rather than hardcoded, so opening another library later cannot leave the check behind.

LoadModules also holds the manifest to what Init actually published. Every declared path has to be a function on the table the module returned, so a manifest that names shapes.circle.area while Init builds a flat table fails at registration with the full path in the error, instead of as a nil index inside a layer that names neither the module nor the manifest. A module with the zero manifest is skipped: there is no declaration to hold it to.

The external-modules example is a complete worked version: two modules over two live APIs, wired through three layers.

The shapes example is the smallest one that shows grouping: a single module whose manifest names are paths, so one module answers shapes.circle.area(radius) and shapes.rect.area(width, height). It also prints the rendered prompt, so you can see the four lines the model is given without spending a token on generation.

Keep a module's surface tight. It should own its endpoint and take only the arguments the layer supplies, so generated code can never reach a host you didn't choose — that is the difference between exposing a capability and exposing the network.

Execution model & safety

  • Per-layer Lua isolation. Each runLayer call spins up a fresh *lua.LState and Close()s it (and cancels its context) before returning. Globals set by one layer cannot reach the next.
  • Per-layer timeout. layerExecutionTimeout is 60s; a layer that loops forever is killed, not allowed to hang the flow.
  • Codegen timeout. LLM requests use a 60s timeout.
  • Concurrency safety. The engine guards its layer/flow registries with an RWMutex; RunFlow takes defensive copies of the layer slice so a concurrent LoadSpec can't mutate a running flow's view.
  • Modules under concurrency. Every layer builds its own Lua state and Init runs once per state, so tables a module returns are per-layer. The module value is shared by every layer of every concurrent run: keep mutable state off its fields, or guard it.

What the layer sandbox covers, and what it doesn't. Each layer runs with only base, string, table, math and the module tables you register. os, io, debug and package are not opened, and the dynamic loaders (load, loadstring, dofile, getfenv, setfenv, collectgarbage) are removed. Generated code therefore cannot read files, spawn processes, read the environment, or exit the process — host capability is reachable only through a module you expose deliberately as a global in the sandbox.

What is still not covered: there is no hard memory cap. A watchdog samples the process heap every 50 ms and cancels a layer that grows past ~256 MiB, but it is approximate and process-wide, and it is only meaningful for sequential execution — a single very large allocation can overshoot before the poller observes it. True isolation (a kernel-enforced address-space limit) would mean running layers in a child process, which the engine does not do yet. That, together with the experimental status, is why this is still not for production use.

Examples

Example What it shows
hello-world smallest single-layer hello world flow
arithmetic multi-layer pipeline with an optional input
fizzbuzz branching-ish logic inside generated Lua
manual-run engine loads the flows manually without LoadSpec method
external-modules two custom modules calling live HTTP APIs across three layers
typed-inputs input coercion: lenient conversion, Strict rejection, undeclared arguments
shapes one module publishing several groups: shapes.circle.area(...) and shapes.rect.area(...)
personal-expenses five layers over a monthly budget: parsing, cap checks, savings rate, and a verdict that moves with income

Each example lives under examples/<name>/. Most are a flow.yaml and a main.go; external-modules and shapes also carry the module implementations they register.

Contributing

This is an experiment — contributions that keep the core small and the contract clear are very welcome. Good first patches:

  • Add a ModelID for a model that isn't in the registry yet (one line in codegen/models.go).
  • Write a new example flow under examples/ that shows off something the current toys don't.
  • Add a system-level module under modules/ and document what it exposes to generated Lua. Example-specific modules don't belong in the core — register them from your own code with LoadModules (see external-modules) and publish them as separate repositories.
  • Add a test for a codegen prompt or a value-conversion edge case.

Before opening a PR: go test ./... should pass. Keep generated Lua correct and the spec format backward-compatible, or call out a breaking change explicitly.

License

This project is licensed under the MIT License. See the LICENSE file for license rights and limitations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CoerceInputs added in v0.2.1

func CoerceInputs(inputs []FlowInput, args map[string]any, opts CoerceOptions) (map[string]any, error)

CoerceInputs maps the arguments for a flow onto the flow's declared inputs, converting each value to the type the input declares. It returns a new map and never modifies args.

Only declared inputs appear in the result, unless KeepUndeclared is set. An input that is absent from args, or present as nil, is skipped when it is Optional and reported as missing otherwise.

The type vocabulary is JSON Schema's. validator/flow.go rejects an unknown value of `type` when the spec is loaded, so a typo such as "str" never reaches this function. `type` is itself optional; an input that omits it is passed through untouched.

Of the six types the validator accepts, this function converts four:

string   numbers and booleans are formatted; arrays and objects are rejected
number   a numeric string is parsed; other non-numbers are rejected
integer  as number, plus the value must be a whole number
boolean  a "true"/"false" string is parsed; other non-booleans are rejected

"array" and "object" are accepted but not converted: a caller that sends a slice or a map is already sending the shape the layer expects.

A value that already has the declared type is returned as-is and keeps its Go type: an int stays an int, a float64 stays a float64. Only converted values are re-typed (a numeric string becomes a float64). Every value this function can produce is one ConvertGoValueToLuaValue accepts.

func ConvertGoValueToLuaValue

func ConvertGoValueToLuaValue(input any) (lua.LValue, error)

ConvertGoValueToLuaValue converts a Go value into a Lua value. Unsupported values return an error rather than crashing the caller.

func ConvertGoValuesToLuaValues

func ConvertGoValuesToLuaValues(inputs []any) ([]lua.LValue, error)

func ConvertLuaValueToGoValue

func ConvertLuaValueToGoValue(value lua.LValue) (any, error)

ConvertLuaValueToGoValue converts a Lua value to its Go representation.

The conversion is bounded: a table that reaches itself, or nests deeper than maxValueDepth, returns an error instead of recursing. This runs after the layer's context is gone, so the bound is the only thing standing between generated code and a process-wide crash.

func ConvertLuaValuesToGoValues

func ConvertLuaValuesToGoValues(inputs []lua.LValue) ([]any, error)

func MapToStruct added in v0.0.2

func MapToStruct(m map[string]any, v any)

MapToStruct populates the struct pointed to by v from a map[string]any, using each field's `key` tag to look up values in the map.

func ParseAndCompileLuaCode

func ParseAndCompileLuaCode(codeStr string) (*lua.FunctionProto, error)

func StructToMap added in v0.0.2

func StructToMap(v any) map[string]any

StructToMap converts the struct (or struct pointed to by v) into a map[string]any, using each field's `key` tag as the map key. Fields tagged `key:"-"` or with no tag are skipped. This is the inverse of MapToStruct for round-tripping Layer/Flow values.

Types

type CoerceOptions added in v0.2.1

type CoerceOptions struct {
	// Strict rejects a JSON-type mismatch instead of converting it. A caller
	// that passes the string "5" for a declared number input gets an error
	// rather than 5. A value that already has the declared type is always
	// accepted, so Strict only affects values that would have been converted.
	Strict bool

	// KeepUndeclared forwards arguments the flow does not declare, untouched,
	// instead of dropping them. This is the pre-coercion behaviour of RunFlow,
	// and it is the escape hatch for a flow whose inputs are not declared.
	KeepUndeclared bool

	// OnUndeclared is called once for each dropped argument, with the argument
	// name. The engine never writes to stdout, so reporting is the caller's job.
	// It is not called for arguments forwarded under KeepUndeclared.
	OnUndeclared func(name string)
}

CoerceOptions controls how CoerceInputs treats the arguments handed to a flow. The zero value is the lenient policy: values are converted where they can be, and arguments the flow does not declare are dropped.

type Flow added in v0.0.2

type Flow struct {
	Name        string      `key:"name"`
	Description string      `key:"description"`
	Input       []FlowInput `key:"input"`
	Layers      []Layer     `key:"layers"`
}

type FlowInput added in v0.0.2

type FlowInput struct {
	Name        string `key:"name"`
	Type        string `key:"type"`
	Description string `key:"description"`
	Optional    bool   `key:"optional"`
}

type FlowResult added in v0.5.0

type FlowResult struct {
	Outputs map[string]any
	Layer   string
}

FlowResult is what a flow run produced: the last layer's outputs keyed by the names that layer declares, and the name of the layer that produced them.

Outputs is keyed rather than positional because a caller holding a spec it did not write cannot know the declaration order. It is never nil: a flow whose last layer declares no outputs returns an empty map.

type Layer

type Layer struct {
	Name        string             `key:"name"`
	Description string             `key:"description"`
	Input       []string           `key:"input"`
	Output      []LayerOutput      `key:"output"`
	FnProto     *lua.FunctionProto `key:"-"`
	Code        string             `key:"-"`
}

type LayerEngine

type LayerEngine struct {
	// contains filtered or unexported fields
}

func NewBlankLayerEngine added in v0.0.1

func NewBlankLayerEngine() *LayerEngine

"Blank" means no LLM: the built-in modules are loaded all the same, so the sandbox is the one the codegen prompt describes and a hand-loaded layer calling system.version() behaves as it would on a full engine.

func NewLayerEngine

func NewLayerEngine(codegenertor *codegen.CodeGen) *LayerEngine

func (*LayerEngine) Flow added in v0.5.0

func (le *LayerEngine) Flow(name string) (*Flow, bool)

Flow returns a copy of a loaded flow's definition by name, so a caller can read back what a spec declared — the input types, and which outputs the last layer produces — after LoadSpec has thrown the parsed spec away.

The copy is shallow: the Input and Layers slices are shared with the engine's value, so read them rather than mutate them.

func (*LayerEngine) GenerateLayer added in v0.2.0

func (le *LayerEngine) GenerateLayer(flow *Flow, index int) error

GenerateLayer generates the Lua source for a single layer of flow, using the flow's declared inputs and the outputs of the layers before it, and stores it on flow.Layers[index].Code.

This is the API for callers that want to retry per layer — regenerate one layer without regenerating the whole flow.

func (*LayerEngine) GenerateLayers added in v0.0.2

func (le *LayerEngine) GenerateLayers(flow *Flow) error

func (*LayerEngine) GetModules added in v0.2.0

func (le *LayerEngine) GetModules() []modules.Module

GetModules returns the module set every layer sandbox gets.

The slice is a copy: appending to it cannot reach the engine's own set, and the read is guarded like every other accessor here.

func (*LayerEngine) Layer added in v0.2.0

func (le *LayerEngine) Layer(name string) (*Layer, bool)

Layer returns a copy of a loaded layer by name. The copy carries the generated Lua in its Code field, so callers can inspect or persist it without holding the engine's own value.

The copy is shallow: the Input/Output slices and the compiled FnProto are shared with the engine's layer, so read them rather than mutate them.

func (*LayerEngine) LoadFlow

func (le *LayerEngine) LoadFlow(flow Flow) error

LoadFlow registers a flow after confirming that every referenced layer was loaded successfully.

func (*LayerEngine) LoadLayers

func (le *LayerEngine) LoadLayers(layers []Layer) error

LoadLayers compiles and loads all layers. It leaves the engine unchanged if any layer cannot be compiled, or if a compiled chunk does not define a global function named after its layer.

Layers loaded this way are unowned: no flow is recorded as their source, so a later hand load may replace them. Flow-owned layers come from LoadSpec, which is the path that refuses to let a second flow replace a name.

func (*LayerEngine) LoadModules added in v0.1.0

func (le *LayerEngine) LoadModules(mods []modules.Module) error

LoadModules adds modules to the engine, after holding the set to what it claims. See checkModules for the three checks and their order.

A rejected set leaves the engine unchanged. This is where the checks belong because it is where the module set becomes final: a module accepted here is trusted by every layer that runs afterwards.

func (*LayerEngine) LoadSpec added in v0.0.1

func (le *LayerEngine) LoadSpec(spec string) error

LoadSpec validates a flow spec, generates every layer, and loads the flow.

It is all or nothing: layers are compiled into a local map and the engine is written once, at the end, so a spec that fails at registration leaves no half-loaded layers behind.

func (*LayerEngine) RunFlow

func (le *LayerEngine) RunFlow(name string, inputValues map[string]any) (any, error)

RunFlow runs a loaded flow. Input values are converted to the types the flow declares, and arguments the flow does not declare are dropped; see CoerceInputs for the rules. Callers that want a different policy — strict type checking, or forwarding undeclared arguments — use RunFlowWithOptions.

func (*LayerEngine) RunFlowContext added in v0.5.0

func (le *LayerEngine) RunFlowContext(ctx context.Context, name string, inputValues map[string]any) (any, error)

RunFlowContext is RunFlow with a caller-supplied context; cancelling it stops the flow at the layer that is running.

func (*LayerEngine) RunFlowResult added in v0.5.0

func (le *LayerEngine) RunFlowResult(name string, inputValues map[string]any) (FlowResult, error)

RunFlowResult is RunFlow with the result named: the last layer's outputs keyed by the names that layer declares, and the name of the layer that produced them. Use it when the caller did not write the spec and cannot know the positional order of the result.

func (*LayerEngine) RunFlowResultContext added in v0.5.0

func (le *LayerEngine) RunFlowResultContext(ctx context.Context, name string, inputValues map[string]any) (FlowResult, error)

RunFlowResultContext is RunFlowResult with a caller-supplied context.

func (*LayerEngine) RunFlowWithOptions added in v0.2.1

func (le *LayerEngine) RunFlowWithOptions(name string, inputValues map[string]any, opts CoerceOptions) (any, error)

RunFlowWithOptions is RunFlow with an explicit input policy.

func (*LayerEngine) RunFlowWithOptionsContext added in v0.5.0

func (le *LayerEngine) RunFlowWithOptionsContext(ctx context.Context, name string, inputValues map[string]any, opts CoerceOptions) (any, error)

RunFlowWithOptionsContext is RunFlowWithOptions with a caller-supplied context.

func (*LayerEngine) RunLayer

func (le *LayerEngine) RunLayer(name string, inputValues []any) (any, error)

RunLayer runs one loaded layer on positional arguments.

func (*LayerEngine) RunLayerContext added in v0.5.0

func (le *LayerEngine) RunLayerContext(ctx context.Context, name string, inputValues []any) (any, error)

RunLayerContext is RunLayer with a caller-supplied context.

Cancelling the context stops the layer: the per-layer timeout is derived from it, so cancellation interrupts the running Lua chunk instead of waiting out the 60s limit. A cancelled run reports context.Canceled, not a timeout.

type LayerOutput added in v0.0.2

type LayerOutput struct {
	Name        string `key:"name"`
	Type        string `key:"type"`
	Description string `key:"description"`
}

type LayerRunner

type LayerRunner struct {
	// contains filtered or unexported fields
}

func NewLayerRunner

func NewLayerRunner(ctx context.Context, mods []modules.Module) *LayerRunner

func (*LayerRunner) Close

func (cr *LayerRunner) Close()

func (*LayerRunner) GlobalFunctionAt added in v0.4.0

func (cr *LayerRunner) GlobalFunctionAt(root, path string) bool

GlobalFunctionAt reports whether the dotted path under global root resolves to a function: GlobalFunctionAt("shapes", "circle.area") is true when shapes.circle.area is a function. Every segment but the last must be a table.

func (*LayerRunner) HasGlobal added in v0.4.0

func (cr *LayerRunner) HasGlobal(name string) bool

func (*LayerRunner) HasGlobalFunction added in v0.3.0

func (cr *LayerRunner) HasGlobalFunction(name string) bool

func (*LayerRunner) LoadFunction

func (cr *LayerRunner) LoadFunction(fnProto *lua.FunctionProto) error

func (*LayerRunner) ReadResult

func (cr *LayerRunner) ReadResult(outputLen int) ([]lua.LValue, error)

func (*LayerRunner) RunFunction

func (cr *LayerRunner) RunFunction(funName string, arguments []lua.LValue, outputLen int) error

Directories

Path Synopsis
Package config turns a model choice and credentials into a code generator.
Package config turns a model choice and credentials into a code generator.
examples
arithmetic command
fizzbuzz command
hello-world command
manual-run command
shapes command
typed-inputs command
manifest
Package manifest describes a module's function surface as data, so the codegen prompt can be rendered from a strict format instead of free text.
Package manifest describes a module's function surface as data, so the codegen prompt can be rendered from a strict format instead of free text.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址