Osirion.Blazor
2.1.8
dotnet add package Osirion.Blazor --version 2.1.8
NuGet\Install-Package Osirion.Blazor -Version 2.1.8
<PackageReference Include="Osirion.Blazor" Version="2.1.8" />
<PackageVersion Include="Osirion.Blazor" Version="2.1.8" />
<PackageReference Include="Osirion.Blazor" />
paket add Osirion.Blazor --version 2.1.8
#r "nuget: Osirion.Blazor, 2.1.8"
#:package Osirion.Blazor@2.1.8
#addin nuget:?package=Osirion.Blazor&version=2.1.8
#tool nuget:?package=Osirion.Blazor&version=2.1.8
Osirion.Blazor
A modular, high-performance component library for Blazor applications with SSR compatibility and zero-JS dependencies (when possible).
โจ Features
Osirion.Blazor is composed of specialized modules that can be used independently or together:
๐ฏ Core Components
- Layout Components: HeroSection, PageLayout, Footer, Sticky Sidebar
- Navigation Components: Breadcrumbs, Article Metadata
- Content Components: HTML Renderer, Background Patterns
- State Components: Loading indicators, 404 pages
- Interactive Components: Cookie Consent, Logo Carousel
- SSR Compatible: All components work without JavaScript
- Framework Integration: Bootstrap, FluentUI, MudBlazor, Radzen support
๐ Analytics
- Multiple provider support (Microsoft Clarity, Matomo, GA4, Yandex Metrica)
- SSR compatibility with progressive enhancement
- Privacy-focused with consent management
- Easily extendable with your own providers
๐งญ Navigation
- Enhanced navigation with scroll restoration
- Smooth scrolling and "back to top" functionality
- Menu components with hierarchical support
- Works without JavaScript through progressive enhancement
- Fully customizable appearance
๐ Content Management
- GitHub and file system content providers
- Markdown rendering with frontmatter support
- Content organization with categories and tags
- Directory-based navigation and search
- SEO optimization out of the box
- Localization support with multi-language content
- Admin interface for content editing
๐จ Theming
- Integration with popular CSS frameworks (Bootstrap, FluentUI, MudBlazor, Radzen)
- Dark mode support with system preference detection
- CSS variable-based styling system
- Minimal JavaScript with progressive enhancement
๐ฆ Installation
Install the complete package:
dotnet add package Osirion.Blazor
Or just the modules you need:
dotnet add package Osirion.Blazor.Core
dotnet add package Osirion.Blazor.Analytics
dotnet add package Osirion.Blazor.Navigation
dotnet add package Osirion.Blazor.Cms
dotnet add package Osirion.Blazor.Theming
๐ Quick Start
Service Registration
// In Program.cs
using Osirion.Blazor.Extensions;
// Register all services at once with fluent API
builder.Services.AddOsirionBlazor(osirion => {
osirion
.AddGitHubCms(options => {
options.Owner = "username";
options.Repository = "content-repo";
})
.AddScrollToTop()
.AddClarityTracker(options => {
options.SiteId = "clarity-id";
})
.AddOsirionStyle(CssFramework.Bootstrap);
});
// Or from configuration
builder.Services.AddOsirionBlazor(builder.Configuration);
Component Usage
@using Osirion.Blazor.Components
<OsirionStyles FrameworkIntegration="CssFramework.Bootstrap" />
<EnhancedNavigation Behavior="ScrollBehavior.Smooth" />
<ScrollToTop Position="Position.BottomRight" />
<ClarityTracker />
<HeroSection
Title="Welcome to Our Platform"
Subtitle="Build amazing applications with ease"
Summary="Experience the power of modern web development."
PrimaryButtonText="Get Started"
PrimaryButtonUrl="/getting-started"
ImageUrl="/images/hero.jpg"
UseBackgroundImage="true" />
<OsirionBreadcrumbs Path="@Navigation.Uri" />
<ContentList Directory="blog" />
<ContentView Path="blog/my-post.md" />
<SearchBox />
<TagCloud />
<OsirionCookieConsent
PolicyLink="/privacy-policy"
ShowCustomizeButton="true" />
<OsirionInfiniteLogoCarousel
Title="Our Partners"
CustomLogos="@partnerLogos" />
๐ Documentation
- Quick Reference - Quick overview of all components
- Core Components - Layout, navigation, and content components
- Analytics - Analytics integration documentation
- Navigation - Navigation components documentation
- GitHub CMS - Content management documentation
- Styling - Theming and styling documentation
- Migration Guide - Guide for upgrading between versions
Component-Specific Documentation
- HeroSection - Comprehensive hero section component
- OsirionBreadcrumbs - Automatic breadcrumb navigation
- OsirionCookieConsent - GDPR-compliant cookie consent
- OsirionInfiniteLogoCarousel - Self-contained logo carousel
- Markdown Editor - Admin markdown editor components
๐ Key Principles
- SSR First: All components designed for Server-Side Rendering compatibility
- Zero-JS Dependencies: No JavaScript dependencies where possible
- Progressive Enhancement: Core functionality works without JavaScript, enhanced with JS when available
- Framework Integration: Seamless integration with popular CSS frameworks
- Multi-Platform: Supports .NET 8 and .NET 9 (and future versions)
- Provider Pattern: Easily extend with your own providers for analytics, content, etc.
- Accessibility: WCAG 2.1 compliant components with full keyboard and screen reader support
- GDPR Compliance: Built-in privacy and consent management features
๐ Requirements
- .NET 8.0 or higher
- Blazor (Server, WebAssembly, or Auto)
๐ What's New in v1.5.0
Major Features
- Fluent API: New
AddOsirionBlazor()
method for streamlined service registration - CSS Framework Integration: Automatic integration with Bootstrap, FluentUI, MudBlazor, and Radzen
- Comprehensive Core Components: HeroSection, Breadcrumbs, Cookie Consent, and more
- Enhanced Documentation: Component-specific documentation with examples
- Improved Styling: Renamed
osirion-cms.css
toosirion.css
for broader scope
Breaking Changes
osirion-cms.css
renamed toosirion.css
- Styling options moved from
GitHubCmsOptions
to dedicatedOsirionStyleOptions
- Service registration methods updated (legacy methods still supported)
See Migration Guide for upgrade instructions.
๐งช Features Coming Soon
- Headless CMS support with Contentful, Sanity, and Strapi providers
- Form validation and submission components
- Authentication integration
- Enhanced SEO components with structured data
- Performance optimizations for large content repositories
- Visual component editor for admin interface
- Multi-tenant content management
๐ค Contributing
Contributions are welcome! Please see our Contributing Guidelines for details.
Current Focus Areas
- Additional CSS framework integrations
- Performance optimizations
- Accessibility improvements
- Documentation enhancements
- Test coverage expansion
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Built with Blazor and ASP.NET Core
- Markdown processing by Markdig
- Testing with bUnit and Shouldly
- Icons and examples use resources from various open-source projects
๐ Project Stats
- Components: 15+ production-ready components
- Packages: 10+ NuGet packages
- Frameworks: .NET 8 & .NET 9 support
- CSS Frameworks: 4 major frameworks supported
- Test Coverage: 85%+ code coverage
- Documentation: Comprehensive guides and examples
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
- Osirion.Blazor.Analytics (>= 2.1.8)
- Osirion.Blazor.Cms (>= 2.1.8)
- Osirion.Blazor.Core (>= 2.1.8)
- Osirion.Blazor.Navigation (>= 2.1.8)
- Osirion.Blazor.Theming (>= 2.1.8)
-
net9.0
- Osirion.Blazor.Analytics (>= 2.1.8)
- Osirion.Blazor.Cms (>= 2.1.8)
- Osirion.Blazor.Core (>= 2.1.8)
- Osirion.Blazor.Navigation (>= 2.1.8)
- Osirion.Blazor.Theming (>= 2.1.8)
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 | |
---|---|---|---|
2.1.8 | 13 | 8/27/2025 | |
2.1.7 | 32 | 8/25/2025 | |
2.1.6 | 28 | 8/23/2025 | |
2.1.5 | 151 | 6/24/2025 | |
2.1.4 | 150 | 6/18/2025 | |
2.1.3 | 75 | 5/31/2025 | |
2.1.2 | 79 | 5/31/2025 | |
2.1.1 | 146 | 5/20/2025 | |
2.1.0 | 152 | 5/19/2025 | |
2.0.2 | 168 | 4/23/2025 | |
2.0.1 | 170 | 4/23/2025 | |
2.0.0 | 175 | 4/22/2025 | |
1.5.3 | 259 | 4/21/2025 | |
1.5.2 | 257 | 4/21/2025 | |
1.5.1 | 262 | 4/21/2025 | |
1.5.0 | 260 | 4/21/2025 | |
1.4.0 | 269 | 4/21/2025 | |
1.3.0 | 262 | 4/20/2025 | |
1.2.0 | 268 | 4/19/2025 | |
1.1.0 | 271 | 4/19/2025 | |
1.0.0 | 222 | 4/19/2025 |