Category: pet projects

  • MSvg: SVG Icons for .NET and Blazor

    MultipleSVG is a .NET project for developers who want ready-to-use SVG icons without manually copying files into their apps. The main NuGet package is MSvg.All. See  the icons at https://ignatandrei.github.io/MultipleSVG/icons It exposes icons as strongly typed SvgIconGenerator.IconDto values in the MSvg.All namespace. The package is useful in console apps, ASP.NET Core projects, tools, and any…

  • Package Analyzer and Git Summary

    Copied after https://piechowski.io/post/git-commands-before-reading-code/ Churn hotspots – files with most commits .This is the dotnet/eShop: A reference .NET application implementing an eCommerce site analysis. The program can show you Churn hotspots – files with most commits Bus factor – contributors with most commits The program can show you Bus factor – contributors with most commits Commit…

  • Blazor Browser History–part 03–implementation

    01 Introduction Because I said that I have 2 implementations for same sqlite database (SqliteWasmBlazor and BitBeSql), there will be interfaces . The first one is to save data and retrieve data – a CRUD 02 Interface IBrowserUserHistoryRepositoryDatabase Description: Base interface defining database operations for browser history. This is the core abstraction for data persistence.…

  • Package analyzer and project references upstream and downstream

    A project can have other projects as reference – or he can be a referee from another project. Initially , this was the image – to see every relation as a matrix But , I have had a better thought : I can count the upstream and the downstream references – and so I have…

  • Package Analyzer and show major versions differ

    One of problems in software with packages is when you have 2 projects that reference the same package – but with 2 versions that differ. But it is often very difficult to understand the path that comes to this . PackageAnalyzer identifies this and generate an image  for each package, showing the path : You…

  • MCP Tool vs Swagger–part 3–creation and usage

    Now the idea is to generate from each MCP tool a swagger function. First, we should let the user to choose what MCP to convert to Swagger. This can be done with an Attribute, MCP2OpenAPI.AddMCP2OpenApi Then the problem is what to generate – I decide to generate POST api in an url /api/mcp/{class}/{function} And a…

  • JavaScriptExtensionsAspire–part 2–execution

    Now about the execution of https://www.nuget.org/packages/JavaScriptExtensionsAspire Finding and parsing the package json is pretty easy – this is the code More interessant is to find the name of npm executable Also I want to add the environment variables from the original javascript app Otherwise, pretty obvious stuff of starting the npm process info . NuGet…

  • JavaScriptExtensionsAspire–part 1

    TL;DR: Add package.json commands to ASPIRE Simplifying JavaScript Workflows in .NET with JavaScriptExtensionsAspire As a developer working with .NET and JavaScript, I often find myself juggling between managing JavaScript resources and integrating package.json commands into my applications. It can be tedious and time-consuming. That’s why I’m excited to share my experience with JavaScriptExtensionsAspire, a .NET…

  • Aspire Resource for Aspire–part 4–programatic access

    Aspire 13 has a MCP server integrated https://aspire.dev/dashboard/mcp-server/ . But what about an OPENAPI / swagger ? Also and a graph to show the  resources – https://aspire.dev/dashboard/explore/#resources-page , see graph image. But how about Mermaid syntax display of resources ? So I implemented in https://www.nuget.org/packages/AspireExtensionsResource , version >= 13 . This is how it looks…

  • DocumentorDatabaseExtensionsAspire–part 3–usage

    The usage is pretty simple : add  the package https://www.nuget.org/Packages/DocumentorDatabaseExtensionsAspire to the Aspire host project.  Add an SqlServer database and write //accepts also relative paths var res = db.AddDocumentationOnFolder(@”D:\documentation”); That will be all ! And here it the Aspire Dashboard with documentation for Pubs database And the diagram Here you will find a video about…