# Proposal: "hardcode" Library/ prefix to mean "meta"

**URL:** <https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480>\
**Category:** Ideas\
**Created:** [October 25, 2026, 11:21am UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480 "2026-10-25T11:21:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [October 25, 2026, 11:21am UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/1 "2026-10-25T11:21:20Z")

</div>

Once upon a time I thought it would a great idea to make as much in SilverBullet "location" independent. Up to that point a lot of "special" pages, like templates, page templates and other things relied on naming conventions, like page templates would have to live in "Templates/Page" (or whatever, I don't remember the specific thing).

Then one day I thought — no, this will make things harder (especially as I was thinking of how redistributable libraries and templates could work), we should not rely on names for filter, but use tags. Hence the `#meta/\* mechanism was born on top of which this "page picker" vs "meta picker" split, and later index.contentPages() vs index.metaPages() were built: all on the rule "if it has a #meta or #meta/\* tag, it's considered "meta").

Now, a few years later, I'm reconsidering again and thinking if a hybrid approach would not make sense. Right now I struggle a bit with functionality that is just makes most sense to be built on the server side (often for scalability or performance reasons) like full-text search. However, I find myself having to duplicate index-based logic there (like parsing the page text for the presence of #meta tags at specific ways) on the server, which I don't like. And in general, there have been an increasing number of hacks and exceptions to make this work.

So the proposal I have is to simplify and agree that **whatever is in the `Library` folder is considered a meta page (or maybe library page, we may want to rebrand, opinions welcome). Period.** That's the rule. Meta tags will stay around as before, because they're still useful to have location independent means to mark "this is a page template" (that can be scattered anywhere within the `Library` folder). It is already the case that `Library/Std` is mounted in to implement various built-in features (and plugs), in practicase you were already kind of forced/suggested to put all your "tool" pages and tweaks into that folder. This would just hardcoded that idea and make it clear: this is where to put this stuff.

Thoughts? Any strong objections?

**FAQ:**

- Can we make this configurable? Hypothetically yes, but honestly I think it will make thing super difficult. As mentioned, it's already the case that Library/Std is what ends up in every space, and there's no way around it, so the "Library" folder in your space is effectively kind of reserved already.
- What about `CONFIG`? Good question, either the rule will be "Library" and "CONFIG" or I implement a migration step that moves your CONFIG page into `Library/Config` for you.

---

<div class="post-metadata">

**Author:** ![justyns](https://community.silverbullet.md/user_avatar/community.silverbullet.md/justyns/32/132_2.png) [@justyns](https://community.silverbullet.md/u/justyns)\
**Post date:** [October 25, 2026, 10:39pm UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/2 "2026-10-25T22:39:57Z")

</div>

Seems like a good idea to me.

I had to double check because I thought this was the default. Turns out I already have a page transform rule in `CONFIG` to do this:

```lua
local pageTags = {
  {match = function(p) return p.name:startsWith("Library/") end, tag = "meta"},
...
}

tag.define {
  name = "page",
  transform = function(p)
    for _, rule in ipairs(pageTags) do
      local tags = p.tags or {}
      if rule.match(p) and not table.includes(tags, rule.tag) then
        table.insert(tags, rule.tag)
        p.tags = tags
      end
    end
    return p
  end
}

```

For other config, I try to keep most of my personal config in `Library/Personal/` but I wouldn't be opposed to CONFIG moving to `Library/CONFIG`. If you ever open your SB space in something other than SB, having it out of the root directory makes sense too.

---

<div class="post-metadata">

**Author:** ![drhayes](https://community.silverbullet.md/user_avatar/community.silverbullet.md/drhayes/32/1390_2.png) [@drhayes](https://community.silverbullet.md/u/drhayes)\
**Post date:** [October 27, 2026, 8:05pm UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/3 "2026-10-27T20:05:27Z")

</div>

That makes sense to me. Tiddlywiki does something similar with pages that start with the prefix `$:/`; those are "system" pages and don't show up in normal operations like search:

- [SystemTiddlers: TiddlyWiki v5.4.1 — a non-linear personal web notebook](https://tiddlywiki.com/static/SystemTiddlers.html)
- [Naming of System Tiddlers: TiddlyWiki v5.4.1 — a non-linear personal web notebook](https://tiddlywiki.com/static/Naming%2520of%2520System%2520Tiddlers.html)

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [November 9, 2026, 6:57am UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/4 "2026-11-09T06:57:29Z")

</div>

Ok, so this is going to happen soon I'll be working on this on the `main` branch, and if it all pans out it should simplify a lot of things on the technical side and have limited implications on the user side.

One thing I missed before is `Repositories/` (which really should have been `Repository/`) which we'll have to move under `Library` as well.

**To prepare for this today, simply move all your space-lua, space-style in pages under `Library/` and all should be good.**

I'll add automatic migration code to rename existing `CONFIG` pages to `Library/Config` to keep this simple.

**Repository maintainers: change paths to `Library/Repository/whatever` already now.**

---

<div class="post-metadata">

**Author:** ![schroederc](https://community.silverbullet.md/user_avatar/community.silverbullet.md/schroederc/32/3545_2.png) [@schroederc](https://community.silverbullet.md/u/schroederc)\
**Post date:** [November 9, 2026, 9:13pm UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/5 "2026-11-09T21:13:29Z")

</div>

Hate to be that guy, but I don't suppose we can make "Breaking:\*\* [[Space Lua]] and [[Space Style]] blocks now **only** run from `Library/`" configurable?

> **[Workflow](https://xkcd.com/1172/)**

---

<div class="post-metadata">

**Author:** ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)\
**Post date:** [November 9, 2026, 9:27pm UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/6 "2026-11-09T21:27:53Z")

</div>

Anything is always possible, but this one in particular would need a VERY good reason. So my question is: why? What’s your workflow that this is breaking?

---

<div class="post-metadata">

**Author:** ![schroederc](https://community.silverbullet.md/user_avatar/community.silverbullet.md/schroederc/32/3545_2.png) [@schroederc](https://community.silverbullet.md/u/schroederc)\
**Post date:** [November 10, 2026, 6:06am UTC](https://community.silverbullet.md/t/proposal-hardcode-library-prefix-to-mean-meta/4480/7 "2026-11-10T06:06:54Z")

</div>

It's just a preference. Carry on
