-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using channels for bookshelf management #46
Comments
Currently I use Nice use of |
@kisik21 I was thinking about what you said with channels being an array... I don't support that, but I don't really see any problem with a server supporting it as an array or a single item. It is also consistent with @aaronpk's original proposal in #40 that posts can be in "one or more" channels. Personally I'm using channels heavily now and would love for that extension to be more stable. As for |
Also @kisik21: any objection to supporting |
@manton no problem, supporting it turned out to be just a few lines of code in my normalizing. It'll still get transformed to |
@manton additionally, |
Additional question: maybe instead of a hardcoded channel value, we could designate a channel as a default bookshelf using output of |
My server supports either singular or a list of strings for any value provided to the server so this should work okay for me.
…On Fri, Feb 25, 2022, at 21:06, Vika wrote:
@manton additionally, `mp-channel` could also be a singular string
instead of an array for compatibility reasons, but it will still get
transformed into a `channel` array and/or appended to its existing
content.
|
I'm in favor of avoiding a hard-coded name for bookshelf management. Mainly because I do want to encourage multiple forms of bookshelves (one for comics/manga, another for historical books/research and another for fiction). I currently have it just named 'Books' right now on my site but I'm planning to backfeed books into particular location |
I guess there are 2 ways to handle it:
I think I prefer the first option. Thoughts? My main goal here is to make it possible to create book-focused Micropub clients that can add books which are independent of posts. We can layer other functionality on top of that. |
Is the need for the hard-coding mainly for experience? I do see the benefit of doing so (fewer steps for users when they're setting up their shelves, less plumbing visible to them). After thinking on it more, I think it's okay if it is, it's truly up to the client to discern which channel to find said books in. I don't think I'll be doing so in my site, but I can def keep this in mind while working on my client that channels like this might have things like read posts in them or the like. |
To expand on this, would it work for micro.blog if people had an option to pick which channel maps to a particular shelf? This kind of points to something I was hinting as an implementation detail in Koype, channels can have MF2 and be queried from I say mainly to prevent coupling the concept of books to channels too tightly—I think the looseness of it now is what made it so appealing for me to implement as a means of content organization. (Originally published at: https://jacky.wtf/2022/4/ue/uevCQXvQFBuYwmmzFqZy2sOn) |
I'm not sure. There are definitely a couple ways we could approach this. The ultimate goal (for me) is to be able to build an app like Epilogue that can manage bookshelves stored in servers other than Micro.blog. It would need to "just work" with a server even if no books were stored there yet, or even if there were no channels being used. I personally don't view Micropub channels as a super-flexible way to group posts, e.g. I don't plan to allow the user to create arbitrary channels. This is a little different than how most people are using Microsub channels. Not sure if this helps answer your question. I think we need more people to jump into this discussion. |
It does, and I agree. Going to ask around in upcoming HWCs about this and in chat. (Originally published at: https://jacky.wtf/2022/4/73/73YMlp1ap7sAb7-wzdbGk-w6) |
In the IndieWeb pop-up session about libraries and books we talked about formats for publishing bookshelves (what we're reading or want to read) but not much about new APIs. I was thinking that we could possibly piggyback on Micropub's "channels" support (#40) to allow a client to manage bookshelves in a standard way.
For example, the Micro.blog companion app Epilogue can search for books and add them to bookshelves, and then post about them as a separate step via Micropub. The management of bookshelves is done with a Micro.blog API based on JSON Feed. It's documented here: https://help.micro.blog/t/json-api-books/545
Instead of that API, we could use Micropub and a special channel called "books". We could also borrow from the JSON that IndieBookClub is already using, like this:
And then to get a list of books:
Any thoughts on using Micropub this way? It's a little different than the "posts" and "pages" channels because "books" are not necessarily public on the web as blog posts. It could be a private list of books, and then to publish you make a separate Micropub request just like any blog post.
The text was updated successfully, but these errors were encountered: