Public
Like
EditorDemo
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: v47View latest version
This is a Val Town port of the VTLSP (Val Town Language Server Protocol) demo. It provides a CodeMirror-based editor with language server support.
backend/- Hono server that serves the frontend and handles WebSocket connectionsfrontend/- React-based CodeMirror editor with language server integrationcomponents/- React components for language server UI elementsApp.tsx- Main application componentmain.tsx- React entry pointuseLsCodemirror.tsx- Language server integration hookindex.html- HTML template
shared/- Ready for shared utilities and types
- CodeMirror editor with TypeScript support
- Language server integration via WebSocket
- Real-time code completion, hover information, and diagnostics
- Signature help and context menus
- Clean component structure for easy extension
The main entry point is backend/index.ts which serves both the frontend and handles WebSocket connections for the language server.
This is ported from the Cloudflare Workers version at https://github.com/val-town/vtlsp