NebulaJ 1.0.0

dotnet add package NebulaJ --version 1.0.0
                    
NuGet\Install-Package NebulaJ -Version 1.0.0
                    
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="NebulaJ" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NebulaJ" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="NebulaJ" />
                    
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 NebulaJ --version 1.0.0
                    
#r "nuget: NebulaJ, 1.0.0"
                    
#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 NebulaJ@1.0.0
                    
#: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=NebulaJ&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=NebulaJ&version=1.0.0
                    
Install as a Cake Tool

NebulaJ / NebulaStorage

NebulaStorage is a lightweight JSON storage library for .NET that allows you to store structured data in a simple and flexible way. It supports automatic increment of test counts, metadata, and integration with system information (hardware, IP, OS).


Features

  • Store structured data like a mini SQL in JSON.
  • Auto-increment a TestsCount field.
  • Easily add metadata, arrays, objects, and custom fields.
  • Integrates with system information:
    • Hardware (RAM, Storage)
    • IP Address
    • Operating System (OS) info
  • Save JSON files locally or to a custom directory.++

Installation

Install the package via NuGet:

dotnet add package NebulaJ

Or include the NebulaStorage.cs file in your project manually.


Usage Example

using System;
using NebulaJ.JSON;

class Program
{
    static void Main()
    {
        // Create a new NebulaStorage instance
        // "Local" means the JSON will be saved in the same folder as Program.cs
        // "Nebula System Report" is the title of the JSON
        new NebulaStorage(ls =>
        {
            // Enable automatic increment for TestsCount
            ls.SetAutoIncrement(true)
              // Add package name
              .Package("NebulaJ")
              // Add version number
              .Version("2.0.0")
              // Add author name
              .Author("You")
              // Include hardware info (RAM and Storage)
              .IncludeHardwareInfo()
              // Include IP address info
              .IncludeIPInfo()
              // Include operating system info
              .IncludeOSInfo()
              // Add a description for this record
              .Description("Next-gen data + system integration JSON library")
              // Add tags for categorization
              .Tags("json", "nebula", "system");
        }, "Local", "Nebula System Report");
    }
}

JSON Output Example

After running the above code, NebulaLocalStorage.json will be generated in the same folder:

{
  "Title": "Nebula System Report",
  "Meta": {
    "AutoIncrementTests": true
  },
  "Records": [
    {
      "TestsCount": 1,
      "Title": "Nebula System Report",
      "Package": "NebulaJ",
      "Version": "2.0.0",
      "Author": "XYZ",
      "Hardware": {
        "RAM": "16384 MB",
        "Storage": "C:\ - Free: 102400 MB"
      },
      "IPInfo": {
        "Address": "192.168.0.10"
      },
      "OSInfo": {
        "System": "Microsoft Windows NT 10.0.22631.0",
        "Architecture": "x64",
        "AppDataPath": "C:\Users\XYZ\AppData\Roaming",
        "Desktop": "C:\Users\XYZ\Desktop"
      },
      "Description": "Next-gen data + system integration JSON library",
      "Tags": ["json", "nebula", "system"]
    }
  ]
}

Methods Overview

  • SetAutoIncrement(bool) → Automatically increments TestsCount.
  • Package(string), Version(string), Author(string), Description(string) → Add basic fields.
  • IncludeHardwareInfo(), IncludeIPInfo(), IncludeOSInfo() → Automatically include system info.
  • Tags(params string[]) → Add tags.
  • Meta(string, object) → Add custom metadata.
  • Add(string, object), AddArray(string, params object[]), AddObject(string, Dictionary<string, object>) → Add custom fields or objects.
  • GetAll() → Returns all records.
  • Last() → Returns the last record.

This library allows seamless integration of system information directly into structured JSON files for your .NET applications. It is ideal for logging, configuration, or system diagnostics.

Suports .NET 9.0 > .NET 7.0

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 216 10/31/2025