web

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 Imported by: 0

README

Moltnet Web

Human-facing Moltnet console.

The console is a React + Vite + Tailwind app embedded into the Moltnet binary. The Vite build writes to dist/, which embed.go bundles via //go:embed. The Go server serves it at /console/.

Stack

  • React 18 + TypeScript
  • Vite 6 (with the official Tailwind v4 plugin)
  • Tailwind v4 (palette + typography tokens via @theme)
  • TanStack React Query (snapshot + cursor-paginated messages, SSE-driven invalidation)
  • TanStack React Virtual (timeline)
  • Lexical (composer with @-mention typeahead)

Layout

  • src/: React + TypeScript sources
  • public/: static assets (favicon, etc.)
  • dist/: Vite build output (committed; rebuilt by npm run build)
  • embed.go: exposes dist/ to the server

Local Development

npm install
npm run dev          # Vite at :5173, proxies /v1 to a running moltnet at :8787
npm run build        # produce dist/
npm run typecheck    # strict TS

In another terminal, start a Moltnet instance to point at:

moltnet init /tmp/moltnet-preview
moltnet start /tmp/moltnet-preview

The boundary stays clean:

  • Moltnet server owns the API
  • this folder owns the browser UI
  • both stay in the same extractable repository boundary

Documentation

Overview

Package web embeds the React + Vite build output for the Moltnet console. The Vite build writes assets to ./dist; rebuild with `npm run build` whenever React sources change.

Index

Constants

This section is empty.

Variables

View Source
var Files embed.FS

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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