repo
stringclasses
302 values
file_path
stringlengths
18
241
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
76
697k
tokens
int64
10
271k
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/method-to-lifecycles.luau
luau
.luau
local types = require("./types") local methodToLifecycles: { [string]: { types.Lifecycle } } = {} return methodToLifecycles
35
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/await.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function await<Args...>(lifecycle: types.Self<Args...>): Args... if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end local currentThread = coroutine.running() local function callback(...: Args...) ...
104
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/destroy.luau
luau
.luau
local lifecycleDestroyed = require("../hooks/lifecycle-destroyed") local logger = require("../logger") local methodToLifecycles = require("../method-to-lifecycles") local types = require("../types") local function destroy<Args...>(lifecycle: types.Self<Args...>) if lifecycle._isDestroyed then logger:fatalError({ te...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/on-registered.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function onRegistered<Args...>(lifecycle: types.Self<Args...>, listener: (callback: (Args...) -> ()) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end if _G.PRVDMWRONG_DISALLOW_MULTIPLE_LIS...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/on-unregistered.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function onUnregistered<Args...>(lifecycle: types.Self<Args...>, listener: (callback: (Args...) -> ()) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end if _G.PRVDMWRONG_DISALLOW_MULTIPLE_L...
151
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/register.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function register<Args...>(lifecycle: types.Self<Args...>, callback: (Args...) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAf...
134
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/unregister-all.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function clear<Args...>(lifecycle: types.Self<Args...>) if lifecycle._isDestroyed then logger:fatalError({ template = logger.useAfterDestroy }) end for _, cal...
103
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/methods/unregister.luau
luau
.luau
local logger = require("../logger") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function unregister<Args...>(lifecycle: types.Self<Args...>, callback: (Args...) -> ()) if lifecycle._isDestroyed then logger:fatalError({ template = logger.use...
120
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "lifecycles", description = "Provider method lifecycles implementation for Prvd 'M Wrong", dependencies = configure.dependencies({ logger = true, runtime = true, }), types = { ["Lifecycle<Args... = ...unknown>"] = "Lifecycl...
84
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/lifecycles/types.luau
luau
.luau
export type Lifecycle<Args... = ...any> = { type: "Lifecycle", callbacks: { (Args...) -> () }, method: string, register: (self: Lifecycle<Args...>, callback: (Args...) -> ()) -> (), fire: (self: Lifecycle<Args...>, Args...) -> (), unregister: (self: Lifecycle<Args...>, callback: (Args...) -> ()) -> (), clear: ...
240
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/allow-web-links.luau
luau
.luau
local runtime = require("../runtime") local allowWebLinks = if runtime.name == "roblox" then game:GetService("RunService"):IsStudio() else true return allowWebLinks
39
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/create.luau
luau
.luau
local allowWebLinks = require("./allow-web-links") local formatLog = require("./format-log") local runtime = require("../runtime") local types = require("./types") local task = runtime.task local warn = runtime.warn local function create<T>(label: string, errorInfoUrl: string?, templates: T): types.Logger<T> local s...
199
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/format-log.luau
luau
.luau
local types = require("./types") local function formatLog<Templates>(self: types.Logger<Templates>, log: types.Log, errorInfoUrl: string?): string local formattedTemplate = string.format(log.template, table.unpack(log)) local error = log.error local trace: string? = log.trace if error then trace = error.trace ...
279
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/init.luau
luau
.luau
local allowWebLinks = require("@self/allow-web-links") local create = require("@self/create") local formatLog = require("@self/format-log") local parseError = require("@self/parse-error") local standardErrorInfoUrl = require("@self/standard-error-info-url") local types = require("@self/types") export type Logger<Templ...
132
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/parse-error.luau
luau
.luau
local types = require("./types") local function parseError(err: string): types.Error return { type = "Error", raw = err, message = err:gsub("^.+:%d+:%s*", ""), trace = debug.traceback(nil, 2), } end return parseError
66
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "logger", description = "Logging for Prvd 'M Wrong", dependencies = configure.dependencies({ runtime = true, }), types = { ["Logger<Templates>"] = true, Log = true, Error = true, }, })
73
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/standard-error-info-url.luau
luau
.luau
local function standardErrorInfoUrl(label: string): string return `https://prvdmwrong.luau.page/api-reference/{label}/errors` end return standardErrorInfoUrl
38
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/logger/types.luau
luau
.luau
export type Error = { type: "Error", raw: string, message: string, trace: string, } export type Log = { template: string, error: Error?, trace: string?, [number]: unknown, } export type Logger<Templates> = Templates & { type: "Logger", print: (self: Logger<Templates>, props: Log) -> (), warn: (self: Logger...
129
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/create.luau
luau
.luau
local nameOf = require("./name-of") local providerClasses = require("./provider-classes") local types = require("./types") local function createProvider<Self>(self: Self): types.Provider<Self> local provider: types.Provider<Self> = self :: any if provider.__index == nil then provider.__index = provider end if ...
169
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/init.luau
luau
.luau
local create = require("@self/create") local nameOf = require("@self/name-of") local providerClasses = require("@self/provider-classes") local types = require("@self/types") export type Provider<Self, Dependencies = nil> = types.Provider<Self, Dependencies> local providers = table.freeze({ create = create, nameOf =...
89
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/name-of.luau
luau
.luau
local types = require("./types") local function nameOf(provider: types.Provider<any, any>) return provider.name or "Provider" end return nameOf
32
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/provider-classes.luau
luau
.luau
local types = require("./types") type Set<T> = { [T]: true } local providerClasses: Set<types.Provider<any>> = setmetatable({}, { __mode = "k" }) :: any return providerClasses
47
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "providers", description = "Provider creation for Prvd 'M Wrong", types = { ["Provider<Self, Dependencies = nil>"] = "Provider<Self, Dependencies>", }, dependencies = configure.dependencies({ dependencies = true, logger = t...
89
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/providers/types.luau
luau
.luau
local dependencies = require("../dependencies") export type Provider<Self, Dependencies = nil> = dependencies.Dependency<Self & { __index: Provider<Self, Dependencies>, __tostring: (self: Provider<Self, Dependencies>) -> string, name: string?, constructor: ((self: Provider<Self, Dependencies>, dependencies: Depend...
101
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/prvdmwrong/init.luau
luau
.luau
local dependencies = require("./dependencies") local lifecycles = require("./lifecycles") local providers = require("./providers") local roots = require("./roots") export type Provider<Self, Dependencies = nil> = providers.Provider<Self, Dependencies> export type Lifecycle<Args... = ...unknown> = lifecycles.Lifecycle<...
372
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/prvdmwrong/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "prvdmwrong", description = "Entry point to Prvd 'M Wrong", types = { ["Lifecycle<Args... = ...unknown>"] = "Lifecycle<Args...>", ["Provider<Self, Dependencies = nil>"] = "Provider<Self, Dependencies>", Root = true, StartedR...
125
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/component-classes.luau
luau
.luau
local types = require("./types") type Set<T> = { [T]: true } local componentClasses: Set<types.Component<any>> = setmetatable({}, { __mode = "k" }) :: any return componentClasses
47
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/component-provider.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") local componentClasses = require("./component-classes") local logger = require("./logger") local providers = require("../providers") local runtime = require("../runtime") local types = require("./types") local threadpool = runtime.threadpool type Set<T> ...
1,255
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/create.luau
luau
.luau
local componentClasses = require("./component-classes") local types = require("./types") -- TODO: prvdmwrong/classes package? local function create<Self>(self: Self): types.Component<Self, any> local component: types.Component<Self> = self :: any if component.__index == nil then component.__index = component end...
155
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/create-component-class-provider.luau
luau
.luau
local ComponentProvider = require("../component-provider") local providers = require("../../providers") local types = require("../types") local ComponentClassProvider = {} ComponentClassProvider.priority = -math.huge ComponentClassProvider.name = "@rbx-components.ComponentClassProvider" ComponentClassProvider.dependen...
178
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/init.luau
luau
.luau
local ComponentProvider = require("./component-provider") local createComponentClassProvider = require("@self/create-component-class-provider") local logger = require("./logger") local roots = require("../roots") local types = require("./types") local useComponent = require("@self/use-component") local useComponents = ...
225
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-component.luau
luau
.luau
local types = require("../types") local function useComponent(root: types.RootPrivate, component: types.AnyComponent) table.insert(root._classes, component) return root end return useComponent
40
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-components.luau
luau
.luau
local types = require("../types") local function useComponents(root: types.RootPrivate, components: { types.AnyComponent }) for index = 1, #components do table.insert(root._classes, components[index]) end return root end return useComponents
55
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-module-as-component.luau
luau
.luau
local componentClasses = require("../component-classes") local types = require("../types") local function useModuleAsComponent(root: types.RootPrivate, module: ModuleScript) local required = (require)(module) if componentClasses[required] then table.insert(root, required) end return root end return useModuleAsC...
70
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/extend-root/use-modules-as-components.luau
luau
.luau
local componentClasses = require("../component-classes") local types = require("../types") local function useModulesAsComponents( root: types.RootPrivate, modules: { Instance }, predicate: ((ModuleScript) -> boolean)? ) for index = 1, #modules do local module = modules[index] if not module:IsA("ModuleScript")...
139
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/init.luau
luau
.luau
local componentClasses = require("@self/component-classes") local create = require("@self/create") local extendRoot = require("@self/extend-root") local types = require("@self/types") export type Component<Self, Instance = Instance> = types.Component<Self, Instance> export type Root = types.Root local components = { ...
132
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/logger.luau
luau
.luau
local logger = require("../logger") return logger.create("@prvdmwrong/rbx-components", logger.standardErrorInfoUrl("rbx-components"), { alreadyExtendedRoot = "Root already has component extension.", invalidComponent = "Not a component, create one with `components(MyComponent)` or `components.create(MyComponent)`.", ...
123
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "rbx-components", description = "Component functionality for Prvd 'M Wrong", unreleased = true, dependencies = configure.dependencies({ logger = true, roots = true, providers = true, dependencies = true, }), })
71
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-components/types.luau
luau
.luau
local dependencies = require("../dependencies") local roots = require("../roots") export type Component<Self, Instance = Instance> = dependencies.Dependency<Self & { __index: Component<Self, Instance>, tag: string?, instanceCheck: (unknown) -> boolean, blacklistInstances: { Instance }?, whitelistInstances: { Inst...
266
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-lifecycles/init.luau
luau
.luau
local Players = game:GetService("Players") local RunService = game:GetService("RunService") local prvd = require("./prvdmwrong") local fireConcurrent = prvd.fireConcurrent local RbxLifecycles = {} RbxLifecycles.name = "@prvdmwrong/rbx-lifecycles" RbxLifecycles.priority = -math.huge RbxLifecycles.preSimulation = prv...
653
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/rbx-lifecycles/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "rbx-lifecycles", description = "Lifecycles implementations for Roblox", pesdeTargets = { roblox = true, }, dependencies = configure.dependencies({ prvdmwrong = true, }), })
69
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/create.luau
luau
.luau
local destroy = require("./methods/destroy") local lifecycles = require("../lifecycles") local rootConstructing = require("./hooks/root-constructing") local start = require("./methods/start") local types = require("./types") local useModule = require("./methods/use-module") local useModules = require("./methods/use-mod...
322
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/lifecycle-used.luau
luau
.luau
local lifecycles = require("../../lifecycles") local types = require("../types") local callbacks: { (root: types.Self, provider: lifecycles.Lifecycle) -> () } = {} local function onLifecycleUsed(listener: (root: types.Root, lifecycle: lifecycles.Lifecycle) -> ()): () -> () table.insert(callbacks, listener) return f...
115
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/provider-used.luau
luau
.luau
local providers = require("../../providers") local types = require("../types") local callbacks: { (root: types.Self, provider: providers.Provider<unknown>) -> () } = {} local function onProviderUsed(listener: (root: types.Root, provider: providers.Provider<unknown>) -> ()): () -> () table.insert(callbacks, listener)...
108
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/root-constructing.luau
luau
.luau
local types = require("../types") local callbacks: { (root: types.Self) -> () } = {} local function onRootConstructing(listener: (root: types.Root) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return table.freeze({ callbac...
90
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/root-destroyed.luau
luau
.luau
local types = require("../types") local callbacks: { (root: types.Self) -> () } = {} local function onRootDestroyed(listener: (root: types.Root) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return table.freeze({ callbacks ...
87
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/root-finished.luau
luau
.luau
local types = require("../types") local callbacks: { (root: types.Self) -> () } = {} local function onRootFinished(listener: (root: types.Root) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return table.freeze({ callbacks =...
87
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/root-started.luau
luau
.luau
local types = require("../types") local callbacks: { (root: types.Self) -> () } = {} local function onRootStarted(listener: (root: types.Root) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end end return table.freeze({ callbacks = ...
87
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/hooks/root-used.luau
luau
.luau
local types = require("../types") local callbacks: { (root: types.Self, subRoot: types.Root) -> () } = {} local function onRootUsed(listener: (root: types.Root, subRoot: types.Root) -> ()): () -> () table.insert(callbacks, listener) return function() table.remove(callbacks, table.find(callbacks, listener)) end e...
99
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/init.luau
luau
.luau
local create = require("@self/create") local lifecycleUsed = require("@self/hooks/lifecycle-used") local providerUsed = require("@self/hooks/provider-used") local rootConstructing = require("@self/hooks/root-constructing") local rootDestroyed = require("@self/hooks/root-destroyed") local rootFinished = require("@self/h...
220
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/logger.luau
luau
.luau
local logger = require("../logger") return logger.create("@prvdmwrong/roots", logger.standardErrorInfoUrl("roots"), { useAfterDestroy = "Cannot use Root after it is destroyed.", alreadyDestroyed = "Cannot destroy an already destroyed Root.", alreadyFinished = "Root has already finished.", })
63
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/destroy.luau
luau
.luau
local logger = require("../logger") local types = require("../types") local function destroy(root: types.Self) if root._destroyed then logger:fatalError({ template = logger.alreadyDestroyed }) end root._destroyed = true table.clear(root._rootLifecycles) table.clear(root._rootProviders) table.clear(root._subRoo...
94
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/start.luau
luau
.luau
local dependencies = require("../../dependencies") local lifecycles = require("../../lifecycles") local logger = require("../logger") local providers = require("../../providers") local rootFinished = require("../hooks/root-finished").callbacks local rootStarted = require("../hooks/root-started").callbacks local types =...
716
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-lifecycle.luau
luau
.luau
local lifecycleUsed = require("../hooks/lifecycle-used").callbacks local lifecycles = require("../../lifecycles") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useLifecycle(root: types.Self, lifecycle: lifecycles.Lifecycle) table.inser...
98
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-lifecycles.luau
luau
.luau
local lifecycleUsed = require("../hooks/lifecycle-used").callbacks local lifecycles = require("../../lifecycles") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useLifecycles(root: types.Self, lifecycles: { lifecycles.Lifecycle }) for _...
120
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-module.luau
luau
.luau
local providerUsed = require("../hooks/provider-used").callbacks local providers = require("../../providers") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local providerClasses = providers._.providerClasses local function useModule(root: types.Self, ...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-modules.luau
luau
.luau
local providerUsed = require("../hooks/provider-used").callbacks local providers = require("../../providers") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local providerClasses = providers._.providerClasses local function useModules(root: types.Self,...
193
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-provider.luau
luau
.luau
local providerUsed = require("../hooks/provider-used").callbacks local providers = require("../../providers") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useProvider(root: types.Self, provider: providers.Provider<unknown>) root._root...
88
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-providers.luau
luau
.luau
local providerUsed = require("../hooks/provider-used").callbacks local providers = require("../../providers") local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useProviders(root: types.Self, providers: { providers.Provider<unknown> }) for ...
101
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-root.luau
luau
.luau
local rootUsed = require("../hooks/root-used").callbacks local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useRoot(root: types.Self, subRoot: types.Root) root._subRoots[subRoot] = true threadpool.spawnCallbacks(rootUsed, root, subRoot) r...
82
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/use-roots.luau
luau
.luau
local rootUsed = require("../hooks/root-used").callbacks local runtime = require("../../runtime") local types = require("../types") local threadpool = runtime.threadpool local function useRoots(root: types.Self, subRoots: { types.Root }) for _, subRoot in subRoots do root._subRoots[subRoot] = true threadpool.spa...
100
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/will-finish.luau
luau
.luau
local types = require("../types") local function willFinish(root: types.Self, callback: () -> ()) root._finish:register(callback) return root end return willFinish
38
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/methods/will-start.luau
luau
.luau
local types = require("../types") local function willStart(root: types.Self, callback: () -> ()) root._start:register(callback) return root end return willStart
38
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "roots", description = "Roots implementation for Prvd 'M Wrong", types = { Root = true, StartedRoot = true, }, dependencies = configure.dependencies({ dependencies = true, logger = true, lifecycles = true, runtime = t...
91
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/roots/types.luau
luau
.luau
local lifecycles = require("../lifecycles") local providers = require("../providers") type Set<T> = { [T]: true } export type Root = { type: "Root", start: (root: Root) -> StartedRoot, useModule: (root: Root, module: ModuleScript) -> Root, useModules: (root: Root, modules: { Instance }, predicate: ((ModuleScrip...
342
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/batteries/threadpool.luau
luau
.luau
local task = require("../libs/task") local freeThreads: { thread } = {} local function run<T...>(f: (T...) -> (), thread: thread, ...) f(...) table.insert(freeThreads, thread) end local function yielder() while true do run(coroutine.yield()) end end local function spawn<T...>(f: (T...) -> (), ...: T...) loca...
201
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/init.luau
luau
.luau
local types = require("@self/../types") type Implementation<T> = { new: (() -> T)?, implementation: T? } export type RuntimeName = "roblox" | "luau" | "lune" | "lute" | "seal" | "zune" local supportedRuntimes = table.freeze({ roblox = require("@self/roblox"), luau = require("@self/luau"), lune = require("@self/lu...
395
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/luau.luau
luau
.luau
local types = require("../types") return types.Runtime({ name = "luau", priority = -1, is = function() return true end, })
34
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/lune.luau
luau
.luau
local types = require("../types") local LUNE_VERSION_FORMAT = "(Lune) (%d+%.%d+%.%d+.*)+(%d+)" return types.Runtime({ name = "lune", is = function() return string.match(_VERSION, LUNE_VERSION_FORMAT) ~= nil end, })
66
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/lute.luau
luau
.luau
local types = require("../types") return types.Runtime({ name = "lute", is = function() return false end, })
28
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/roblox.luau
luau
.luau
local types = require("../types") return types.Runtime({ name = "roblox", is = function() -- wtf return not not (_VERSION == "Luau" and game and workspace) end, })
46
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/seal.luau
luau
.luau
local types = require("../types") return types.Runtime({ name = "seal", is = function() return false end, })
28
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/implementations/zune.luau
luau
.luau
local types = require("../types") local ZUNE_VERSION_FORMAT = "(Zune) (%d+%.%d+%.%d+.*)+(%d+%.%d+)" return types.Runtime({ name = "zune", is = function() return string.match(_VERSION, ZUNE_VERSION_FORMAT) ~= nil end, })
70
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/init.luau
luau
.luau
local implementations = require("@self/implementations") local task = require("@self/libs/task") local threadpool = require("@self/batteries/threadpool") local warn = require("@self/libs/warn") export type RuntimeName = implementations.RuntimeName return table.freeze({ name = implementations.currentRuntimeName, ta...
78
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/libs/task.luau
luau
.luau
local implementations = require("../implementations") export type TaskLib = { cancel: (thread) -> (), defer: <T...>(functionOrThread: thread | (T...) -> (), T...) -> thread, delay: <T...>(duration: number, functionOrThread: thread | (T...) -> (), T...) -> thread, spawn: <T...>(functionOrThread: thread | (T...) -> ...
1,053
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/libs/warn.luau
luau
.luau
local implementations = require("../implementations") local supportedRuntimes = implementations.supportedRuntimes local implementFunction = implementations.implementFunction local function tostringTuple(...: any) local stringified = {} for index = 1, select("#", ...) do table.insert(stringified, tostring(select(i...
177
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "runtime", description = "Runtime agnostic libraries for Prvd 'M Wrong", types = { RuntimeName = true, }, })
46
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/runtime/types.luau
luau
.luau
export type Runtime = { name: string, priority: number?, is: () -> boolean, } local function Runtime(x: Runtime) return table.freeze(x) end return table.freeze({ Runtime = Runtime, })
44
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/packages/typecheckers/prvd.config.luau
luau
.luau
local configure = require("@lune-lib/configure") return configure.package({ name = "typecheckers", description = "Typechecking primitives and compatibility for Prvd 'M Wrong", })
38
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/build.luau
luau
.luau
local fs = require("@lune/fs") local h = require("./h") local path = require("@lune-lib/utils/path") local process = require("@lune/process") local siteUrls = require("@sitegen/config/site-urls") local sitemap = require("@sitegen/config/sitemap") local rootPath = process.args[1] pcall(fs.removeDir, "site") fs.copy(pa...
196
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/components/article.luau
luau
.luau
local Document = require("./document") local h = require("@sitegen/h") local siteBaseUrl = require("@sitegen/utils/site-base-url") export type ArticleSection = { title: string, content: { h.Child }, sections: { ArticleSection }?, } local headings = { h.h1, h.h2, h.h3, h.h4, h.h5, h.h6, } local defaultHeadin...
335
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/components/button.luau
luau
.luau
local h = require("@sitegen/h") local function Button(props: { href: string, [number]: h.Child, }) return h.a({ href = props.href, class = "button", table.unpack(props), }) end return Button
56
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/components/code-snippet.luau
luau
.luau
local h = require("@sitegen/h") local function CodeSnippet(props: { language: "lua" | "shell" | "typescript", [number]: h.Child, }) return h.pre({ class = `code-snippet`, h.code({ class = `language-{props.language}`, table.unpack(props), }), }) end return CodeSnippet
80
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/components/document.luau
luau
.luau
local Navbar = require("@sitegen/components/navbar") local h = require("@sitegen/h") local siteBaseUrl = require("@sitegen/utils/site-base-url") local function Document(props: { title: string?, main: h.Child, header: h.Child?, extraHead: h.Child?, }) return { "<!DOCTYPE html>", h.html({ lang = "en", h.h...
424
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/components/navbar.luau
luau
.luau
local forEach = require("@sitegen/utils/for-each") local h = require("@sitegen/h") local navPages = require("@sitegen/config/nav-pages") local siteBaseUrl = require("@sitegen/utils/site-base-url") local function Navbar() return h.nav({ class = "navbar", h.div({ class = "navbar-inner", h.a({ href = sit...
145
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/config/common-urls.luau
luau
.luau
return { rossThread = "https://discord.com/channels/385151591524597761/1267055070374268969", }
30
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/config/nav-pages.luau
luau
.luau
local siteBaseUrl = require("@sitegen/utils/site-base-url") export type NavPage = { id: string, href: string, title: string, } return { { id = "learn", href = siteBaseUrl("learn"), title = "Learn", }, { id = "api", href = siteBaseUrl("api"), title = "API", }, { id = "releases", href = siteBase...
144
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/config/site-urls.luau
luau
.luau
local path = require("@lune-lib/utils/path") local process = require("@lune/process") return { base = if process.env.IS_CI then "https://prvdmwrong.luau.page/" else path(process.cwd, "site"), }
50
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/config/sitemap.luau
luau
.luau
local h = require("@sitegen/h") export type SitemapEntry<Props = nil> = { path: string, render: (Props) -> h.Child, props: Props, } local sitemap: { SitemapEntry<any> } = { { path = "", render = require("@sitegen/pages/index") }, { path = "learn", render = require("@sitegen/pages/learn/index") }, { path = "lear...
112
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/h.luau
luau
.luau
export type Child = string | { Child } local function flatten(child: Child): string if typeof(child) == "string" then return child else local flat = "" for _, sub_child in child do flat ..= flatten(sub_child) end return flat end end local function escape(attribute: string): string attribute = string....
840
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/pages/learn/index.luau
luau
.luau
local Article = require("@sitegen/components/article") local commonUrls = require("@sitegen/config/common-urls") local h = require("@sitegen/h") return function() return Article({ title = "Learn Prvd 'M Wrong", content = { h.p("Congratulations on choosing Prvd 'M Wrong, you’re finally making good decisions!"),...
547
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/pages/learn/installation.luau
luau
.luau
local Article = require("@sitegen/components/article") local commonUrls = require("@sitegen/config/common-urls") local h = require("@sitegen/h") return function() return Article({ title = "Installation", content = { h.p("Prvd 'M Wrong is distributed as several packages that needs to be installed into \ ...
168
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/utils/for-each.luau
luau
.luau
local function forEach<KI, KO, VI, VO>(input: { [KI]: VI }, func: (KI, VI) -> (KO, VO)): { [KO]: VO } local output = {} for keyIn, valueIn in input do local keyOut, valueOut = func(keyIn, valueIn) if keyOut == nil or valueOut == nil then continue end assert(output[keyOut] == nil, "Key collision") output[...
119
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/sitegen/utils/site-base-url.luau
luau
.luau
local siteUrls = require("@sitegen/config/site-urls") local function siteBaseUrl(suffix: string) return siteUrls.base .. "/" .. suffix end return siteBaseUrl
36
welcomestohell/prvdmwrong
welcomestohell-prvdmwrong-a935ae2/types/g.d.luau
luau
.luau
declare _G: { PRVDMWRONG_SUPPRESS_MULTIPLE_SAME_TAG: unknown, PRVDMWRONG_DISALLOW_MULTIPLE_LISTENERS: unknown, PRVDMWRONG_PROFILE_LIFECYCLES: unknown }
53
Dawgra/Facial-Unification
Dawgra-Facial-Unification-fced51a/Content/Attribution.luau
luau
.luau
local DEV = false local VERSION = "v1.5b" local RunService = game:GetService("RunService") local Players = game:GetService("Players") local MarketplaceService = game:GetService("MarketplaceService") --- Version comparison method inspired by @ForeverHD's TopbarPlus! --- @return boolean -- True if module is up ...
296
Dawgra/Facial-Unification
Dawgra-Facial-Unification-fced51a/Content/HeadShapes.luau
luau
.luau
--!strict local data : {[string] : number} = { -- SHAPES (03/25/2026), thanks @Xekran_n! RobloxClassic = 2432102561; Blockhead = 6340101; Roundy = 6340213; Trim = 6340227; Octoblox = 6340133; Hex = 6340141; RoxBox = 6340154; EraserHead = 6340161; Barrel = 6340170; CylinderMadness = 6340192; Roll = 6340198;...
399
Dawgra/Facial-Unification
Dawgra-Facial-Unification-fced51a/Content/ToHat.luau
luau
.luau
return { -- HATS (01/28/2026) [90615525568323] = {Name = "The Jade Catseye"; OriginalHat = 1193866; Texture = 105254644661016}; }
51
LDGerrits/QuickZone
LDGerrits-QuickZone-6d93459/examples/Client/Observers/AntiGravity.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local RunService = game:GetService('RunService') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedGroups = require(ReplicatedStorage.Common.Groups) local SharedZones = require(ReplicatedStorage.Common.Zones) local localPlayer = game:GetS...
278
LDGerrits/QuickZone
LDGerrits-QuickZone-6d93459/examples/Client/Observers/CameraEffects.luau
luau
.luau
local ReplicatedStorage = game:GetService('ReplicatedStorage') local Lighting = game:GetService('Lighting') local QuickZone = require(ReplicatedStorage.QuickZone) local SharedZones = require(ReplicatedStorage.Common.Zones) local DEFAULTS = { Brightness = Lighting.Brightness, Ambient = Lighting.Ambient, FogEnd = Li...
420