News for hackers. Stuff that matters.

Ask HN: Personal Database Tool?

I'm looking for a tool where I can dump content (images, notes, quotes, names of movies), tag each item with multiple tags ("book" "completed" "5 stars"), and then search for the content by tag ("show me all books I tagged with 5 stars"). Is there a good tool I can use for this?
( 20 comments | 24 points | on HN )
Re:Ask HN: Personal Database Tool? by noobly on Friday June 07, 2019 @11:15PM (#20130405)
Emacs Org-Mode!

To expand:

>dump content (images, notes, quotes, names of movies)

The images I would keep in relevant logs/wikis, or a timestamped/datetree journal (in it's own file, a header, or a subheader - whatever's more suitable/comfortable). I mostly save images for fun and logging purposes though. The notes I would keep under a (tagged) header that it belongs too, or in the datetree diary if it's personal. Same with the quotes. I keep names of movies I should watch under a (tagged) 'media' header in my tasks.org file (my other org files are wiki.org and archive.org, fwiw).

>tag each item with multiple tags ("book" "completed" "5 stars")

Tags are a built-in feature, but for the '5 stars' portion, you can go a step further and assign a key-value property to an item, say 'STARS:' and a value, like '5'.

>search for the content by tag ("show me all books I tagged with 5 stars")

And this would be done by doing a search, a tag search, with this syntax specifically: `+books&+STARS="5"`

It's a very flexible system!

Re:Ask HN: Personal Database Tool? by lberk on Sunday June 09, 2019 @10:52AM (#20139586)
I'd agree with this suggestion, especially if you're willing to put in a bit of legwork to start and learn some of the basics of org-mode.

To me though, one of the killer features of org-mode (compared to some of the other, SaaS product offerings) is that under the hood it's /just/ a plain-text file. You know (unlike the SaaS stuff) it'll be around for 30+ years. To me, it's incredibly valuable when building my own personal information repo/db to know it'll be around as long as I am. Not contingent on a company to remain around or profitable to keep access to my data.

Re:Ask HN: Personal Database Tool? by arduinomancer on Monday June 10, 2019 @02:05PM (#20149193)
Is there any way to use org-mode on mobile? I feel like the best solution would be something where you can take notes on the go too
Re:Ask HN: Personal Database Tool? by noobly on Tuesday June 11, 2019 @03:45AM (#20153617)
I use Emacs with Termux on Android. You can use the volume buttons as modifier keys, so it’s not so bad. Other solutions like Orgzly and Beorg exist, but I haven’t tried them personally.
Re:Ask HN: Personal Database Tool? by anotheryou on Monday June 10, 2019 @01:32PM (#20148860)
do you have a nice workflow for images and files?

and what are the limits to keeping everything in one file? theoretically i see no downside to it.

Re:Ask HN: Personal Database Tool? by noobly on Tuesday June 11, 2019 @04:01AM (#20153672)
What do you mean about the images and files, specifically? If embedding images within an org file, it is super easy, just do ‘[[file://image/path.jpg]]’ and run M-x org-toggle-inline-images (i think that’s the command).

My org files (all of which reside in my agenda directory, ~/org) are divided primarily into archives.org (i keep a datetree log here), wiki.org (bookmarks, notes etc), and tasks.org. With sparse trees, narrowing to subtree etc I tend to keep big monolithic files and just filter for the view I want, though many seem to prefer smaller ones (i find it harder to sync more files and directories though, and I’m unsure of the advantages more files provide).

Re:Ask HN: Personal Database Tool? by anotheryou on Tuesday June 11, 2019 @04:20AM (#20153740)
Thanks for the reply!

So you have all images of all org docs in one folder? Or one folder per org file? The first would be better for refiling across files, the latter better for portability of the org files.

How many lines does your bigger org than have? My main one has 1.5k. My archive (just a year old maybe) has 15k and many org functions become quite slow, even freezing emacs sometimes.

Re:Ask HN: Personal Database Tool? by noobly on Wednesday June 12, 2019 @06:10PM (#20169866)
>So you have all images of all org docs in one folder?

I'm not sure what you by 'all images of all org docs', but I keep most my org-related images in one file (my archive.org, where I store most of them in an ongoing datetree under a relevant header). Most of the photos I keep in org-mode revolve around logging though - things like bread, beer, garden plants, etc - but I also have some images kept in my notes sections. And yeah, all of my org files are in ~/org. I used to use many files and directories, but it made it annoying for syncing across devices, and having shorter paths is nice anyway.

>How many lines does your bigger org than have? My main one has 1.5k. My archive (just a year old maybe) has 15k and many org functions become quite slow, even freezing emacs sometimes.

My largest one is around 1.5k, after some heavy pruning last week. I respect your 15k archive! I only recently started taking my archiving seriously, and I've really enjoyed it so far. Keeping ALL of my logs (photography, work outs, diet, bread making, etc) under one datetree has brought a lot of Zen to my workflow. Unfortunate though that you experience performance issues at that size. Perhaps looking into `M-x profiler-report` could give you some leads? This will at least tell you what functions are using the most CPU or Mem, and you can potentially adjust accordingly from there. It is likely some package(s) using too many resources.

Re:Ask HN: Personal Database Tool? by goohex on Friday June 07, 2019 @12:24AM (#20121654)
Re:Ask HN: Personal Database Tool? by scrappyjoe on Friday June 07, 2019 @02:18AM (#20122082)
A few years ago there was an OSS tool called Tagspaces that did exactly this. It was great, and briefly replaced Evernote for me.

At the time I used it quite successfully to manage research material across a range of projects; it ultimately hit a wall because it was an electron app that consumed huge amounts of RAM.

However, they are still around and appear to have moved away from electron so you may have more luck now.

Re:Ask HN: Personal Database Tool? by tugberkk on Tuesday June 11, 2019 @06:31AM (#20154232)
I know this is not the answer you are looking for, but Microsoft Excel (or a spreadsheet program) can help you with this, except images.

However, notes, quotes, movie names etc. can all be listed in a spreadsheet and can be searched, listed, filtered, etc.

Re:Ask HN: Personal Database Tool? by flukus on Friday June 07, 2019 @12:26AM (#20121664)
There a re CLI tagging tools like this: https://tmsu.org/

It's mostly driven by folders and symlinks, so you could create your own with a few shell scripts.

Re:Ask HN: Personal Database Tool? by jesterson on Friday June 07, 2019 @02:33AM (#20122149)
I'd suggest to try Notion and AirTable. Notion is slightly more then just personal database, AirTable might be useful if you like working with tables/databases.
Re:Ask HN: Personal Database Tool? by gexla on Friday June 07, 2019 @02:52AM (#20122222)
Take a look at Perkeep.

https://perkeep.org/

You can also do a search here for the name to see other posts on the project.

Re:Ask HN: Personal Database Tool? by lovelearning on Friday June 07, 2019 @12:47AM (#20121728)
Most note taking tools allow all that - organize content, tag, and search. They differ in user experience. Try Evernote, OneNote, Zotero, but there are many more.
Re:Ask HN: Personal Database Tool? by SanchoPanda on Friday June 07, 2019 @02:42AM (#20122189)
Recoll search engine is a mature, robust, and battle tested solution. Set up is fairly straightforward and there a webui available as well.
Re:Ask HN: Personal Database Tool? by bdibs on Friday June 07, 2019 @03:46AM (#20122474)
Check out Bookstack https://www.bookstackapp.com
Re:Ask HN: Personal Database Tool? by tmaly on Friday June 07, 2019 @11:20AM (#20125436)
I could imagine a simple cli with S3 or some other key value cloud storage could be used to accomplish this.
Re:Ask HN: Personal Database Tool? by lagerstedt on Friday June 07, 2019 @02:44AM (#20122199)
Try using a text file and grep?
Re:Ask HN: Personal Database Tool? by jvvlimme on Friday June 07, 2019 @01:30AM (#20121889)
Notion.so?