6 ms·
Widdler is a single binary that serves up TiddlyWikis
- mro_name 5y agoYes, sensibly designed deployments are single file. It's super important for maintainability of operation.
- barbarr 5y agoUnrelated, but does anyone else feel that there are way too many non-descriptive proper nouns in tech? I had no clue what to expect from the title, or any idea of why I should be interested in it.
- stan_rogers 5y agoMost of them, at least, aren't childish euphemisms for "pisser" or "pisspants".
- detaro 5y agoThat it's a server for some kind of wiki seems fairly clear from the title, and I'm not sure what much more relevant context you could fit in a title - i.e. it can't really explain much more about TiddlyWiki with just a few words? There's two of the words you complain about in it: the name of the project itself, and TiddlyWiki - which is clear that it's a wiki, and naming it explicitly instead of just referencing a generic wiki is useful for everyone who is aware of it.
- mro_name 5y agoI guess you mean the names. Names are almost never descriptive, barbarr, are they?
- mark_l_watson 5y agoWow, that is just 357 lines of Go code. So much of my work life is using complex systems in AWS and GCP that are beyond my ability to understand “turtles all the way down.” It is refreshing to see something so simple and focused on one thing. In the early days of Ruby on Rails, I had the source code to Ruby and for Ruby on Rails on my laptop and it was all fairly readable. Those days are long gone.
- skybrian 5y agoThe trick seems to be that all the complexity is in the html file and runs in the browser. The server is just a basic WebDAV server. It looks like the entire wiki implementation is copied to a new file when you create a new wiki page. It's a 2.3 MB file, which seems like a lot to download when you visit a new page.
- mch82 5y agoEach HTML file is a complete wiki instance. The wiki code and data for all pages within the wiki are bundled in that file. The code let’s the webpage edit itself.
- dTal 5y agoI don't get it. Why is it making me compile a Go webserver then? There aren't even binaries provided.
- detaro 5y agoSo you can save the modified file on the server.
- Abishek_Muthian 5y ago> It's a 2.3 MB file, which seems like a lot to download when you visit a new page. It is, But I feel it's still better than what ever framework they're using nowadays to generate doc/wiki for APIs which hijacks Ctrl-F with a useless pop-up which rarely gets me what I need[1]. Please bring back plain HTML document pages. [1] https://stripe.com/docs/api https://stripe.com/docs/api
- fartcannon 5y agoLike using the command line, its all so flexible, dynamic and powerful while being small and understandable. It was possibly my favourite part of learning to use Linux 20 years ago.
- orf 5y agoDoes that LOC count include dependencies?
- stan_rogers 5y agoDo people not look up the names they plan to use for their products?
- dang 5y ago"Please don't complain about tangential annoyances—things like article or website formats, name collisions, or back-button breakage. They're too common to be interesting." https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- bogwog 5y agoThis is AWESOME! My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've been using TiddlyDesktop, but that thing has some questionable privacy because it's based on Chromium. One time, I had it running in the background while working on something completely unrelated, and I got a Chrome-style popup/alert warning me about a network printer being disconnected. I didn't even have Chrome installed on my machine at the time and it took me a while to realize that it came from TiddlyDesktop. But besides the privacy issues, TiddlyDesktop only serves local wikis. That's annoying when you have multiple devices. Also, pro-tip if you're on Ubuntu: the latest golang version in the default repos isn't compatible with this. You'll need to use golang 1.16 or later, which can be installed manually from the website, or installed via apt with a custom PPA (https://github.com/golang/go/wiki/Ubuntu https://github.com/golang/go/wiki/Ubuntu)
- randomibis 5y ago> My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I've tried to address this with https://tiddlyhost.com/ https://tiddlyhost.com/ (and in the past with http://tiddlyspot.com/ http://tiddlyspot.com/ ).
- bachmeier 5y ago> My biggest annoyance with TiddlyWiki has been the ergonomics of saving. I wanted something that just let me open the wiki and save changes to it. Nothing else. No massive dependencies. This is what I wrote: https://github.com/bachmeil/tiddlyd https://github.com/bachmeil/tiddlyd You view you TW and you save changes to it, nothing else.
- knight17 5y agoI find the TiddlyDesktop to be too heavy for what can be done in the browser itself. Have you tried using Timmi [0] with your browser [1, 2]? I had problems initially with the file save workflow till I found Timmi. I use it with Firefox and sync with Dropbox. It hasn't failed me and works smoothly. >> Timimi is a web-extension accompanied by a native host that allows you to save and backup your standalone HTML tiddlywiki files anywhere in your hard-drive. Once installed, you can save the tiddlywiki files without any extra steps, like the original Tiddlyfox addon. Timimi also provides users with 4 backup strategies, viz: - Create a backup Every nth save - Create a backup every nth minute - Customised Tower of Hanoi - First in First Out [3] << [0] https://ibnishak.github.io/Timimi/ https://ibnishak.github.io/Timimi/ [1] Chrome/Edge/Brave: https://chrome.google.com/webstore/detail/timimi/mnggafnmmhdoplbffagjihajeeikgbcg https://chrome.google.com/webstore/detail/timimi/mnggafnmmhd... [2] Firefox: https://addons.mozilla.org/en-US/firefox/addon/timimi/ https://addons.mozilla.org/en-US/firefox/addon/timimi/ [3] https://tiddlywiki.com/static/Timimi%253A%2520WebExtension%2520and%2520Native%2520Host%2520by%2520Riz.html https://tiddlywiki.com/static/Timimi%253A%2520WebExtension%2...
- JasonFruit 5y agoI had no idea there was this much community effort around TiddlyWiki, but looking around, there are several companion tools for it. I've always thought it was a great piece of software, and obviously others agree.
- cat199 5y agoUsed it in a previous ops support gig to build up a mini knowledge base of canned issue responses / topical oneliners - we couldn't install software but could save network drive files; tiddly kept my response system flexible & portable between systems - definitely recommend for this use case
- Tomte 5y agoCan I access that on iPad? Is there WebDAV integration in iOS/iPadOS?
- the_qbit 5y agoYou can run it on a machine and access the wiki over http. The Files app on ipad can do webdav, but it won't help ya much with the tiddlywiki side of things.
- steinuil 5y agoI have a similar project but it just serves a single wiki via http and doesn't support WebDAV or authentication, and it's in Rust rather than Go. https://github.com/steinuil/twkwk https://github.com/steinuil/twkwk
- nilslindemann 5y agoVery nice, though installing Node.js, cloning the TiddlyWiki repo and then (inside the 'editions' folder) doing ... node ..\tiddlywiki.js "my new wiki" --init server cd "my new wiki" node ..\..\tiddlywiki.js --listen ... is also not THAT difficult :-) Or alternatively, an AutoHotkey shortcut, which fixes the anachronistic ctrl+s shortcut of the browser (anachronistic = doesn't remember save action for this url)
- newhotelowner 5y agoThere used to be PHP/MySQL TiddlyWikis. It was so much nicer. You can just use .htaccess to password protect it too. I miss that.
- the_qbit 5y agoAuthor here, if anyone has any issues - let me know! :D
- indigodaddy 5y agoLooks great. I assume this can easily also be integrated with git just by pushing some files from the server after each save/creation?
- zoomablemind 5y agoA propos the single binary wiki server. Last time I was looking for something of this kind, I stumbled upon Fossil SCM, which also includes an implementation of Wiki [1]. Editing can be done in Markdown, all version-controlled, there's user support built-in, the whole thing basically resides in a repository, which is a kind of a SQLite db. The wikis can be imported from text files too. It may be not fancy-looking, but for "note-taking" can be good enough. I guess it may be made to run in Tmux or the likes to have a Wiki served locally to the smartphone. Wish the Fossil was more templatable, also there's no proper wiki category tagging, but it does work for the purpose. [1]: https://fossil-scm.org/home/doc/trunk/www/wikitheory.wiki https://fossil-scm.org/home/doc/trunk/www/wikitheory.wiki
- jsilence 5y agoBy the authors of Sqlite. High quality code that is probably going to be around and well maintained for long. Not unimportant when using it as a personal knowledge system.
- ThinkBeat 5y agoI know this will be a dumb question but does one sit it up? I am used to creating "web application" and running it on a web server of some sort: Apache / IIS /Lite. In this perspective the web server or what not handles a lot of the complexity, thread pools, isolation, restarting, logging etc etc. I frequently see applications like this that is "one binary" and you run it by starting it on the command line. That is easy , no worries. But how to handle running it "in production", were I want to ensure that it is up and running all the time? If I wanted to put this on my VPS and share it with the net, what steps do I need to take? systemd? (k8s I really hope not)
- the_qbit 5y agowiddler is meant to be more of a private wiki. if you want to share a specific tiddlywiki with the world it's as easy as copying the html file to a webserver - it will then be static content (users can edit it locally, but the changes won't be sent back up to the server). My current use case is: running on a vps and exposing a password protected space for me to jot down various things.
- ThinkBeat 5y agoHow do you handle if it goes down? How are you executing it, or with what? At the very basic level you can SSH, and type in the command. Bobs your uncle. Then unless you something it shuts down when you end your session. You can just set it to execute in the background with basic sh or something like tmux. Or do you set it up in systemd to be watched and restarted if something goes wrong?
- a_c 5y agoHuge fan of TiddlyWikis. So glad to see more tools spawn around TiddlyWiki to drive adoption.
- shoo 5y agocool to see pledge and unveil. as a linux user i'm somewhat jealous. c.f. OpenBSD's unveil() https://lwn.net/Articles/767137/ https://lwn.net/Articles/767137/
- h0p3 5y agoYou love to see it! I think this is a reasonable tool for a large set of usecases. Though many will be served just as well with file synchronization and other local saving tools, I like the simplicity in that single binary. I use my TW every day like a madman (https://philosopher.life/#⧖ https://philosopher.life/#⧖). I'd like to submit https://github.com/OokTech/TW5-Bob https://github.com/OokTech/TW5-Bob as a powerful (though perhaps not as simple) alternative. That's what most of my household uses (one is aiming to switch over soon).
- wyldfire 5y ago> Password protection via HTTP Basic Authentication. > ... > Optional TLS support. I know it's supposed to be pretty minimal, but this is a bad combo. Great that TLS is offered but it should be mandatory if you're using the authentication.
- arantius 5y agoLooks good. I adopted https://github.com/sendwheel/tw-receiver https://github.com/sendwheel/tw-receiver a while back which is also pretty nice, but I had to disable most of its safety features as they false triggered too often. (Acceptable for a single-user note-taking situation.)