Public
Like
MolstarViewer
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v138View latest version
This directory contains the backend routing and server logic for the Molstar Viewer applications.
backend/
├── index.tsx # Main entry point with Hono routing
└── routes/ # Individual route handlers (future)
index.tsx sets up a Hono app with routes for all four Molstar applications:
/- Home page listing all available apps/viewer- Standard Mol* viewer/docking-viewer- Docking viewer for molecular docking results/mesoscale-explorer- Mesoscale structure explorer/mvs-stories- Interactive molecular visualization stories
Each route currently returns a simple text response. These will be updated to render the TSX components from frontend/apps/.
The backend is imported and used as the default export in the root index.tsx:
This makes the Hono app the HTTP handler for the Val.
All Molstar library dependencies should be imported using the JSR protocol:
Available exports from @zachcp/molstar:
.(main export)./plugin-ui./plugin./plugin-state./canvas3d./data./state./task./util