# Space Lua: Making Space Script safer, simpler and unifying all the things

**URL:** <https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970>\
**Category:** Lua\
**Created:** [September 9, 2024, 6:01pm UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970 "2024-09-09T18:01:35Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![LumenYoung](https://community.silverbullet.md/user_avatar/community.silverbullet.md/lumenyoung/32/368_2.png) [@LumenYoung](https://community.silverbullet.md/u/LumenYoung)\
**Post date:** [October 4, 2024, 7:25am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/21 "2024-10-04T07:25:01Z")

</div>

That is so exciting man. I’ve been seeing commits about space-lua for a few days and looking it works is so exciting. Great job zef!

One thing I notice is that the demonstrated syntax is not 100% lua right? It is using semicolon for key-value pairs in the table.

---

<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 4, 2024, 5:14pm UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/22 "2024-10-04T17:14:54Z")

</div>

> [@LumenYoung](#):
>
> It is using semicolon for key-value pairs in the table.

Yeah that’s valid Lua syntax, you can use either commas or semicolons

---

<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 14, 2024, 7:10pm UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/23 "2024-10-14T19:10:10Z")

</div>

Started some documentation: [Space Lua](https://silverbullet.md/Space%20Lua)

Subject to deep change. Still figuring out what this can and should do and what the APIs should look like.

---

<div class="post-metadata">

**Author:** ![mjf](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mjf/32/654_2.png) [@mjf](https://community.silverbullet.md/u/mjf)\
**Post date:** [October 18, 2024, 8:37am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/24 "2024-10-18T08:37:29Z")

</div>

@zef Absolutely cool! Looking forward to it!

(BTW: the [marquee tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee) is obsoleted.)

---

<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 18, 2024, 4:07pm UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/25 "2024-10-18T16:07:34Z")

</div>

It will never be obsolete in my heart.

---

<div class="post-metadata">

**Author:** ![vuau](https://community.silverbullet.md/user_avatar/community.silverbullet.md/vuau/32/554_2.png) [@vuau](https://community.silverbullet.md/u/vuau)\
**Post date:** [October 20, 2024, 11:30am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/26 "2024-10-20T11:30:36Z")

</div>

It’s the first cool thing I did when learning HTML haha

---

<div class="post-metadata">

**Author:** ![LumenYoung](https://community.silverbullet.md/user_avatar/community.silverbullet.md/lumenyoung/32/368_2.png) [@LumenYoung](https://community.silverbullet.md/u/LumenYoung)\
**Post date:** [November 29, 2024, 8:40am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/27 "2024-11-29T08:40:42Z")

</div>

Hey Zef, do you think it is easier to accept the valid lua file instead of embed in the markdown block so we can use our own editor with completion and other functionalities?

---

<div class="post-metadata">

**Author:** ![zeus-web](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zeus-web/32/571_2.png) [@zeus-web](https://community.silverbullet.md/u/zeus-web)\
**Post date:** [December 3, 2024, 10:46am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/28 "2024-12-03T10:46:11Z")

</div>

Out of couriosity I did a few experiments with LUA in Silverbullet and despite having pretty small knowledge about it, yet, I like it very much!  
Especially the Widget style is very handy (in fact, I missed something like that before).  
And defining global functions is much more easy now, too.

However, I did not get, how to access objects like page, tags, tables, own objects and so on.  
Could you please add some examples to the space-lua-documentation, too?

Thanks 🙂

---

<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:** [December 7, 2024, 7:54am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/29 "2024-12-07T07:54:44Z")

</div>

Thanks!

Accessing those things is not very easy yet. I’m still thinking what’s the best way to expose this.

---

<div class="post-metadata">

**Author:** ![zeus-web](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zeus-web/32/571_2.png) [@zeus-web](https://community.silverbullet.md/u/zeus-web)\
**Post date:** [December 9, 2024, 12:16pm UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/30 "2024-12-09T12:16:39Z")

</div>

Oh, I was afraid, that you answer something like that 😉

So I have to be patient…  
But I’m absolutely looking forward to use LUA instead of template language (which in my eyes is a bit complicated) and concentrate on only one language for “everything” (at least within Silverbullet).

I am champing at the bit 🙂

---

<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:** [January 15, 2025, 10:31am UTC](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970/31 "2025-01-15T10:31:28Z")

</div>

Alright people. I recorded a video on the current state, including a demo:

[![](https://community.silverbullet.md/uploads/default/original/1X/700f8db526ff0417a7e6502f988f2f2ac9dc68e6.jpeg "SilverBullet: The one about Space Lua") ](https://www.youtube.com/watch?v=t1oy_41bDAY)

[Previous page](https://community.silverbullet.md/t/space-lua-making-space-script-safer-simpler-and-unifying-all-the-things/970.md?page=1)
