Thread-safe .NET collections with built-in, monotonic timestamps and a unified API for fast range queries, pruning, and temporal analytics.
UmbracoDictionaryDeliveryAP is a package for Umbraco CMS that provides way to fetch dictionary items directly from the Content Delivery Api.
DataExportPackage is a .NET library designed to simplify the process of exporting data to various file formats. With DataExportPackage, developers can effortlessly convert their data into formats such as JSON, Word, XML, Excel, CSV, and PDF. Key Features: Versatile Data Export: DataExportPackage allows users to export structured data stored in dictionaries to a variety of commonly used file formats. Simple Integration: Integration with existing .NET projects is seamless. Developers can quickly incorporate DataExportPackage into their applications to enable data export functionality. Multiple Export Formats: DataExportPackage supports exporting data to JSON, Word (DOCX), XML, Excel (XLSX), CSV, and PDF formats, providing flexibility for different use cases and requirements. Ease of Use: The library offers intuitive APIs for exporting data, making it easy for developers to generate files in their preferred formats with minimal effort. Customization Options: Users have the flexibility to customize export settings and formatting according to their specific needs, ensuring that exported files meet their desired specifications. Getting Started: To begin using DataExportPackage in your .NET projects: Install the package via NuGet Package Manager: Install-Package DataExportPackage Follow the usage examples and documentation provided to seamlessly integrate DataExportPackage into your applications. Enjoy the convenience of exporting data to various file formats effortlessly, enhancing the versatility and usability of your applications. DataExportPackage simplifies the data export process, empowering .NET developers to efficiently handle data conversion tasks and streamline their workflow.
A high-performance Razor Class Library for Umbraco 17 (.NET 10) that displays Instagram feeds using the official Instagram Graph API (v21.0). Features automatic dictionary item creation (Instagram.AccessToken,Instagram.UserId, and Instagram.Limit), an embedded responsive Razor partial view with standalone CSS (no Bootstrap dependency), configurable post limits, strongly typed models, dependency injection, and zero-configuration installation for Umbraco websites.
About JsonFucker I’m a student from Taiwan, and to be honest, my English isn't great, so I’m using AI to help introduce JsonFucker. I created this package out of sheer frustration with standard solutions like JsonSerializer and raw JsonElement handling—they just felt clunky and inconvenient for my workflow. Core Features & Design: Simplified Parsing Logic: Under the hood, it maps JSON directly into a Dictionary<string, JsonElement>. Without getting too bogged down in low-level details, this approach drastically speeds up JSON parsing and makes property extraction far more intuitive. Streamlined API Integration: I combined JSON serialization directly with HttpClient, allowing developers to attach JSON payloads to API HTTP requests seamlessly with minimal boilerplate.
Lightweight, high-performance, self-drawn syntax-highlighting editor control for Windows Forms on .NET 8, with zero third-party dependencies. Highlights - Virtualized rendering: only visible lines are painted, so large files scroll and zoom smoothly. - Per-line lexical cache: only edited lines are re-tokenized; untouched lines keep their cached tokens. - Built-in hand-written C# scanner (single pass, O(n) per line, no regex backtracking); ships with a regex-based RegexLanguage base class so you can add SQL / Python / JSON / INI highlighting in a few lines. - Double-buffered GDI / GDI+ mixed drawing, flicker-free. Editing power out of the box - Line-number gutter, caret blinking, mouse / shift selection, double-click word selection, Ctrl+A/C/X/V. - Auto-indent (Enter inherits the previous line's indentation). - Undo / redo (Ctrl+Z / Ctrl+Y) with an invert-stack; consecutive typing and backspacing are merged into a single step. - Code folding: brace blocks and #region / #endregion, [+] / [−] markers in the fold gutter, Ctrl+M to toggle; CollapseAllFolds / ExpandAllFolds APIs. - Find panel (Ctrl+F): all matches highlighted, current match emphasized, F3 to jump to the next; highlights disappear automatically when the panel closes. - Right-click context menu: undo / cut / copy / paste / select all / find / go to definition / go to implementation. - Go to definition (F12) and go to implementation (Ctrl+F12) via whole-word heuristic matching. Smart editing - IME (Chinese input method) candidate window follows the caret; auto-completion is suspended while composing. - Ctrl + mouse wheel zooms font size between 6 and 48 pt. - Full-width CJK characters are aligned column-by-column so the caret and selection sit exactly on the glyphs. - Drag-to-select auto-scrolls when the cursor reaches the viewport edge. Code completion - Three-tier matching: prefix > camel-case abbreviation (e.g. gb → GaussianBlur) > substring. - Popup appears as soon as you type a letter or underscore; Enter / Tab accepts, Up/Down moves, PgUp/PgDn pages, Esc closes. - Accepted text is pushed onto the undo stack (one Ctrl+Z reverts the whole insertion). - Completion dictionary can be built by hand (AddCompletionWords) or by reflection over assemblies and types (types, enum members, public static / instance methods). One-call LoadCSharpCompletionDefaults wires up the common case. - Set AutoCompleteEnabled = false to turn the whole feature off. Two built-in themes ship out of the box (Visual Studio Dark / Light), and every color field on EditorTheme is public and editable. Typical usage: using SyntaxEditor; var editor = new SyntaxTextBox { Dock = DockStyle.Fill, Language = new CSharpLanguage(), Theme = EditorTheme.VisualStudioDark // or EditorTheme.Light / custom }; editor.Text = File.ReadAllText("Program.cs"); Controls.Add(editor); Target: net8.0-windows with WinForms enabled. No external packages required.
The paginate_items function is designed to handle pagination for a given dataset. It takes three input parameters: data (list or array): The dataset to be paginated. page_number (integer): The current page number you want to retrieve. page_size (integer): The number of items to display per page. The function calculates the necessary pagination information based on the input parameters and returns a dictionary containing the following key-value pairs: "Items": A list of items for the specified page. "PageNumber": The current page number. "TotalPages": The total number of pages required to display all the data with the given page size. "TotalCount": The total count of items in the dataset. "HasPreviousPage": A boolean indicating whether there is a previous page before the current page. "HasNextPage": A boolean indicating whether there is a next page after the current page. This function helps you efficiently manage and retrieve paginated data, making it useful for implementing pagination in web applications or APIs when dealing with large datasets.
BamirnoMimeMapper is a lightweight and extensible MIME type validation library for .NET 8. It provides a secure mapping between file extensions and their expected MIME types, and integrates seamlessly with Mime-Detective to verify actual file content. 🔒 Key Features: Full dictionary of trusted file extensions and MIME types Accurate MIME detection using file byte signatures Extension-to-MIME and MIME-to-extension conversion IsTrustedFile() method to validate file authenticity Designed for security-sensitive applications like file upload APIs 🛠️ Use Cases: Prevent spoofed or malicious file uploads Validate user-submitted files against expected types Build secure file handling pipelines Compatible with .NET 8 and tested with Mime-Detective v25.8.1. Ideal for developers who need robust MIME validation without relying on browser or OS-level detection. ------------------------------- BamirnoMimeMapper یک کتابخانه سبک و قابل توسعه برای اعتبارسنجی نوع MIME فایلها در .NET 8 است. این کتابخانه نگاشت امنی بین پسوند فایلها و نوع MIME مورد انتظارشان فراهم میکند و با لایبرری Mime-Detective برای بررسی محتوای واقعی فایل یکپارچه شده است. 🔒 ویژگیهای کلیدی: دیکشنری کامل از پسوندهای معتبر و نوع MIME متناظر تشخیص دقیق نوع MIME با استفاده از امضای بایت فایل تبدیل پسوند به MIME و بالعکس متد IsTrustedFile() برای بررسی اعتبار فایل مناسب برای اپلیکیشنهای حساس به امنیت مانند APIهای آپلود فایل 🛠️ موارد استفاده: جلوگیری از آپلود فایلهای جعلی یا مخرب اعتبارسنجی فایلهای ارسالشده توسط کاربر ساختن سیستمهای امن برای مدیریت فایل سازگار با .NET 8 و تستشده با نسخه 25.8.1 از Mime-Detective. مناسب برای توسعهدهندگانی که به اعتبارسنجی دقیق MIME نیاز دارند و نمیخواهند به تشخیص سطح سیستمعامل یا مرورگر اکتفا کنند.
Lossless JSON compression that is still JSON. Hoists repeated object keys into a catalogue, packs arrays of objects into columnar tables, and de-duplicates repeated string values - typically 40-80% smaller, still valid JSON, and an exact round trip. No dependencies on .NET 8 and later.
Build Model Context Protocol (MCP) servers and clients in .NET with MCPSharpMM. Create MCP-compliant tools and functions that AI models can discover and use. Features easy to use attribute-based API allowing anyone to spin up a server in minutes, and a Microsoft.Extensions.AI compatible client that generates AIFunctions, ready to be consumed by any IChatClient or compatible system. await MCPServer.StartAsync("EchoServer", "1.0.0"); --- server: class MyTool { [McpTool("echo","returns the input string back to you")] public string echo(string input) => input; } ---client: var client = new MCPClient("MyClient","1.0.0", "EchoServer.exe" //or dotnet EchoServer.dll if you wish await client.CallToolAsync("echo", new Dictionary<string, object>{{"input", "input string to echo"}});
A clean, production-ready report engine for .NET Framework 4.5.2+ that converts SQL result data into business-friendly Excel, HTML, and CSV reports with human-readable formatting. Features: - Fluent API for defining reports - Support for DataTable and List<Dictionary<string, object>> - Multiple output formats (Excel, HTML, CSV) - Business logic layer for grouping and calculations - Currency formatting with custom rules - "Explain Like I'm Five" report summaries - Clean separation of concerns - Enterprise-ready code quality
A high-performance two-way dictionary implementation for C# that maintains one-to-one relationships between keys and values, allowing O(1) lookups in both directions. Simple, clean API with comprehensive functionality.
BamirnoMimeMapper is a lightweight and extensible MIME type validation library for .NET 8. It provides a secure mapping between file extensions and their expected MIME types, and integrates seamlessly with Mime-Detective to verify actual file content. 🔒 Key Features: Full dictionary of trusted file extensions and MIME types Accurate MIME detection using file byte signatures Extension-to-MIME and MIME-to-extension conversion IsTrustedFile() method to validate file authenticity Designed for security-sensitive applications like file upload APIs 🛠️ Use Cases: Prevent spoofed or malicious file uploads Validate user-submitted files against expected types Build secure file handling pipelines Compatible with .NET 8 and tested with Mime-Detective v25.8.1. Ideal for developers who need robust MIME validation without relying on browser or OS-level detection. ------------------------------- BamirnoMimeMapper یک کتابخانه سبک و قابل توسعه برای اعتبارسنجی نوع MIME فایلها در .NET 8 است. این کتابخانه نگاشت امنی بین پسوند فایلها و نوع MIME مورد انتظارشان فراهم میکند و با لایبرری Mime-Detective برای بررسی محتوای واقعی فایل یکپارچه شده است. 🔒 ویژگیهای کلیدی: دیکشنری کامل از پسوندهای معتبر و نوع MIME متناظر تشخیص دقیق نوع MIME با استفاده از امضای بایت فایل تبدیل پسوند به MIME و بالعکس متد IsTrustedFile() برای بررسی اعتبار فایل مناسب برای اپلیکیشنهای حساس به امنیت مانند APIهای آپلود فایل 🛠️ موارد استفاده: جلوگیری از آپلود فایلهای جعلی یا مخرب اعتبارسنجی فایلهای ارسالشده توسط کاربر ساختن سیستمهای امن برای مدیریت فایل سازگار با .NET 8 و تستشده با نسخه 25.8.1 از Mime-Detective. مناسب برای توسعهدهندگانی که به اعتبارسنجی دقیق MIME نیاز دارند و نمیخواهند به تشخیص سطح سیستمعامل یا مرورگر اکتفا کنند.
# Datastructure A small .NET library of custom collection types. ## `CircularHashSet<T>` `CircularHashSet<T>` is a fixed-capacity set backed by a dictionary. When the set is full, adding a new key evicts the oldest entry in insertion order and inserts the new key. - **Fixed capacity** — size is set at construction and does not grow. - **Insertion-order eviction** — the oldest key is removed when capacity is exceeded. - **Thread-safe** — read/write operations use `ReaderWriterLockSlim`. - **Duplicate keys** — `TryAdd` returns `false` if the key is already present. ### Install ```bash dotnet add package Datastructure ``` ### Example ```csharp using Datastructure; var set = new CircularHashSet<string>(3); set.TryAdd("a"); // true set.TryAdd("b"); // true set.TryAdd("c"); // true set.TryAdd("d"); // true — "a" is evicted set.Contains("a"); // false set.Contains("d"); // true set.GetKeys(); // current keys (order not guaranteed) set.GetKeysByCreatedTime(); // keys ordered by insertion time ``` ### API | Member | Description | |--------|-------------| | `CircularHashSet(int fixedSize)` | Creates a set with the given maximum capacity. | | `bool TryAdd(T key)` | Adds a key, or evicts the oldest if full. Returns `false` if the key already exists. | | `bool Contains(T key)` | Whether the key is in the set. | | `T[] GetKeys()` | Snapshot of all keys. | | `T[] GetKeysByCreatedTime()` | Keys ordered by insertion time. | | `int Count` | Number of keys currently stored. | | `void Clear()` | Removes all keys. | | `void Dispose()` | Releases the lock. | ## Requirements - .NET Standard 2.0 (compatible with .NET Framework 4.6.1+, .NET Core 2.0+, and .NET 5+)
PrestaShop (8.x) Webservice API client for FAS applications: orders, order states and history, tracking numbers, products, combinations, stock, categories, customers, addresses and dictionaries, with admin-editable settings (shop URL, webservice key, shop id) stored in the host database - settings entity + service, /PrestashopIntegrationSettings and /PrestashopConnectionTest controllers for the admin panel, EF model registration.
Kuwa.OData.Client is a metadata-driven OData V4 and V4.01 client for .NET 10. It reads the service metadata and lets you query and modify OData services through a fluent, typed, dictionary-based or dynamic API without generating proxy classes. Supports $filter/$select/$expand/$orderby/$search/$compute/$apply, server-driven paging, delta queries, batch (multipart and JSON), functions and actions, media streams, ETags and asynchronous requests. Commonly used types: Kuwa.OData.Client.ODataClient Kuwa.OData.Client.ODataClientSettings Kuwa.OData.Client.ODataBatch