10 ms·
Shaarli – Personal, minimalist, database-free, bookmarking service
- cocktailpeanuts 10y agoWould be nice to hear how this is database-free. Is it a static site generator? Is it using files?
- gmisra 10y agoFTA: links are stored in a file - compact storage - no database required - easy backup: simply copy the datastore file
- Retr0spectrum 10y agoThat's still a database if you ask me. Just a different type.
- mynewtb 10y agoHosting wise it isn't
- Retr0spectrum 10y agoWho said databases have to be remote?
- Scaevolus 10y agoThe "datastore" is a gzip+base64-encoded serialized PHP object written to a file. PHP has SQLite built-in, which has the same single-file property with a lot better durability, portability, and stability guarantees.
- stymaar 10y agoSQLite would be nowhere near the current design in term of performance. Typical shaarli usage involve little update (a dozen a day maximum) an a lot of read (10k+ pages viewed per day on sebsauvage's instance (shaarli's creator, an influent french blogger). Thé file system's cache works really well in this kind of scenario, way better than SQLite. For the stability guarantees, shaarli exists since 2011 and is used in production by many (several hundred) people without trouble.
- loulouxiv 10y agoWell since sqlite is also single file, would it really decrease file system cache efficiency ?
- psquid 10y agoThe crucial distinction as far as the OP is using the term seems to be that such a datastore does not require the user's hosting provider to give them an instance of any of the common DB servers, which typically needs a more expensive plan than the usual baseline of "disk space and an httpd [that supports calling out to one or two scripting languages]". (Basically it should run on anything more complex than a static site host. Though it's also true that sqlite would probably be a cleaner choice for the datastore without losing any of that benefit.)
- bigbugbag 10y agoWhy not use a real database ? Files are slow ! Do browsing this page feel slow ? Try browsing older pages, too. It's not slow at all, is it ? And don't forget the database contains more than 16000 links, and it's on a shared host, with 32000 visitors/day for my website alone. And it's still damn fast. Why ? The data file is only 3.7 Mb. It's read 99% of the time, and is probably already in the operation system disk cache. So generating a page involves no I/O at all most of the time. http://sebsauvage.net/wiki/doku.php?id=php:shaarli#why_not_use_a_real_database_files_are_slow http://sebsauvage.net/wiki/doku.php?id=php:shaarli#why_not_u...
- campuscodi 10y agoThis must be the 3rd time I see this on HN in the last 5-6 years.
- Retr0spectrum 10y agoPrevious discussion: https://news.ycombinator.com/item?id=9755366 https://news.ycombinator.com/item?id=9755366
- midgetjones 10y agoyes, these constant reposts must stop!
- threepipeproblm 10y agoI love the name.
- luckman212 10y agoNeat, but I'll stick with Pinboard. It's basically perfect.
- idlewords 10y agoI don't know, I'm tempted to switch to this thing.
- dsr_ 10y agoYou'll probably need a beefier backend and an authentication service, to serve your existing customer base.
- idlewords 10y agoEh, how hard can it be? On a serious note, this is cool and I'm glad it's actively maintained. No one knows more than me how fun it is to run your own bookmarking service.
- azeirah 10y agoHey Maciej, just wondering. Does having this link on the HN frontpage influence the amount of new subscribers you have today, and possibly tomorrow? Just curious
- idlewords 10y agoHonestly, I don't know. I just see a total earnings figure for the day on my admin thingy, and don't have any kind of analytics or what-have-yous.
- urza 10y agoPinboard is SaaS, Shaarli is self-hosted and open-source. For some people it matters.
- bigbugbag 10y agoIt's far from perfect, for instance how do I access my bookmarks while offline ? from the original shaarli FAQ: What use Shaarli and not Delicious/Diigo ? With Shaarli: The data is yours: It's hosted on your server. Never fear of having your data locked-in. Never fear to have your data sold to third party. Your private links are not hosted on a third party server. You are not tracked by browser addons (like Diigo does) You can change the look and feel of the pages if you want. You can change the behaviour of the program. It's magnitude faster than most bookmarking services.
- jwebb99 10y agoStrange. A few days ago, I announced my bookmarking service (http://paperbin.co http://paperbin.co) and it was barely noticed. Yet, Shaarli has 32 votes within an hour.
- NetStrikeForce 10y agoYours seems to be a SaaS and Shaarli seems to be an open source product you can self host. That might be why this one caught more interest.
- dsr_ 10y agoSelf-hosted open source projects tend to appeal to a different set of people than a commercial competitor to an established service. Also, HN is weird.
- bigbugbag 10y agoI'm a long time shaarli user and the reason I use shaarli is to get away from services such as yours. I trusted del.icio.us got bitten and will never make the same mistake again. paperbin.co is useless and pointless to me, it is contrary to how the internet and the web is supposed to work, it is closed source crippleware with no possibility to self host, it offers no features that has not been around in competitors for years. This is a reason why I ignore your project but am excited to participate in discussion about shaarli and wallabag.
- randomsofr 10y agoThe ui looks old.
- hisyam 10y agoYeah, and it doesn't exactly look minimalist either.
- stymaar 10y agoIt is ! Shaarli bas been created in 2011 and the UI hasn't evolved since then. There is currently a work in progress in that direction though.
- randomsofr 10y agoThat looks old even for 2011 :P
- bigbugbag 10y agoUse CSS to change the look if it does not suit you.
- ge96 10y agoQuestion: how does it store data without a database. or does it not store data?
- gragas 10y agoThink about it this way: what does a filesystem do?
- stymaar 10y agoThe "datastore" is a gzip+base64-encoded serialized PHP object written to a file. It's really efficient under shaarli's typical workload : really few writes ans a lot of read => almost no IO, everything stays in the filesystem's cache.
- ge96 10y agoOh yeah that makes sense, I was thinking there is browser storage but probably not when you turn off the browser/computer.
- bigbugbag 10y agoIt stores data, it can do so without requiring a database engine. As in flat file database.
- Mao_Zedang 10y agoBe nice to see something that uses cloud storage like Azure table storage, but run locally so at least I have a backup. Also that log is horrendous, but hey its free!
- mxuribe 10y agoCan anyone comment on shaarli vs wallabag? Wallabag seems designed to mimic Pocket more - but I'm only basing this on a quick glance. Can anyone cite any pros/cons of each platform? For example is one better to host on a smaller vps? (My use-case is really minimal, just personal bookmarking, not a team or anything like that.)
- nerdponx 10y agoCame to ask the same question.
- Gmo 10y agoI don't know about Shaarli, but yes, Wallabag is a read it later service, not a bookmarking one. You can self-host or use a hosted version here (that's what I do) : https://framabag.org/ https://framabag.org/
- urza 10y agoShaarli was created as self-hosted alternative to del.icio.us back in the day..
- matt2090 10y agoSimple online bookmarking with Firefox and Chrome plugin plus Android app: https://cloud73.de https://cloud73.de
- matt2090 10y agoSimple online bookmarking with Firefox and Chrome plugin plus Android app: https://cloud73.de https://cloud73.de
- bigbugbag 10y agoI've been using both for a while. Shaarli is a tool to bookmark, tag, comment, publish on links you want to keep. Wallabag is a tool to save content to read later, it makes a local copy of the relevant content which it displays with usually improved readability and save content from linkrot, once read you can either save it, push it to your shaarli or delete it. I chose to self host both on a shared webserver and they require very little effort for installation and maintenance. Some link are not wallabag friendly and once in a while it will fail to retrieve content, there's a button to report the link to wallabag dev so they can improve the situation and a button to go to the original link destination. I never used pocket, this is a third party closed source service which is the opposite way of how internet is supposed to be done. If you cannot afford or do not want a shared hosting, you can host this locally in a virtual machine.
- treve 10y agoA file is still a database, it's often simply a worse one. Go with sqlite instead of generating PHP files for storage.
- stephane-klein 10y agoI did that: https://github.com/harobed/gobookmark https://github.com/harobed/gobookmark « Inspired by Shaarli (Delicious clone), easier to install (only one standalone executable). Built with Go - GoBookmark runs without installation on multiple platforms. »
- bigbugbag 10y agohttp://sebsauvage.net/wiki/doku.php?id=php:shaarli#why_not_use_a_real_database_files_are_slow http://sebsauvage.net/wiki/doku.php?id=php:shaarli#why_not_u...
- mastre_ 10y agoGoing with something like sqlite is not always better -- if what it provides is not needed, it's complexity for complexity's sake. PHP arrays are perfectly fine (until you reach a certain size), particularly when using a direct key access scheme. Loading/saving the data is pretty much a file_get_contents|file_put_contents affair, with some inline filters such as serialize & gzip. Couldn't be simpler, and it sounds like it doesn't need to be more complex than that.
- nilinte 10y agoGood one bro! Keep it up. I like it.
- an_fnk 10y agoThere is also a nice OSS iOS extension, ShaarliOS https://github.com/mro/ShaarliOS https://github.com/mro/ShaarliOS
- urza 10y agoAnd for Android there is https://play.google.com/store/apps/details?id=com.dimtion.shaarlier&hl=en https://play.google.com/store/apps/details?id=com.dimtion.sh...
- urza 10y agoI switched to shaarli back in the days when del.icio.us was bought by yahoo. I am using it ever since without problem. Hosting on super cheap PHP hosting. The open-source community took over the project from original author and they are maintaining it. Highly recommend.
- subbz 10y agoSame here, it's simply working!
- MrPatan 10y agoIf it holds data it's a database.