repo stringclasses 341
values | file_path stringlengths 29 173 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.66M | tokens int64 2 598k |
|---|---|---|---|---|---|
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Config/RateConfig.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 138 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Constants/Logs.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 1,462 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Constants/Tracker.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 135 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/All.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 1,230 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/Bounds.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 565 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/DetectionCoverage.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 511 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/DetectionMethod.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 508 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/DetectionMode.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 488 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/Execution.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 317 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/Rate.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 546 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Data/Enums/Simulation.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 399 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Misc/ActorCode.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set a Memory Category for this:
debug.setmemorycateg... | 983 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZoneConfig.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 478 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZoneInstances.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 231 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZonePrimitives.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 350 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZonePublic.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 2,440 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZoneState.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 99 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Types/ZoneTargets.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 188 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/Modules/Internal/Utility/MiscHelpers.luau | luau | .luau | --===========================================================================================================================>
--!strict
--===========================================================================================================================>
-- Set Memory Category:
debug.setmemorycategory('[Zoner... | 982 |
skyriverstudios/Zoner | skyriverstudios-Zoner-e79d8e9/src/init.luau | luau | .luau | --===========================================================================================================================>
--!optimize 2
--!strict
--===========================================================================================================================>
-- [Name]:
-- Zoner
-- [Author]:
-- IISat... | 13,309 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/docs/templates/server-operation-template.luau | luau | .luau | -- Stoway Server Operation Template
-- Copy this file to src/server/StowayServerV1_2/Operations/{{OperationName}}.luau
-- See docs/guides/add-server-features.html for complete instructions
--// ═══════════════════════════════════════════════════════════════════════════
--// {{OperationName}}.luau
--// Description: [Ad... | 1,257 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/CoreState/InventoryStore.luau | luau | .luau | -- src/client/Inventory/InventoryStore.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Fusion = require(ReplicatedStorage.Packages.fusion)
local Settings = require(ReplicatedStorage.Shared.Settings)
local Types = require(ReplicatedStorage.Shared.Types)
local Scope = Fusion.scoped(Fusion)
loca... | 1,896 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/DragFunctions/DragHandler.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local InventoryController = require(script.Parent.Parent.Operations.InventoryController)
local Inv... | 3,208 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Hook/HookManager.luau | luau | .luau | -- src/client/StowayClientV1_2/Hooks/HookManager.luau
-- UI-specific hook system - each UI skin provides its own hooks
local HookManager = {}
HookManager.__index = HookManager
--// Available hook types
local HOOK_TYPES = {
OnSlotClick = "OnSlotClick",
OnSlotHover = "OnSlotHover",
OnDragStart = "OnDragStart",
OnDr... | 653 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/ConsoleDropUI.luau | luau | .luau | local Players = game:GetService("Players")
local GuiService = game:GetService("GuiService")
local ConsoleDropUI = {}
local container = nil
local currentAmount = 1
local maxAmount = 1
local dropMenuTemplate = nil
-- References
local numberIndicator = nil
local titleLabel = nil
local decreaseButton = nil
local increase... | 2,964 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/ConsoleModeManager.luau | luau | .luau | local GuiService = game:GetService("GuiService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local SelectionManager = require(script.Parent.SelectionManager)
local InputManager = require(script.Parent.InputManager)
local IllusionIAS = require(ReplicatedStorage.Packages.IllusionIAS)
local Binds = req... | 1,237 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/InputManager.luau | luau | .luau | -- src/client/StowayClientv1_2/Input/InputManager.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local IllusionIAS = require(ReplicatedStorage.Packages.IllusionIAS)
local Binds = require(ReplicatedStorage.Shared.Binds)
local Settings = require(ReplicatedStorage.Shared.Settings)
local InputManager ... | 923 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/InteractionManager.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local InventoryStore = require(script.Parent.Parent.CoreState.InventoryStore)
local InventoryController = require(script.Parent.Parent.Operations.Invent... | 1,604 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/SelectionManager.luau | luau | .luau | local GuiService = game:GetService("GuiService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local InputManager = require(script.Parent.InputManager)
local InventoryController = require(script.Parent.Parent.Operations.InventoryController)
local InventoryStore = require(script.Parent.Parent.CoreState.... | 2,412 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/NetworkFunctions/NetworkHandler.luau | luau | .luau | -- src/client/StowayClientV1_2/NetworkFunctions/NetworkHandler.luau
-- Centralized Network Gateway for Inventory System V1.2
-- This module handles all server communication (incoming & outgoing)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local NetworkHandler = {}
-- Remotes
local Remotes = Replic... | 286 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Operations/InventoryController.luau | luau | .luau | -- src/client/Inventory/InventoryController.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Store = require(script.Parent.Parent.CoreState.InventoryStore)
local NetworkHandler = require(script.Parent.Parent.NetworkFunctions.NetworkHandler)
local Fusion = require(ReplicatedStorage.Packages.fus... | 2,903 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/SlotCreation/SlotFactory.luau | luau | .luau | -- src/client/Inventory/Components/SlotFactory.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local InventoryController = require(script.Parent.Parent.Operations.InventoryController)
local RarityValues = require(ReplicatedStorage.Shared.RarityValues)
local Settings = require(ReplicatedStorage.Share... | 2,222 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/init.luau | luau | .luau | -- src/client/StowayClientV1_2/ClientInventoryService.luau
--modules
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
local UserInputService = game:GetService("UserInputService")
local ClientInventoryService = {}
... | 4,091 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/client/init.client.luau | luau | .luau | -- src/client/init.client.luau
require(script.StowayClientv1_2).Init() | 21 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/InventoryState.luau | luau | .luau | -- src/server/StowayServerV1.2/Core/InventoryState.luau
-- Pure data container for player inventory state
-- Includes per-player settings (defaults from Config, modifiable at runtime)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local InventoryState = {}
InventoryState.__index = InventoryState
local... | 614 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/LimitChecker.luau | luau | .luau | -- src/server/StowayServerV1.2/Core/LimitChecker.luau
-- Pre-operation validation for inventory weight/limit (Amount-based)
-- Uses state.Settings (per-player) instead of global Settings
-- Limit = 0 means INFINITE (no weight checking)
local LimitChecker = {}
local SlotManager = require(script.Parent.SlotManager)
--... | 464 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/SlotManager.luau | luau | .luau | -- src/server/StowayServerV1.2/Core/SlotManager.luau
-- Single source of truth for slot-level operations (Static Hotbar / Dynamic Storage)
-- Uses state.Settings (per-player) instead of global Settings
local SlotManager = {}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Settings = require(Replic... | 1,002 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Debug/ChatCommands.luau | luau | .luau | -- src/server/StowayServerV1.2/Debug/ChatCommands.luau
-- Debug chat commands for testing the inventory system
local ChatCommands = {}
function ChatCommands.Register(player: Player, InventoryService: any)
player.Chatted:Connect(function(msg)
local args = string.split(msg, " ")
local cmd = string.lower(args[1])
... | 3,488 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/AddOperation.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local AddOperation = {}
local Settings = require(ReplicatedStorage.Shared.Settings)
local SlotManager = require(script.Parent.Parent.Core.SlotManager)
local LimitChecker = require(script.Parent.Parent.Core.LimitChecker)
local StackChecker = require(script.P... | 1,877 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/DropOperation.luau | luau | .luau | -- src/server/StowayServerV1.2/Operations/DropOperation.luau
-- Handles Drop logic: If equipped → Unequip → Remove from inventory → Spawn in world
local DropOperation = {}
local SlotManager = require(script.Parent.Parent.Core.SlotManager)
local RemoveOperation = require(script.Parent.RemoveOperation)
local EquipOpera... | 588 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/RemoveOperation.luau | luau | .luau | -- src/server/StowayServerV1.2/Operations/RemoveOperation.luau
-- Handles full Remove logic flow: Validate → Reduce/Destroy → Shift if Storage
local RemoveOperation = {}
local SlotManager = require(script.Parent.Parent.Core.SlotManager)
local LimitChecker = require(script.Parent.Parent.Core.LimitChecker)
export type... | 821 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/SwapOperation.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
-- src/server/StowayServerV1.2/Operations/SwapOperation.luau
-- Handles full Swap logic flow: Validate → Execute (preserve equipped) → Return delta
-- Uses state.Settings (per-player) for bounds checking
local SwapOperation = {}
local Settings = require(R... | 974 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Replication/Replicator.luau | luau | .luau | -- src/server/StowayServerV1.2/Replication/Replicator.luau
-- Centralized delta replication dispatcher
local Replicator = {}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Actions = require(script.Parent.Actions)
-- Remote setup
local RemotesFolder = ReplicatedStorage:FindFirstChild("Remotes")
... | 738 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/MetadataParser.luau | luau | .luau | -- src/server/StowayServerV1.2/Utils/MetadataParser.luau
-- Parses metadata from Tool attributes
-- Note: "Amount" is extracted separately and excluded from metadata
local MetadataParser = {}
local ServerStorage = game:GetService("ServerStorage")
local ToolStorage = ServerStorage:FindFirstChild("Tools") :: Folder?
... | 568 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/StackChecker.luau | luau | .luau | -- src/server/StowayServerV1.2/Utils/StackChecker.luau
-- Validates if items can stack and attempts stacking
-- Uses state.Settings for CanStack and MaxStackSize (per-player)
-- Uses global Settings.Stacking for item-level rules (RequiredFields, Blacklist)
local StackChecker = {}
local ReplicatedStorage = game:GetServ... | 635 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/UUID.luau | luau | .luau | -- src/server/StowayServerV1.2/Utils/UUID.luau
-- UUID generation utility
local UUID = {}
local HttpService = game:GetService("HttpService")
function UUID.Generate(): string
return HttpService:GenerateGUID(false)
end
return UUID
| 57 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/server/init.server.luau | luau | .luau | -- ServerScriptService/init.server.luau
--// Stoway V1 Initialization
-- We are transitioning to the new V1 architecture.
-- The old StowayServer code is replaced by this single service entry point.
local InventoryService = require(script["StowayServerV1_2"])
InventoryService.Init()
print("Stoway Inventory System V... | 77 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/shared/Binds.luau | luau | .luau | -- ReplicatedStorage/Shared/Binds.lua
local Binds = {}
-- Helper function to apply binds to an action
-- Usage: Binds.ApplyToAction(action, Binds.Global.InventoryActions.Swap)
-- Or: Binds.ApplyToAction(action, Binds.Global.InventoryActions.Swap, "Console") -- Console only
function Binds.ApplyToAction(action, bindC... | 1,026 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/shared/RarityValues.luau | luau | .luau | local rarities = {}
rarities.rarityColors = {
["godly"] = Color3.new(0.933333, 0.92549, 0.435294),
["lengendary"] = Color3.new(0.639216, 0.278431, 0.278431),
["rare"] = Color3.new(0.372549, 0.607843, 0.721569),
["uncommon"] = Color3.new(0.588235, 0.72549, 0.509804),
["common"] = Color3.new(0.4, 0.4... | 302 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/shared/Settings.luau | luau | .luau | -- src/server/StowayServerV1.2/Config/Settings.luau
-- Configuration for the Inventory System V1.2
local Settings = {}
--// Types
export type HotbarType = "Static" | "Dynamic"
--// Hotbar Settings
Settings.Hotbar = {
Type = "Static" :: HotbarType, -- Static: fixed slots with holes, Dynamic: packed array (perplayer ... | 534 |
Zyn-ic/Stoway | Zyn-ic-Stoway-ed64b7e/src/shared/Types.luau | luau | .luau | -- ReplicatedStorage/Shared/Types.lua
local Types = {}
Types.HotbarType = { Static = "Static", Dynamic = "Dynamic" }
Types.CarryingType = { Inventory = "Inventory", Backpack = "Backpack" }
Types.SortingType = {Name = "Name", Rarity = "Rarity", ItemType = "ItemType", SearchBar = "SearchBar"}
export type ItemData = {
... | 179 |
randexlabs/roblox-boilerplate | randexlabs-roblox-boilerplate-3d52cc2/create/init.luau | luau | .luau | local fs = require '@std/fs'
local io = require '@std/io'
local process = require '@std/process'
local tint = require '@luaupkg/tint'
local function has_dry_run()
for _, arg in process.args do
if arg == '--dry-run' then return true end
end
return false
end
local function destroy_dot_git()
if not fs.exists '.gi... | 574 |
randexlabs/roblox-boilerplate | randexlabs-roblox-boilerplate-3d52cc2/scripts/env.luau | luau | .luau | -- MIT License
-- Copyright (c) 2026 ernisto
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, ... | 359 |
randexlabs/roblox-boilerplate | randexlabs-roblox-boilerplate-3d52cc2/stories/.storybook.luau | luau | .luau | return {
name = 'Stories',
storyRoots = {
script.Parent,
},
}
| 20 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Codify.luau | luau | .luau | local Packager = require("@pkg/Packager")
local Serializer = require("./Serializer")
local Types = require("./Types")
local formatCase = require("./Lib/formatCase")
local sanitizeName = require("./Lib/sanitizeName")
local trimString = require("./Lib/trimString")
local IGNORED_PROPERTIES = require("./IgnoredPropertie... | 757 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Generators/Fusion.luau | luau | .luau | local Types = require("../Types")
local Serializer = require("../Serializer")
local DEFAULT_INDENTATION = (" "):rep(4)
local DEFAULT_CREATE_METHOD = "scope:New"
local DEFAULT_CHILDREN_KEY = "Children"
return function(config: {
indentation: string?,
createMethod: string?,
childrenKey: string?,
names: ("all" | "ch... | 587 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Generators/Jsx.luau | luau | .luau | local Types = require("../Types")
local Serializer = require("../Serializer")
local createUniqueKey = require("../Lib/createUniqueKey")
local DEFAULT_INDENTATION = (" "):rep(4)
return function(config: {
indentation: string?,
names: ("all" | "changed" | "none")?,
lowercaseKeyProp: boolean?,
}?)
local keyProp = c... | 697 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Generators/React.luau | luau | .luau | local Types = require("../Types")
local Serializer = require("../Serializer")
local createUniqueKey = require("../Lib/createUniqueKey")
local DEFAULT_INDENTATION = (" "):rep(4)
local DEFAULT_CREATE_METHOD = "React.createElement"
return function(config: {
indentation: string?,
createMethod: string?,
names: ("all"... | 695 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Generators/Roblox.luau | luau | .luau | local Types = require("../Types")
local Serializer = require("../Serializer")
local createUniqueKey = require("../Lib/createUniqueKey")
local DEFAULT_INDENTATION = (" "):rep(4)
return function(config: {
indentation: string?,
names: ("all" | "changed" | "none")?,
}?)
local function tab(n: number)
local indent =... | 465 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Generators/init.luau | luau | .luau | local Fusion = require("./Fusion")
local Jsx = require("./Jsx")
local React = require("./React")
local Roblox = require("./Roblox")
return {
Fusion = Fusion,
Jsx = Jsx,
React = React,
Roblox = Roblox,
}
| 59 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/IgnoredProperties.luau | luau | .luau | return {
global = {
"Parent",
},
classes = {
BasePart = {
"BrickColor",
},
},
}
| 34 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Lib/createUniqueKey.luau | luau | .luau | local function createUniqueKey()
local names = {}
return function(name)
if names[name] == nil then
names[name] = 1
return name
end
while true do
names[name] += 1
local finalName = `{name}_{names[name]}`
if names[finalName] == nil then
return finalName
end
end
end
end
return createUn... | 95 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Lib/formatCase.luau | luau | .luau | export type CaseFormat = "camel" | "lower" | "pascal" | "upper"
local function formatCase(str: string, caseFormat: CaseFormat?)
if caseFormat == "pascal" then
local formatted = str:gsub("^%l", string.upper)
return formatted
elseif caseFormat == "lower" then
return str:lower()
elseif caseFormat == "camel" then... | 139 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Lib/sanitizeName/init.luau | luau | .luau | local trimString = require("../trimString")
local function sanitizeName(
name: string,
config: {
reservedWords: { string }?,
}?
)
local reservedWords = config and config.reservedWords
-- Replace all non-alphanumeric characters with underscores
name = trimString(name):gsub("[^%w_]+", "_")
-- If the name is a... | 186 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Lib/trimString.luau | luau | .luau | local function trimString(str: string)
local trimmed = str:gsub("^%s*(.-)%s*$", "%1")
return trimmed
end
return trimString
| 35 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Serializer.luau | luau | .luau | export type UserFormats = {
color3: Color3Format,
udim2: UDim2Format,
numberRange: NumberRangeFormat,
enum: EnumFormat,
normalId: NormalIdFormat,
brickColor: BrickColorFormat,
physicalProperties: PhysicalPropertiesFormat,
udim: UDimFormat,
cframe: CFrameFormat,
vector2: Vector2Format,
vector3: Vector3Format,... | 4,103 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/Types.luau | luau | .luau | local Packager = require("@pkg/Packager")
export type SerializedProperty = {
Type: "serialized",
Value: string,
OriginalType: string,
OriginalValue: any,
}
type SerializedNodeAdditions = {
VariableName: string,
}
export type SeralizedFlatTreeNode = Packager.FlatTreeNode & SerializedNodeAdditions
export type Ser... | 105 |
cxmeel/codify-lib | cxmeel-codify-lib-9f68fb1/src/init.luau | luau | .luau | local Generators = require("./Generators")
local Serializer = require("./Serializer")
local codify = require("./Codify")
return {
Generators = Generators,
Serializer = Serializer,
codify = codify.codify,
setPackager = codify.setPackager,
}
| 59 |
itsfrank/lune-cloud-luau-client | itsfrank-lune-cloud-luau-client-fceeb37/example/test_script.luau | luau | .luau | print("hello from cloud print")
return {
message = "hello from cloud return",
}
| 19 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/core/class.luau | luau | .luau | type Constructor<T, A...> = (self: T, A...) -> ()
type Class<T, P, A...> = P & { new: (A...) -> T & P }
--- An utility function to create lua-style classes by settings metatables.
return function<T, P, A...>(constructor: Constructor<T, A...>, prototype: P?): Class<T, P, A...>
local proto = prototype or {}
local mt =... | 149 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/core/lifecycle.luau | luau | .luau | local Types = require(script.Parent.Parent.types)
local Logger = require(script.Parent.Parent.internal.logger)
local function getSingletons(self: Types.InternalLifecycle)
return self.__singletons
end
local function invokeAll(self: Types.InternalLifecycle, ...: any)
for _, entry in self.__singletons do
local metho... | 241 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/core/run.luau | luau | .luau | local RunService = game:GetService("RunService")
local root = script.Parent.Parent
local Types = require(root.types)
local Logger = require(root.internal.logger)
local Registry = require(root.internal.registry)
local isServer = RunService:IsServer()
return function(singletonFolder: Folder, config: Types.FrameworkCo... | 601 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/core/singleton.luau | luau | .luau | local root = script.Parent.Parent
local Types = require(root.types)
local Registry = require(root.internal.registry)
local function getCustomLifecycle(k, v): (boolean, Types.InternalLifecycle?, string?)
local lifecycle = nil :: Types.InternalLifecycle?
local methodName = nil :: string?
if typeof(k) == "table" and... | 289 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/init.luau | luau | .luau | -- Re-exported types
local Types = require(script.types)
export type CustomLifecycle<Data> = Types.CustomLifecycle<Data>
-- Main
return {
singleton = require(script.core.singleton),
run = require(script.core.run),
lifecycle = require(script.core.lifecycle),
version = require(script.version),
modules = script... | 79 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/internal/logger.luau | luau | .luau | local RunService = game:GetService("RunService")
local Levels = {
Information = "inf",
Debug = "dbg",
Warning = "wrn",
Error = "err",
CriticalError = "cri",
}
local Platform = if RunService:IsClient() then "client" else "server"
local Logger = {
enableDebug = RunService:IsStudio(),
enableInfo = true,
}
funct... | 262 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/internal/registry.luau | luau | .luau | local root = script.Parent.Parent
local Types = require(root.types)
type InternalData = {
singletons: { Types.Singleton },
lifecycleHandlers: { [Types.Lifecycle]: { { singleton: Types.Singleton, method: string } } },
customLifecycles: { Types.InternalLifecycle },
instanceCount: number,
instancesReady: number,
m... | 612 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/modules/Channel.luau | luau | .luau | local RunService = game:GetService("RunService")
local ServerStorage = game:GetService("ServerStorage")
local HttpService = game:GetService("HttpService")
export type Channel<Args..., Returns...> = {
instance: BindableFunction,
invoke: (self: Channel<Args..., Returns...>, Args...) -> Returns...,
set: (self: Channe... | 308 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/modules/Networking/init.luau | luau | .luau | local FolderName = "__QBC_EV"
local RunService = game:GetService("RunService")
local Logger = require(script.Parent.Parent.internal.logger)
local event = require(script.event)
local eventTypes = require(script.event.types)
local func = require(script.func)
local funcTypes = require(script.func.types)
-- Re-export ... | 536 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/modules/Signal.luau | luau | .luau | local RunService = game:GetService("RunService")
local ServerStorage = game:GetService("ServerStorage")
local HttpService = game:GetService("HttpService")
export type Signal<Args...> = {
instance: BindableEvent,
fire: (self: Signal<Args...>, Args...) -> (),
connect: (self: Signal<Args...>, callback: (Args...) -> (... | 291 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/types.luau | luau | .luau | -- Configuration
export type FrameworkConfiguration = {
--- A table defining how many instances are there.
--- It's only required if you have more than one instance.
instances: { string }?,
--- Defaults to false in production, but true in studio. Enabling this will enable debug prints.
debug: boolean?,
--- Def... | 497 |
BaxoPlenty/quebec | BaxoPlenty-quebec-2a57cd7/src/version.luau | luau | .luau | return "v4.2.1"
| 9 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Component.luau | luau | .luau | local Prefix = require('./Prefix')
local sysPath = require('./sys/path')
local MAIN_SEPARATOR_STR = sysPath.MAIN_SEPARATOR_STR
type Prefix = Prefix.Prefix
export type PrefixComponent = {
type: 'prefix',
raw: string,
parsed: Prefix,
}
type NormalComponent = { type: 'normal', value: string }
type Componen... | 691 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Prefix.luau | luau | .luau | export type PrefixEnum =
{ type: 'Verbatim', value: string }
| { type: 'VerbatimUNC', hostName: string, shareName: string }
| { type: 'VerbatimDisk', value: string }
| { type: 'DeviceNS', value: string }
| { type: 'UNC', hostName: string, shareName: string }
| { type: 'Disk', value: string }
ex... | 1,169 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/Rev.luau | luau | .luau | local Disk = require('@pkg/luau-disk')
local Array = Disk.Array
export type Rev<T> = {
next: (self: Rev<T>) -> T?,
collect: (self: Rev<T>) -> { T },
rev: (self: Rev<T>) -> Rev<T>,
-- DoubleEndedIterator
nextBack: (self: Rev<T>) -> T?,
clone: (self: Rev<T>) -> Rev<T>,
}
type DoubleEndedIterat... | 532 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/__tests__/Issues.test.luau | luau | .luau | -- additional tests that were reported
local jestGlobals = require('@pkg/@jsdotlua/jest-globals')
local Path = require('../Path')
local expect = jestGlobals.expect
local it = jestGlobals.it
local describe = jestGlobals.describe
describe('issue #3', function()
it(`set empty extension on 'src/abc' gives 'src/abc'... | 136 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/__tests__/Prefix.test.luau | luau | .luau | local Disk = require('@pkg/luau-disk')
local jestGlobals = require('@pkg/@jsdotlua/jest-globals')
local Path = require('../Path')
local Prefix = require('../Prefix')
local sysPath = require('../sys/path')
local Array = Disk.Array
local Map = Disk.Map
type Prefix = Prefix.Prefix
-- When running tests in Roblox Studi... | 641 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/init.luau | luau | .luau | local Path = require('./Path')
export type Path = Path.Path
export type AsPath = Path.AsPath
return {
Path = Path,
}
| 31 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/iterAfter.luau | luau | .luau | local Component = require('./Component')
type Component = Component.Component
type ComponentIterator = { next: (self: ComponentIterator) -> Component? }
type Clone<T> = { clone: (T) -> T }
local function iterAfter<T>(
iter: T & ComponentIterator & Clone<ComponentIterator>,
prefix: T & ComponentIterator
): (T... | 174 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParser.luau | luau | .luau | local PrefixParserSlice = require('./PrefixParserSlice')
type PrefixParserSlice = PrefixParserSlice.PrefixParserSlice
export type PrefixParser = {
asSlice: (self: PrefixParser) -> PrefixParserSlice,
}
type Private = {
_path: string,
_prefix: string,
_length: number,
}
type PrivatePrefixParser = Prefi... | 311 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/PrefixParserSlice.luau | luau | .luau | export type PrefixParserSlice = {
stripPrefix: (self: PrefixParserSlice, prefix: string) -> PrefixParserSlice?,
prefixBytes: (self: PrefixParserSlice) -> string,
finish: (self: PrefixParserSlice) -> string,
}
type Private = {
_path: string,
_prefix: string,
_index: number,
}
type PrivatePrefixP... | 417 |
seaofvoices/luau-path | seaofvoices-luau-path-3c4ad71/src/sys/path/init.luau | luau | .luau | local Prefix = require('../../Prefix')
local parsePrefixWindows = require('./parsePrefix')
type Prefix = Prefix.Prefix
local MAIN_SEPARATOR_STR = if _G.SYS_PATH_SEPARATOR == '\\'
or _G.SYS_PATH_SEPARATOR == '/'
then _G.SYS_PATH_SEPARATOR
elseif _G.LUA_ENV == 'lune' and (require :: any)('@lune/process'... | 330 |
LDGerrits/Bootstrapper | LDGerrits-Bootstrapper-47431b5/src/init.luau | luau | .luau | --!strict
--v1.2.2 • LDGerrits
--[=[
@class Bootstrapper
A lightweight, agnostic module loader and scheduler for Roblox.
Eliminate load-order bugs and race conditions by organizing your modules into a deterministic pipeline.
Define exactly what runs, and in what order, every single frame with zero ambiguity.
]=]
... | 5,475 |
wizevaxel/picguin | wizevaxel-picguin-34af261/.typedefs/lune/fs.luau | luau | .luau | --!nocheck
local DateTime = require("@lune/datetime")
type DateTime = DateTime.DateTime
export type MetadataKind = "file" | "dir" | "symlink"
--[=[
@interface MetadataPermissions
@within FS
Permissions for the given file or directory.
This is a dictionary that will contain the following values:
* `readOnly` ... | 1,811 |
wizevaxel/picguin | wizevaxel-picguin-34af261/.typedefs/lune/regex.luau | luau | .luau | --[=[
@class RegexMatch
A match from a regular expression.
Contains the following values:
- `start` -- The start index of the match in the original string.
- `finish` -- The end index of the match in the original string.
- `text` -- The text that was matched.
- `len` -- The length of the text that was matched... | 1,355 |
wizevaxel/picguin | wizevaxel-picguin-34af261/.typedefs/lune/task.luau | luau | .luau | --[=[
@class Task
Built-in task scheduler & thread spawning
### Example usage
```lua
local task = require("@lune/task")
-- Waiting for a certain amount of time
task.wait(1)
print("Waited for one second")
-- Running a task after a given amount of time
task.delay(2, function()
print("Ran after two second... | 540 |
wizevaxel/picguin | wizevaxel-picguin-34af261/packages/png/src/crc32.luau | luau | .luau | --!strict
--!native
--!optimize 2
local LOOKUP = table.create(0xFF, 0)
for i = 0, 0xFF do
local crc = i
for _ = 1, 8 do
if crc % 2 == 1 then
crc = bit32.bxor(crc // 2, 0xEDB88320)
else
crc //= 2
end
end
LOOKUP[i] = crc
end
return function(source: buffer, offset: number, length: number): number
local... | 202 |
wizevaxel/picguin | wizevaxel-picguin-34af261/packages/png/src/encode.luau | luau | .luau | --!strict
--!optimize 2
local types = require("./types")
export type EncodeErrorCode =
| "unsupported"
export type EncodeError = types.Error<EncodeErrorCode>
return function(): (nil, EncodeError)
return nil, {code = "unsupported", message = "PNG encoding is currently unsupported"}
end
| 67 |
wizevaxel/picguin | wizevaxel-picguin-34af261/packages/png/src/init.luau | luau | .luau | --!strict
--!optimize 2
local types = require("@self/types")
local decode = require("@self/decode")
local encode = require("@self/encode")
export type ColorSpace = types.ColorSpace
export type CriticalChunk = types.CriticalChunk
export type AncillaryChunk = types.AncillaryChunk
export type Chunk = types.Chunk
export... | 172 |
wizevaxel/picguin | wizevaxel-picguin-34af261/packages/png/src/types.luau | luau | .luau | --!strict
--!optimize 2
export type Error<Code> = {
code: "ok",
message: "",
} | {
code: Code,
message: string,
}
export type ColorSpace = "truecolor" | "grayscale" | "indexed"
export type CriticalChunk =
| "IHDR" | "PLTE" | "IDAT" | "IEND"
export type AncillaryChunk =
| "tRNS" | "cHRM" | "gAMA" | "iCCP"
| "s... | 220 |
wizevaxel/picguin | wizevaxel-picguin-34af261/packages/png/src/zlib.luau | luau | .luau | --!strict
--!native
--!optimize 2
local types = require("./types")
export type DecompressErrorCode =
| "unsupported"
| "invalid_header"
export type DecompressError = types.Error<DecompressErrorCode>
local function decompress_error(code: DecompressErrorCode, message: string): DecompressError
return {code = code, m... | 2,433 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.