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 state | setup.Signal |
|---|---|
| derived state | setup.Memo |
| async read | setup.Resource |
| keyed async read | setup.ResourceKeyed |
| session-local async write | setup.Action |
| route-bound form post | page Action + setup.RouteForm |
| session durable KV | vango.SessionKey[T] |
| shareable URL state | setup.URLParam |
| behavior on server-owned DOM | Hook(...) |
| client-owned subtree | JSIsland(...) |
| client-local execution boundary | WASMComponent(...) |
For a package-oriented explanation of the authoring surface, see SDKs.