SpecWorks.Sidemark
1.0.0
dotnet add package SpecWorks.Sidemark --version 1.0.0
NuGet\Install-Package SpecWorks.Sidemark -Version 1.0.0
<PackageReference Include="SpecWorks.Sidemark" Version="1.0.0" />
<PackageVersion Include="SpecWorks.Sidemark" Version="1.0.0" />
<PackageReference Include="SpecWorks.Sidemark" />
paket add SpecWorks.Sidemark --version 1.0.0
#r "nuget: SpecWorks.Sidemark, 1.0.0"
#:package SpecWorks.Sidemark@1.0.0
#addin nuget:?package=SpecWorks.Sidemark&version=1.0.0
#tool nuget:?package=SpecWorks.Sidemark&version=1.0.0
Sidemark (.NET)
A .NET library for parsing, validating, and serializing Markdown Review Sidecar Format (MRSF) files according to the Sidemark v1.0 specification.
Features
- Model — Strongly-typed
MrsfDocumentandMrsfCommentclasses covering all required and optional fields - Parser — Read
.review.yamland.review.jsonsidecar files into the model, with auto-format detection - Serializer — Write model instances back to YAML or JSON, omitting null optional fields
- Validator — Full validation against MRSF v1.0 rules: required fields, cross-field constraints,
reply_toresolution,selected_text_hashintegrity - Discovery — Sidecar file discovery via co-location or
.mrsf.yamlsidecar_rootconfiguration (§3)
Quick Start
using Sidemark;
// Parse a sidecar file (auto-detects YAML vs JSON)
var doc = MrsfParser.ParseFile("docs/architecture.md.review.yaml");
// Validate
var result = MrsfValidator.Validate(doc);
if (!result.IsValid)
foreach (var error in result.Errors)
Console.WriteLine(error.Message);
// Discover sidecar for a Markdown file
var sidecarPath = MrsfDiscovery.DiscoverSidecar("docs/architecture.md", workspaceRoot: ".");
// Create and serialize
var newDoc = new MrsfDocument
{
MrsfVersion = "1.0",
Document = "docs/readme.md",
Comments = new()
{
new MrsfComment
{
Id = Guid.NewGuid().ToString("N")[..8],
Author = "Jane Doe (janedoe)",
Timestamp = DateTimeOffset.UtcNow.ToString("o"),
Text = "This section needs work.",
Resolved = false,
Line = 12,
SelectedText = "The gateway component"
}
}
};
MrsfSerializer.WriteFile(newDoc, "docs/readme.md.review.yaml");
Building
dotnet build
dotnet test
Specification
See the full MRSF v1.0 specification and JSON Schema.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net8.0
- System.Text.Json (>= 9.0.0)
- YamlDotNet (>= 16.3.0)
-
net9.0
- System.Text.Json (>= 9.0.0)
- YamlDotNet (>= 16.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on SpecWorks.Sidemark:
| Package | Downloads |
|---|---|
|
SpecWorks.MarkMyWord
A .NET library for converting CommonMark markdown to Microsoft Word (.docx) documents with syntax highlighting and Mermaid diagrams. Supports headings, paragraphs, emphasis, code blocks with syntax highlighting (JSON, TypeSpec, Bash), Mermaid diagram rendering, links, images, lists, tables, and more. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 213 | 3/14/2026 |