Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Core
  3. Scriban

Scriban

BSD-2-ClauseC#7.2.5

A fast, powerful, safe and lightweight scripting language and engine for .NET, designed for text templating and general scripting.

Visit WebsiteGitHubGitHub
3.9k stars408 forks0 contributors

What is Scriban?

Scriban is a fast, powerful, safe, and lightweight scripting language and engine for .NET, designed primarily for text templating with compatibility for Liquid templates. It solves the need for a versatile, efficient templating solution that can also serve as a general scripting engine, enabling developers to embed dynamic logic in applications.

Target Audience

.NET developers needing text templating, scripting capabilities, or migrating from Liquid templates, as well as those building applications requiring sandboxed script execution or AOT-compatible libraries.

Value Proposition

Developers choose Scriban for its high performance, extensible sandbox model, Liquid compatibility, and robust feature set including async support and AOT readiness, making it a flexible and secure alternative to other .NET templating engines.

Overview

A fast, powerful, safe and lightweight scripting language and engine for .NET

Use Cases

Best For

  • Generating dynamic HTML or text content in .NET web applications
  • Migrating existing Liquid template projects to a more powerful scripting language
  • Embedding a safe, sandboxed scripting engine in .NET desktop or server applications
  • Building command-line tools or calculators that require expression evaluation
  • Creating custom domain-specific languages (DSLs) within .NET ecosystems
  • Developing AOT-compatible .NET libraries that include templating features

Not Ideal For

  • Projects requiring strict, unmodified compliance with specific Liquid implementations like Shopify Liquid
  • Non-.NET development environments, as Scriban is built for and tightly integrated with the .NET ecosystem
  • Teams seeking plug-and-play templating with extensive pre-built UI components or WYSIWYG editors

Pros & Cons

Pros

Liquid Migration Ease

Parses Liquid templates via Template.ParseLiquid and can convert them to Scriban scripts using Template.ToText, facilitating smooth migration from Liquid-based systems as noted in the README.

High Performance Engine

Features an efficient lexer/parser and lightweight runtime, optimized for CPU and garbage collector efficiency, making it fast for text templating and scripting.

Secure Sandbox Execution

Provides extensible control over accessible .NET objects and methods through TemplateContext options, enabling safe script execution in untrusted environments as highlighted in the features.

Cons

Liquid Support Limitations

The Liquid compatibility mode has documented restrictions and may not fully support all Liquid syntax variants, potentially causing issues for complex templates as admitted in the README.

Source Embedding Complexity

Embedding Scriban source files requires specific project configurations and carries warnings about file modifications, adding setup overhead and risk of unintended changes.

Unexpected Naming Conventions

By default, .NET members are renamed to lowercase with underscores, which can be confusing and requires additional configuration via MemberRenamer to change, as noted in the README warning.

Frequently Asked Questions

Quick Stats

Stars3,932
Forks408
Contributors0
Open Issues0
Last commit1 month ago
CreatedSince 2016

Tags

#nuget-package#liquid#templating-language#dotnet#templating-engine#async-rendering#scripting-language#ast#templating#mustache#handlebars#text-templating

Built With

.
.NET
C
C++

Links & Resources

Website

Included in

.NET21.2kCore21.2k
Auto-fetched 5 hours ago

Related Projects

FluidFluid

Fluid is an open-source .NET template engine based on the Liquid template language.

Stars1,762
Forks190
Last commit1 day ago
RazorLightRazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core

Stars1,661
Forks271
Last commit2 years ago
Handlebars.NetHandlebars.Net

A real .NET Handlebars engine

Stars1,458
Forks240
Last commit27 days ago
SmartFormatSmartFormat

A lightweight text templating library written in C# which can be a drop-in replacement for string.Format

Stars1,253
Forks104
Last commit23 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub