feat: add epub streaming with server-side file serving

This commit is contained in:
neon
2026-03-04 04:53:52 -06:00
parent 94a0d51584
commit 38a601675e
15 changed files with 471 additions and 61 deletions
+30
View File
@@ -0,0 +1,30 @@
export interface EpubManifestItem {
id: string
href: string
mediaType: string
properties?: string[]
size: number
}
export interface EpubSpineItem {
idref: string
href: string
mediaType: string
linear: boolean
}
export interface EpubTocItem {
label: string
href?: string
children?: EpubTocItem[]
}
export interface EpubBookInfo {
containerPath: string
rootPath: string
spine: EpubSpineItem[]
manifest: EpubManifestItem[]
toc: EpubTocItem | null
metadata: Record<string, unknown>
coverPath: string | null
}
+1
View File
@@ -14,3 +14,4 @@ export * from "./opds";
export * from "./kobo";
export * from "./staging";
export * from "./file-write";
export * from "./epub";