@bozonx/fastcat
v0.7.3
Published
Prebuilt FastCat video editor for self-hosting, with the response headers it needs.
Maintainers
Readme
@bozonx/fastcat
The prebuilt FastCat video editor for hosting it yourself, plus the response headers it needs.
Which package do I need?
| You want to | Package |
| ------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| Embed the editor from FastCat's own hosting (embed.fastcat.video) | @bozonx/fastcat-embed only |
| Serve the editor from your own domain | @bozonx/fastcat to deploy, @bozonx/fastcat-embed in your page |
Both are released together and always share a version number. Keep them equal.
Contents
editor/— the static production build of the web editor (standalone app and the embeddable/embedroute).@bozonx/fastcat/hosting— functions that compute the response headers for any path of the build.HOSTING.md— what a host must serve and why: origin, headers, cross-origin isolation, requirements for media sources.
Quick start
pnpm add -D @bozonx/fastcat
pnpm add @bozonx/fastcat-embedDeploy node_modules/@bozonx/fastcat/editor to the root of a dedicated origin
with headers from resolveHostingHeaders(), then:
import { createFastcatEmbed } from '@bozonx/fastcat-embed';
createFastcatEmbed({
container: document.getElementById('editor')!,
editorUrl: 'https://video.example.com/embed',
});See HOSTING.md for the full contract.
License
MIT
