4
0
Fork
You've already forked tap-editor
0
No description
  • Go 57.4%
  • TypeScript 33%
  • HTML 4.8%
  • CSS 4%
  • Dockerfile 0.8%
2025年09月03日 16:58:23 -04:00
server Changed namespace to tapapp.lol 2025年09月03日 16:58:23 -04:00
web Update tap-toolbar.ts 2025年09月03日 15:07:09 -04:00
.dockerignore First commit 2025年08月30日 15:55:56 -04:00
.gitignore First commit 2025年08月30日 15:55:56 -04:00
Dockerfile First commit 2025年08月30日 15:55:56 -04:00
fly.staging.toml First commit 2025年08月30日 15:55:56 -04:00
fly.toml First commit 2025年08月30日 15:55:56 -04:00
LICENSE First commit 2025年08月30日 15:55:56 -04:00
package-lock.json Fixed deployment error 2025年08月30日 16:09:42 -04:00
package.json Fixed deployment error 2025年08月30日 16:09:42 -04:00
README.md Added link to demo server 2025年08月30日 15:58:59 -04:00
tsconfig.json First commit 2025年08月30日 15:55:56 -04:00

Tap – A Minimal Fountain Editor (Go + Web Components)

This repository hosts a Go-powered Fountain editor UI implemented with vanilla Web Components and server-side rendering in Go templates.

The app renders HTML previews via a Go endpoint and uses a small client bundle built with esbuild. No React/Next.js is required.

A demo server is running at https://tap.diggetal.com.

Export features

  • Export builds a .fountain file in plain text format and triggers a download.
  • Download PDF generates a PDF from the preview content and triggers a download

Development

Run the web components watcher in one terminal:

npm run dev:wc

Run the Go server in another terminal:

npm run dev:go
# or manually:
# (cd server && PORT=8088 go run .)

Open the app at:

http://localhost:8088

What’s included

  • web/ – TypeScript sources for Web Components
    • <tap-app> top-level orchestrator
    • <tap-toolbar> controls (Preview toggle, Hide notes, Export)
    • <tap-editor> textarea-based editor (MVP)
    • <tap-preview> renders HTML from the Go /preview endpoint
  • server/templates/ – Go HTML templates
    • index.html renders <tap-app> and includes /static/js/tap.js
  • server/static/ – CSS and built JS
    • styles.css screenplay styles
    • js/tap.js built bundle output
  • server/tap/ – Go Fountain parser/renderer

Build (production bundle)

npm run build:wc