SecretAPI 3.5.0-beta1

This is a prerelease version of SecretAPI.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package SecretAPI --version 3.5.0-beta1
                    
NuGet\Install-Package SecretAPI -Version 3.5.0-beta1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SecretAPI" Version="3.5.0-beta1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SecretAPI" Version="3.5.0-beta1" />
                    
Directory.Packages.props
<PackageReference Include="SecretAPI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SecretAPI --version 3.5.0-beta1
                    
#r "nuget: SecretAPI, 3.5.0-beta1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SecretAPI@3.5.0-beta1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SecretAPI&version=3.5.0-beta1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SecretAPI&version=3.5.0-beta1&prerelease
                    
Install as a Cake Tool

SecretAPI Downloads

  • SecretAPI is a plugin that extends LabAPI by providing extra features to help devs.

Dependencies

  • SecretAPI relies on Harmony to implement features
    • You can find the latest version here
    • You should download Harmony-Fat and put the 0harmony.dll (found in /net48) into your dependencies folder!

Features

  • CustomPlayerEffect: Create custom status effects using the base-game system.
    • BlastResistance: Grants 0.5% resistance to explosion damage
    • Depleted: Disables stamina and its regen
    • Energized: Disables stamina usage
  • IRegister: Handle auto registering certain plugin features inheriting this interface and then running IRegister.RegisterAll(Assembly) in your plugin's initialize method.
  • CallOnLoadAttribute: Allows calling static initialize methods on enable via CallOnLoadAttribute.Load(Assembly)
  • CustomSetting: Server Specific Settings without the management hassle, control everything for 1 setting in 1 class, including permissions. A better setting system overall.
  • PrefabStore and PrefabManager: Designed to help access prefabs in a clean way
  • Extensions:
    • CodeMatcherExtensions: Extensions related to HarmonyLib.CodeMatcher.
    • CollectionExtensions: Extensions to provide utility for collections like lists and arrays.
    • MirrorExtensions: Extensions providing help with fake-syncing SyncVar, SyncList and Rpc
    • ReflectionExtensions: Extensions related to C# Reflection
    • RoomExtensions: Extensions to help with room specific tasks, like checking if a room is safe to teleport to.

Examples

You can find examples inside the SecretAPI.Examples folder above, this contains some example settings, patches using categories and some more.

Source Generation

  • SecretAPI includes a SourceGenerator via the Nuget package SecretAPI.SourceGenerators
    • This will generate SecretApiGenerated.cs which can be used with CallOn(Un)LoadAttribute

Support

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SecretAPI:

Package Downloads
Omega3065.ComponentBasedCustomRoleAPI

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.5.0-beta2 62 10/14/2026
3.5.0-beta1 59 10/14/2026
3.5.0-beta.3 83 10/20/2026
3.4.1 64 11/14/2026
3.4.0 312 9/15/2026
3.3.0 95 9/5/2026
3.2.2 115 8/29/2026
3.2.1 101 8/29/2026
3.2.0 735 5/6/2026
3.1.2 93 4/29/2026
3.1.1 107 4/27/2026
3.1.0 98 4/19/2026
3.0.0 94 4/10/2026
3.0.0-beta4 93 4/10/2026
3.0.0-beta3 89 4/8/2026
3.0.0-beta2 94 4/2/2026
3.0.0-beta1 89 3/30/2026
2.0.3 468 12/18/2025
2.0.2 226 10/25/2025
2.0.1 185 9/26/2025
Loading failed