Conversation
94d1e13 to
85e6d44
Compare
The new `jp-serve-web` plugin serves a read-only web interface for
browsing JP conversations. It integrates with the command plugin system
and communicates with the `jp` host over the JSON-lines plugin protocol
(stdin/stdout).
Run it via `jp serve web`, or with custom options:
jp serve web --bind 0.0.0.0 --port 8080
The server defaults to `127.0.0.1:3000`. Bind and port can also be set
in `.jp/config.toml` under `[plugins.command.serve.options]`.
The plugin fetches conversation data on demand through the host protocol
and renders it as HTML using `maud` templates, with `axum` as the HTTP
server. Markdown is rendered via `comrak`. A custom tracing layer
buffers log events during startup, then forwards them to the host as
`PluginToHost::Log` messages once the connection is established.
Signed-off-by: Jean Mertz <git@jeanmertz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The new
jp-serve-webplugin serves a read-only web interface for browsing JP conversations. It integrates with the command plugin system and communicates with thejphost over the JSON-lines plugin protocol (stdin/stdout).Run it via
jp serve web, or with custom options:The server defaults to
127.0.0.1:3000. Bind and port can also be set in.jp/config.tomlunder[plugins.command.serve.options].The plugin fetches conversation data on demand through the host protocol and renders it as HTML using
maudtemplates, withaxumas the HTTP server. Markdown is rendered viacomrak. A custom tracing layer buffers log events during startup, then forwards them to the host asPluginToHost::Logmessages once the connection is established.