Liking cljdoc? Tell your friends :D
Clojure only.

vaelii.web

The web browser over a KB: the upper ontology, any term, any sentex and its justifications, all cross-linked.

Public because it is a documented entry point — lein browser, or lein run -m vaelii.web. The implementation is vaelii.impl.web, which is free to change; the dev-only affordances (dev-repl, dev-stop) stay there.

It binds loopback and authenticates nobody; read .github/SECURITY.md before --listen names an address.

The web browser over a KB: the upper ontology, any term, any sentex and its
justifications, all cross-linked.

Public because it is a documented entry point — `lein browser`, or
`lein run -m vaelii.web`.  The implementation is `vaelii.impl.web`, which is free to
change; the dev-only affordances (`dev-repl`, `dev-stop`) stay there.

It binds loopback and authenticates nobody; read `.github/SECURITY.md` before
`--listen` names an address.
raw docstring

-mainclj

(-main & args)

Serve a starter-loaded KB on http://localhost:3000.

lein run -m vaelii.web lein run -m vaelii.web --listen 0.0.0.0 ; reachable off-machine (opt-in)

Serve a starter-loaded KB on http://localhost:3000.

lein run -m vaelii.web
lein run -m vaelii.web --listen 0.0.0.0    ; reachable off-machine (opt-in)
sourceraw docstring

handlerclj

(handler target)
(handler target opts)

The ring handler for target — a KB, an access value, or a catalog holder — behind the Host allowlist for the interface it will be served on (:host, default loopback). Pure request -> response, so it is tested without a socket.

The ring handler for `target` — a KB, an access value, or a catalog holder —
behind the `Host` allowlist for the interface it will be served on (`:host`,
default loopback).  Pure `request -> response`, so it is tested without a socket.
sourceraw docstring

startclj

(start target opts)

Start a Jetty server for target and return it (non-blocking). Opts: :port (default 3000), :host (default loopback), and :reload? to re-resolve the handler per request so a namespace reload reaches the running server.

Start a Jetty server for `target` and return it (non-blocking).  Opts: `:port`
(default 3000), `:host` (default loopback), and `:reload?` to re-resolve the handler
per request so a namespace reload reaches the running server.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close