Luau Libraries available for use

They are referring to the Lua translation of upstream React. See GitHub - jsdotlua/react-lua: A library for building user interfaces in Lua..

9 Likes

Thank you for officially releasing these! I think having the option of using the git repo or the creator marketplace package is great.

6 Likes

This is awesome. Glad to see Roblox open sourcing libraries for a community who will happily contribute quality material. Huge thanks to the team who’ve helped at Roblox.

4 Likes

Hell yeah, super cool, you might want to tag them on github as well or put them in a list!

4 Likes

Yooo, this is really cool!

Lua (and Luau) have been such underrated languages over the years of it’s existence.
I would actually prefer using Lua(u) over languages like Python or JavaScript.

Glad to see that Lua(u) is slowly becoming more recognized and used.

4 Likes

Absolutely incredible! Several of these libraries have been implemented previously in community-maintained packages, but seeing them officially supported by Roblox is great! dash, regexp, polyfill, and signal look particularly useful, and it’s amazing to see Roblox supporting both the Roblox open-source community and the wider Lua open-source community with these libraries as well.

official react17 wen

3 Likes

It’s great that Roblox is open to community input for Luau. Lua and Luau have a lot of potential, especially with the community working on it (at least that’s what I think if I understood the post right).

2 Likes

I know Swift, is this like:

import MyAwesomeService

in Swift, but in LuaU, you would do:

game:GetService("MyAwesomeService")

?

Or is it something else?

i think you meant require(path.to.library)

1 Like

Adding on to this, over the past two weeks, we have made some pretty extensive plans for translating packages from the React Native ecosystem into Lua. We’re prepared to do these translations by hand, but again, having JS-to-Lua would significantly help our workflow.

Below is a very rough overview of the significant UI-related packages we will be uplifting into Lua. It only includes the libraries that directly influence our UI, but there are also other packages we will be translating, primarily analytics and telemetry clients and utilities.

Our goal is to have a mobile development workflow on Roblox that rivals that of React Native developers. We want to build a suite of OSS tools and libraries for constructing mobile-first apps using the Roblox engine. Eventually, our UI should feel like a 100% native mobile app.

5 Likes

The next set of repositories have just been released! :sparkles:

  • js-to-lua: Conversion tool for migrating JS/TS code into Luau.
  • graphql-lua: A reference implementation of GraphQL for Roblox Lua.
  • graphql-tag-lua: A Lua template literal tag that parses GraphQL queries.
14 Likes

Haha I spoke too soon in my previous reply. Thanks so much for this; our team will be investing heavily in the tech!

1 Like

fwiw zustand has already been ported through roblox-ts so you could probably just cleanup that code

:gift: :gift: :christmas_tree: :gift: :gift: Look! Four new presents under the tree.

(We’ve released our next set of repositories)

23 Likes

Thank you, Christmas came early this year!

I can’t wait until react-lua has some documentation on migrating from Roact and installing it in projects outside of Roblox. I tried copying the example into one of our projects and I hit some difficulties as there are a lot of imports relative to folders called Packages. I suspect folders named Packages have contents generated by rotriever or some other internal package management tool.

Anyhow, it’s only been a few hours, so no worries. Thanks for sharing this awesome work with everyone on GitHub and I’m excited to use it soon!

2 Likes

Amazing, bit disappointed to see roact go and react-lua to take it’s place without access to any proper documentation or the comparability layer that keeps getting mentioned in the README.

Will we ever see RoactCompat being released at one point to ease this transition phase to react-lua from roact?

React Lua is broken down into modules. Here’s roact-compat and the docs are also available!

2 Likes

This is huge news!! Thank you for officially releasing react-lua :partying_face:

1 Like

Scripting Libraries | Documentation - Roblox Creator Hub This page hasn’t been updated yet

Will Rotriever or a Rotriever-compatible package manager be released? The documentation references Rotriever and those links are broken externally.

The reason why I mention it is that we could manually build the packages for those modules, but it may be error prone and everyone would have to discover and replicate that process for themselves if it wasn’t documented.

3 Likes