# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 23
# self = https://watcher.sour.is/conv/m7o5dpa
@prologic Okay, I'll check it out! πŸ‘

Sadly, I don't know Go Lang though, so my help is limited to the HTML/JS parts. 😁

I can probably contribute the most on the pwa repo.
@justamoment

> Sadly, I don’t know Go Lang though, so my help is limited to the HTML/JS parts. 😁

This is fine! πŸ’― There's a lot you can contribute to in the default theme -- No real Go experience required really, the Go html/template is not hard to get used to πŸ‘Œ

There is also a Guide for Template Authors on our Wiki.
@justamoment

> Sadly, I don’t know Go Lang though, so my help is limited to the HTML/JS parts. 😁

This is fine! πŸ’― There's a lot you can contribute to in the default theme -- No real Go experience required really, the Go html/template is not hard to get used to πŸ‘Œ

There is also a Guide for Template Authors on our Wiki.
> I can probably contribute the most on the pwa repo.

Actually, if you're good with Javascript and specifically MithrilJS you _could_ help us get the PWA repo/project -- Currently it's just a bit of a skeleton. I also don't like to use NodeJS or NPM as you can tell πŸ˜… over complicates things for me!)
> I can probably contribute the most on the pwa repo.

Actually, if you're good with Javascript and specifically MithrilJS you _could_ help us get the PWA repo/project -- Currently it's just a bit of a skeleton. I also don't like to use NodeJS or NPM as you can tell πŸ˜… over complicates things for me!)
@prologic Ok, i'm not used to docker so i need to set it up for working on it.

I never used MithrilJS but it seems to be the usual JSX style of DOM structure.
@prologic The PWA setup is a bit confusing to me, can you explain how to run it?

I can see that you're using the templating in the html but i'm lost on how it bind with the backend.

My usual PWA setup is entirely separated from the backend.

I also worked a lot with NodeJS too and now i'm working on creating a bundle-less setup that is light and easy to use and don't need any tooling at all except for a static server and a browser.
@justamoment The original idea was to run the "PWA" as a Pod-level configured theme. In other words you could point a yarnd server via -t/--theme to the directory for the pwa theme and voila. But this is probably a bad idea, so you can largely ignore most of the templating you see there, it would only get used once to render the index.html or / anyway -- the PWA takes over at that point via it's Javascript and Service Worker, etc...
@justamoment The original idea was to run the "PWA" as a Pod-level configured theme. In other words you could point a yarnd server via -t/--theme to the directory for the pwa theme and voila. But this is probably a bad idea, so you can largely ignore most of the templating you see there, it would only get used once to render the index.html or / anyway -- the PWA takes over at that point via it's Javascript and Service Worker, etc...
@justamoment Yeah I like MithrilJS a lot, it's the only _sane_ "reactive", "dom" thingy that I actually don't mind using thanks to @markwylde for introducing me to it (I'm still not very good at it though!)
@justamoment Yeah I like MithrilJS a lot, it's the only _sane_ "reactive", "dom" thingy that I actually don't mind using thanks to @markwylde for introducing me to it (I'm still not very good at it though!)
@prologic Great, I'll check out the PWA first then!πŸ‘

While MithrilJS is a good library I find if wasted when not used with JSX, you can probably enhance the syntax by using htm for the templating if you want to keep it light or use the renderer of esbuild directly.

In my projects I usually use uhtml, it's a simple to use and blazing fast templating library, It doesn't even use the Shadow DOM the usual JSX rely on, you should try it for your next project. 😜
@justamoment Haha sorry but I'm not a Javascript developer, I really honestly can't stand the language and all the modern buillshit being added to it over the last few years πŸ€¦β€β™‚οΈ I blame Facebook and Google πŸ˜‚

I'd like to steer clear of things ike JSX, etc. MithrilJS fortunately lets you just write regular things like:


export default function Login (vnode) {
  const { context } = vnode.attrs;

  return {
    view: function () {
      return m("twt-login",
        m("form", [
          m("input", {"type":"text","placeholder":"Username"}),
...


πŸ‘Œ
@justamoment Haha sorry but I'm not a Javascript developer, I really honestly can't stand the language and all the modern buillshit being added to it over the last few years πŸ€¦β€β™‚οΈ I blame Facebook and Google πŸ˜‚

I'd like to steer clear of things ike JSX, etc. MithrilJS fortunately lets you just write regular things like:


export default function Login (vnode) {
  const { context } = vnode.attrs;

  return {
    view: function () {
      return m("twt-login",
        m("form", [
          m("input", {"type":"text","placeholder":"Username"}),
...


πŸ‘Œ
In other words I really don't mind there being two different complete user experiences here, the embedded SSR Web Interface in yarnd and the separate SPA/PWA with a mobile-first design and a more "native"(ish) feel πŸ˜…

The _trick_ will be to reuse as much code between what drives the API and the SSR so changes, improvements or new features can be rolled out to the API, SSR and PWA all at once quite easily... 🀞
In other words I really don't mind there being two different complete user experiences here, the embedded SSR Web Interface in yarnd and the separate SPA/PWA with a mobile-first design and a more "native"(ish) feel πŸ˜…

The _trick_ will be to reuse as much code between what drives the API and the SSR so changes, improvements or new features can be rolled out to the API, SSR and PWA all at once quite easily... 🀞
@prologic Understandable. πŸ˜‰

Then I'll try to make my best to make something nice. 😎

One last question, is it okay to go with standard fetch for API calls or you're planning to use twt.js?

The repo seems archived though.
@justamoment Use of Fetch APi is fine, in fact most of the new API(s) are fine by me really Web Push, Service Workers, Fetch, etc. These all provide quite usefu
@justamoment Use of Fetch APi is fine, in fact most of the new API(s) are fine by me really Web Push, Service Workers, Fetch, etc. These all provide quite useful functionality IHMO when it comes to building apps with web technologies πŸ‘Œ But things like JSX, => (arrow functions) and all the new so-called "modern" language in Javascript is just well umm crap IHMO πŸ˜…
@justamoment Use of Fetch APi is fine, in fact most of the new API(s) are fine by me really Web Push, Service Workers, Fetch, etc. These all provide quite useful functionality IHMO when it comes to building apps with web technologies πŸ‘Œ But things like JSX, => (arrow functions) and all the new so-called "modern" language in Javascript is just well umm crap IHMO πŸ˜…
@justamoment come and work on UIUX with me! πŸ˜‡
@prologic I can agree on JSX and similar but I must say that arrow functions, classes and so on are quite nice once you get used to them.

I too ended up wanting less and less but exactly for that reason I really enjoy those new stuff the platform offers natively.

Anyway, I'll keep your style as much as I can. πŸ‘
@ullarah I'll try! ✌️