---
title: "Deploy typsmthng"
description: "A browser-native Typst editor with live preview"
category: "Other"
url: https://railway.com/deploy/typsmthng
---

# Deploy typsmthng

A browser-native Typst editor with live preview

**[Deploy typsmthng on Railway](https://railway.com/template/typsmthng)**

- **Creator:** chin's Projects
- **Category:** Other

## Template content

### typsmthng

- **Source:** https://github.com/chinpeerapat/typsmthng
- **Public domain:** Yes

## Documentation

# Deploy and Host typsmthng on Railway

typsmthng is a browser-native Typst editor with live preview, built entirely on WebAssembly. It compiles Typst markup to SVG directly in the browser with no server-side processing. Features include multi-file project management, IndexedDB persistence, PDF export, zip import/export, Vim mode, and PWA installability.

## About Hosting typsmthng

typsmthng is a static single-page application built with React 19, TypeScript, and Vite 7. Deploying it involves running `bun install` and `bun run build` to produce a production bundle, then serving the output from the `dist` directory as static files. The build includes large `.wasm` artifacts (the Typst compiler) which are expected and necessary for in-browser compilation. Railway can serve this as a static site or via a lightweight HTTP server like Caddy. No database, backend API, or external services are required — all compilation and storage happen client-side via WebAssembly and IndexedDB.

## Common Use Cases

- Self-hosting a privacy-first, local-only Typst editor for teams or individuals who don't want to use Typst's official cloud editor
- Providing a collaborative writing environment for academic or technical document authoring without vendor lock-in
- Running a branded or customized Typst editing experience on your own domain with PWA support for offline use

## Dependencies for typsmthng Hosting

- Bun 1.3+ (build-time only)
- Node.js-compatible runtime or static file server (for serving the production build)

### Deployment Dependencies

- [Typst](https://typst.app/) — the modern markup-based typesetting system that typsmthng compiles in-browser
- [typst.ts](https://github.com/Myriad-Dreamin/typst.ts) — the WebAssembly binding used for in-browser Typst compilation
- [Vite](https://vite.dev/) — the build tool that produces the production bundle
- [CodeMirror 6](https://codemirror.net/) — the code editor component powering the editing experience

### Implementation Details

The Nixpacks or Dockerfile build step should run:
```bash
bun install
bun run build
```

Then serve the `dist/` directory as static files. A minimal `Dockerfile` approach:
```dockerfile
FROM oven/bun:1 AS build
WORKDIR /app
COPY . .
RUN bun install &amp;&amp; bun run build

FROM caddy:alpine
COPY --from=build /app/dist /srv
COPY &lt;

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/typsmthng
