API Reference

A compact inventory of the Vango app-authoring surface across the vango, setup, and el packages.

#api#reference#packages

API Reference

This is a practical app-builder inventory, not a raw signature dump.

The preferred package surface for normal app code is:

  • github.com/vango-go/vango

  • github.com/vango-go/vango/setup

  • github.com/vango-go/vango/el

Core vango types

You will use these most often:

  • App

  • Config

  • Ctx

  • ActionCtx

  • SetupCtx[P]

  • RenderFn

  • Signal[T]

  • Memo[T]

  • Resource[T]

  • Action[A, R]

  • SessionKey[T]

  • Slot

  • VNode

  • NoProps

  • Response[T]

  • PagedResponse[T]

Core constructors and helpers

  • Setup(...)

  • New(...)

  • MustNew(...)

  • NewSessionKey(...)

  • Default(...)

  • UseCtx()

  • RuntimeScripts(...)

  • Children(...)

  • PreventDefault(...)

  • Tx(...)

  • TxNamed(...)

  • Timeout(...)

  • Interval(...)

  • Subscribe(...)

  • GoLatest(...)

Resource and Action helpers

Resource matchers:

  • OnPending(...)

  • OnLoading(...)

  • OnLoadingOrPending(...)

  • OnReady(...)

  • OnError(...)

Action matchers:

  • OnActionIdle(...)

  • OnActionRunning(...)

  • OnActionSuccess(...)

  • OnActionError(...)

Action concurrency options:

  • CancelLatest()

  • DropWhileRunning()

  • Queue(n)

Response helpers

  • OK(...)

  • Created(...)

  • Accepted(...)

  • NoContent[T]()

  • Paginated(...)

HTTP error helpers:

  • BadRequest(...)

  • Unauthorized(...)

  • Forbidden(...)

  • NotFound(...)

  • Conflict(...)

  • UnprocessableEntity(...)

  • InternalError(...)

  • ServiceUnavailable(...)

Ctx

Common vango.Ctx operations:

  • request access: Request() , Path() , Method() , Query() , QueryParam(...) , Param(...)

  • response and navigation: Status(...) , SetHeader(...) , Redirect(...) , RedirectExternal(...) , Navigate(...)

  • session and auth: Session() , Surface() , Shell() , AuthSession() , User() , SetUser(...) , RevalidateAuth()

  • async and integration: Dispatch(...) , StdContext() , Done() , Emit(...)

  • operational helpers: Logger() , Asset(...) , Mode()

setup package

State allocation:

  • Signal(...)

  • Memo(...)

  • SharedSignal(...)

  • GlobalSignal(...)

Async work:

  • Resource(...)

  • ResourceKeyed(...)

  • Action(...)

Feature helpers:

  • Form(...)

  • RouteForm(...)

  • URLParam(...)

  • OnChange(...)

el package

Common HTML constructors:

  • Html , Head , Body , Main , Header , Footer , Nav , Section , Article , Aside

  • Div , Span , P , H1 through H6

  • Button , Input , Textarea , Select , Option , Label , Form

  • Table , Ul , Ol , Li , Img , Link , LinkEl , Script , Meta , Title

Common SVG constructors:

  • Svg , Path , Circle , Rect , Line , Ellipse , Polygon , Polyline , G , Defs , Use

Common attributes and helpers:

  • Class , Classes , ClassIf , ID , Name , Type , Value , Checked , Selected , Disabled , Placeholder , Href , Src

  • Role , AriaLabel , AriaHidden , AriaExpanded , Data(...) , Attr(...)

  • flow helpers: Fragment , If , IfElse , Unless , When , Show , Switch , Maybe

  • list helpers: Range , RangeKeyed , RangeMap , Key(...)

Client-boundary helpers:

  • Hook(...) , OnEvent(...) , OnEventValidated(...)

  • JSIsland(...) , OnIslandMessage(...) , OnIslandMessageValidated(...)

  • WASMComponent(...) , OnWASMMessage(...) , OnWASMMessageValidated(...)

Package selection map

local statesetup.Signal
derived statesetup.Memo
async readsetup.Resource
keyed async readsetup.ResourceKeyed
session-local async writesetup.Action
route-bound form postpage Action + setup.RouteForm
session durable KVvango.SessionKey[T]
shareable URL statesetup.URLParam
behavior on server-owned DOMHook(...)
client-owned subtreeJSIsland(...)
client-local execution boundaryWASMComponent(...)

For a package-oriented explanation of the authoring surface, see SDKs.