Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Collapse vendored dependencies in GitHub diffs / PR review and exclude them
# from language statistics. These are not authored in this repo.
vendor/** linguist-vendored
vendor/** linguist-generated=true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
.vscode
bin/
db/sqlite.db
__pycache__/
*.pyc
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23
FROM golang:1.26

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,15 @@
![GitHub](https://img.shields.io/github/license/dir01/bookworm)

`bookworm` allows you to :
- index your books archive (directory containing `.fb2` files or `.zip` archives with `.fb2` files inside)
- index your books archive, a directory containing any of:
- `.fb2` files
- `.zip` archives with `.fb2` files inside
- `.epub` files
- `.zim` archives with `.epub` files inside (e.g. a [Project Gutenberg](https://download.kiwix.org/zim/gutenberg/) library from Kiwix)
- search for books (by title or author)
- get the books (as `.fb2` or `.epub`)

Books are served in their original format when possible (an `.epub` source is
streamed as-is); conversion between `.fb2` and `.epub` uses Calibre's
`ebook-convert`.

58 changes: 34 additions & 24 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,56 +1,66 @@
module github.com/dir01/bookworm

go 1.23.3
go 1.26.5

require (
github.com/fsnotify/fsnotify v1.8.0
github.com/fsnotify/fsnotify v1.10.1
github.com/jmoiron/sqlx v1.4.0
github.com/mattn/go-sqlite3 v1.14.24
github.com/rubenv/sql-migrate v1.7.1
github.com/mattn/go-sqlite3 v1.14.49
github.com/rubenv/sql-migrate v1.8.1
github.com/stazelabs/gozim v0.1.0
github.com/tamerh/xml-stream-parser v1.5.0
gopkg.in/telebot.v3 v3.3.8
)

require (
dario.cat/mergo v1.0.1 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
dario.cat/mergo v1.0.2 // indirect
filippo.io/edwards25519 v1.2.0 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/Masterminds/semver/v3 v3.5.0 // indirect
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
github.com/VictoriaMetrics/easyproto v1.2.0 // indirect
github.com/antchfx/xpath v1.2.5 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.2.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/clipperhouse/displaywidth v0.11.0 // indirect
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
github.com/denisenkom/go-mssqldb v0.12.3 // indirect
github.com/fatih/color v1.18.0 // indirect
github.com/fatih/color v1.19.0 // indirect
github.com/go-gorp/gorp/v3 v3.1.0 // indirect
github.com/go-logfmt/logfmt v0.6.0 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/godror/godror v0.45.2 // indirect
github.com/godror/knownpb v0.2.0 // indirect
github.com/go-logfmt/logfmt v0.6.1 // indirect
github.com/go-sql-driver/mysql v1.10.0 // indirect
github.com/goccy/go-json v0.10.6 // indirect
github.com/godror/godror v0.51.0 // indirect
github.com/godror/knownpb v0.3.0 // indirect
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/huandu/xstrings v1.5.0 // indirect
github.com/lib/pq v1.10.9 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/klauspost/compress v1.19.2 // indirect
github.com/lib/pq v1.12.3 // indirect
github.com/mattn/go-colorable v0.1.15 // indirect
github.com/mattn/go-isatty v0.0.24 // indirect
github.com/mattn/go-oci8 v0.1.1 // indirect
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/mattn/go-runewidth v0.0.27 // indirect
github.com/mitchellh/cli v1.1.5 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/planetscale/vtprotobuf v0.6.0 // indirect
github.com/olekukonko/cat v0.0.0-20250911104152-50322a0618f6 // indirect
github.com/olekukonko/errors v1.3.0 // indirect
github.com/olekukonko/ll v0.1.8 // indirect
github.com/olekukonko/tablewriter v1.1.4 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/cast v1.10.0 // indirect
github.com/stretchr/testify v1.8.4 // indirect
github.com/tamerh/xpath v1.0.0 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect
golang.org/x/sys v0.28.0 // indirect
google.golang.org/protobuf v1.35.2 // indirect
github.com/ulikunitz/xz v0.5.15 // indirect
golang.org/x/crypto v0.55.0 // indirect
golang.org/x/exp v0.0.0-20260811152304-ee035b5b010f // indirect
golang.org/x/sys v0.47.0 // indirect
google.golang.org/protobuf v1.36.12 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading
Loading