MCPcopy
hub / github.com/pacexy/flow

github.com/pacexy/flow @main sqlite

repository ↗ · DeepWiki ↗
1,102 symbols 2,682 edges 190 files 313 documented · 28%
README

Flow - Open Source Software (OSS)

Redefine ePub reader

Free. Open source. Browser-based.

Features

  • Grid layout
  • Search in book
  • Image preview
  • Custom typography
  • Highlight and Annotation
  • Theme
  • Share/Download book with link
  • Data export
  • Cloud storage

For planed features, see our roadmap.

Development

Prerequisites

Clone the repo

git clone https://github.com/pacexy/flow

Install the dependencies

pnpm i

Setup the environment variables

Copy and rename all .env.local.examples to .env.local and setup the environment variables.

Run the apps

pnpm dev

Self-hosting

Before self-hosting, you should setup the environment variables.

Docker

You can use docker-compose:

docker compose up -d

Or build the image and run it manually:

docker build -t flow .
docker run -p 3000:3000 --env-file apps/reader/.env.local flow

Contributing

There are many ways in which you can participate in this project, for example:

Credits

Extension points exported contracts — how you extend this code

ViewportSettings (Interface)
(no doc)
packages/epubjs/types/contents.d.ts
Annotation (Interface)
(no doc)
apps/reader/src/annotation.ts
SeoProps (Interface)
(no doc)
apps/website/src/components/Seo.tsx
PageListItem (Interface)
(no doc)
packages/epubjs/types/pagelist.d.ts
FileRecord (Interface)
(no doc)
apps/reader/src/db.ts
QAProps (Interface)
(no doc)
apps/website/src/components/Layout.tsx
BookOptions (Interface)
(no doc)
packages/epubjs/types/book.d.ts
CoverRecord (Interface)
(no doc)
apps/reader/src/db.ts

Core symbols most depended-on inside this repo

map
called by 69
packages/epubjs/src/contents.js
forEach
called by 60
packages/epubjs/src/navigation.js
resolve
called by 48
packages/epubjs/src/book.js
indexOf
called by 39
packages/epubjs/src/managers/helpers/views.js
toString
called by 33
packages/epubjs/src/utils/url.js
ePub
called by 32
packages/epubjs/src/epub.js
css
called by 29
packages/epubjs/src/contents.js
start
called by 28
packages/epubjs/examples/hypothesis.js

Shape

Method 617
Function 240
Class 136
Interface 103
Enum 6

Languages

TypeScript100%

Modules by API surface

apps/reader/src/models/reader.ts71 symbols
packages/epubjs/src/contents.js60 symbols
packages/epubjs/src/utils/core.js49 symbols
packages/epubjs/src/managers/default/index.js42 symbols
packages/epubjs/src/rendition.js40 symbols
packages/epubjs/src/managers/views/iframe.js38 symbols
packages/epubjs/src/epubcfi.js37 symbols
packages/epubjs/src/managers/views/inline.js26 symbols
packages/epubjs/src/book.js26 symbols
packages/epubjs/src/managers/continuous/index.js25 symbols
packages/epubjs/src/managers/helpers/snap.js24 symbols
packages/epubjs/src/locations.js24 symbols

Dependencies from manifests, versioned

@babel/cli7.15.7 · 1×
@babel/core7.15.8 · 1×
@babel/plugin-proposal-export-default-from7.14.5 · 1×
@babel/plugin-proposal-export-namespace-from7.14.5 · 1×
@babel/preset-env7.15.8 · 1×
@babel/runtime7.15.4 · 1×
@changesets/changelog-github0.4.4 · 1×
@changesets/cli2.22.0 · 1×
@flow/epubjsworkspace:* · 1×
@flow/internalworkspace:* · 1×
@flow/tailwindworkspace:* · 1×
@github/mini-throttle2.1.0 · 1×

For agents

$ claude mcp add flow \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact