• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
zcpbx

zcpbx

MolstarViewer

Public
Like
MolstarViewer
Home
Code
13
backend
3
docking-viewer
3
frontend
2
mesoscale-explorer
8
mvs-stories
1
shared
2
.vtignore
AGENTS.md
README.md
deno.json
index.html
H
index.tsx
molstar-viewer.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
backend
/
README.md
Code
/
backend
/
README.md
Search
…
Viewing readonly version of main branch: v133
View latest version
README.md

Backend

This directory contains the backend routing and server logic for the Molstar Viewer applications.

Structure

backend/
├── index.tsx       # Main entry point with Hono routing
└── routes/         # Individual route handlers (future)

Main Entry Point

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

Routes

Each route currently returns a simple text response. These will be updated to render the TSX components from frontend/apps/.

Usage

The backend is imported and used as the default export in the root index.tsx:

Create val
import app from "./backend/index.tsx"; export default app;

This makes the Hono app the HTTP handler for the Val.

JSR Imports

All Molstar library dependencies should be imported using the JSR protocol:

Create val
import { Viewer } from "jsr:@zachcp/molstar@5.3.4";

Available exports from @zachcp/molstar:

  • . (main export)
  • ./plugin-ui
  • ./plugin
  • ./plugin-state
  • ./canvas3d
  • ./data
  • ./state
  • ./task
  • ./util
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.