diff --git a/public/books/all/index.json b/public/books/all/index.json new file mode 100644 index 0000000..8dfa3af --- /dev/null +++ b/public/books/all/index.json @@ -0,0 +1,201 @@ +{ + "metadata": { + "title": "All Publications" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/all/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (priced)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "price": { + "currency": "USD", + "value": 4.99 + }, + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] +} diff --git a/public/books/direct-examples/index.json b/public/books/direct-examples/index.json new file mode 100644 index 0000000..fe01af1 --- /dev/null +++ b/public/books/direct-examples/index.json @@ -0,0 +1,78 @@ +{ + "metadata": { + "title": "Direct Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/direct-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + ] +} diff --git a/public/books/foto.epub b/public/books/foto.epub new file mode 100644 index 0000000..ed1591c Binary files /dev/null and b/public/books/foto.epub differ diff --git a/public/books/foto.jpg b/public/books/foto.jpg new file mode 100644 index 0000000..bb5a4ff Binary files /dev/null and b/public/books/foto.jpg differ diff --git a/public/books/index.json b/public/books/index.json new file mode 100644 index 0000000..31333c1 --- /dev/null +++ b/public/books/index.json @@ -0,0 +1,244 @@ +{ + "metadata": { + "title": "Ryan's Books" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/index.json", + "type": "application/opds+json" + }, + { + "rel": "search", + "href": "search{?query,title,author}", + "type": "application/opds+json", + "templated": true + } + ], + "groups": [ + { + "metadata": { + "title": "Direct Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/direct-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + ] + }, + { + "metadata": { + "title": "Indirect Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/indirect-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] + } + ], + "navigation": [ + { + "href": "http://localhost:3000/books/all/index.json", + "title": "All Publications", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (priced)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "price": { + "currency": "USD", + "value": 4.99 + }, + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + } + ] +} diff --git a/public/books/indirect-examples/index.json b/public/books/indirect-examples/index.json new file mode 100644 index 0000000..a4afd91 --- /dev/null +++ b/public/books/indirect-examples/index.json @@ -0,0 +1,101 @@ +{ + "metadata": { + "title": "Indirect Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/indirect-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] +} diff --git a/public/books/tanw.epub b/public/books/tanw.epub new file mode 100644 index 0000000..09312b4 Binary files /dev/null and b/public/books/tanw.epub differ diff --git a/public/books/tic.jpg b/public/books/tic.jpg new file mode 100644 index 0000000..931bbfd Binary files /dev/null and b/public/books/tic.jpg differ