登录 注册
自动化与工作流数据分析与数据处理效率与办公工具 dotnetinterpreterjavascript
4,749
Stars
611
Forks
130
Watchers
30
Open Issues
BSD-2-Clause
许可证
C#
语言
2014-01-10
创建时间
2026-11-11
最近更新

项目能做什么

适用于 .NET 平台的 JavaScript 解释器。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
[![Build](https://github.com/sebastienros/jint/actions/workflows/build.yml/badge.svg)](https://github.com/sebastienros/jint/actions/workflows/build.yml)
[![NuGet](https://img.shields.io/nuget/v/Jint.svg)](https://www.nuget.org/packages/Jint)
[![Feedz](https://img.shields.io/feedz/vpre/sebastienros/jint/Jint.svg?label=Feedz)](https://feedz.io/org/sebastienros/repository/jint/packages/Jint)

# Jint

Jint is a modern ECMAScript interpreter for .NET. It runs JavaScript directly in
your process without native dependencies, bytecode generation, or a separate
runtime.

Jint targets .NET Framework 4.7.2, .NET Standard 2.0/2.1, .NET 8, and .NET 10.
Start with the [documentation](https://sebastienros.github.io/jint/) or install
the core package:

```bash
dotnet add package Jint
```

## Quick start

The examples below assume `using Jint;`.

### Evaluate JavaScript

<!-- snippet: readme-evaluate -->
```csharp
var engine = new Engine();
var result = engine.Evaluate("40 + 2").AsNumber();
```
<!-- endSnippet -->

### Expose .NET and call JavaScript

<!-- snippet: readme-expose-and-invoke -->
```csharp
var engine = new Engine()
    .SetValue("log", new Action<string>(Console.WriteLine))
    .Execute("""
        function greet(name) {
            const message = `Hello, ${name}!`;
            log(message);
            return message;
        }
        """);

var greeting = engine.Invoke("greet", "Ada").AsString();
```
<!-- endSnippet -->

### Prepare code that runs repeatedly

<!-- snippet: readme-prepare -->
```csharp
var script = Engine.PrepareScript(
    "items.reduce((sum, value) => sum + value, 0)",
    source: "sum.js",
    strict: true);

var engine = new Engine();
engine.SetValue("items", new[] { 1, 2, 3 });

var total = engine.Evaluate(in script).AsNumber();
```
<!-- endSnippet -->

`Prepared<Script>` and `Prepared<Module>` are thread-safe and may be shared
across engines. JavaScript objects are not: a `JsValue` that contains an object
belongs to the engine and realm that created it.

## Features

- Modern ECMAScript, modules, promises, async functions, generators, `Intl`,
  and `Temporal`
- Direct projection of .NET values, delegates, objects, collections, and types
- Synchronous and asynchronous module loaders
- Execution constraints, hardened untrusted-code defaults, and security
  diagnostics
- Profiling, statement coverage, debugging, and Chrome DevTools Protocol
  integration
- Opt-in Web APIs and Node-compatible modules
- A headless browser, command-line tool, and MCP server

Browser and Node APIs are not installed by default. Hosts explicitly grant the
capabilities each script needs.

## Used by

Projects using Jint include
[RavenDB](https://github.com/ravendb/ravendb),
[EventStoreDB](https://github.com/EventStore/EventStore),
[Orchard Core](https://github.com/OrchardCMS/OrchardCore),
[Elsa Workflows](https://github.com/elsa-workflows/elsa-core),
[Docfx](https://github.com/dotnet/docfx), and
[JavaScript Engine Switcher](https://github.com/Taritsy
阅读完整原文

商业机会分析 规则生成(AI 未配置)

综合评分 61.0 分。该项目在“个人可实施性”维度得 37 分,“付费可能性”维度得 60.0 分,差异化空间 88.0 分(评分依据见评分卡)。

将 jint 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期较高 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 jint 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
jellyfin/jellyfin 中文介绍暂未生成
The Free Software Media System - Server Backend & API
59,210 C#
files-community/Files 中文介绍暂未生成
A modern file manager that helps users organize their files
46,587 C#
dotnet/aspnetcore 中文介绍暂未生成
ASP.NET Core is a cross-platform .NET framework for building
38,511 C#
SeleniumHQ/selenium 中文介绍暂未生成
A browser automation framework and ecosystem.
34,579 Java
AvaloniaUI/Avalonia 中文介绍暂未生成
Develop Desktop, Embedded, Mobile and WebAssembly apps with
31,801 C#
BeyondDimension/SteamTools 中文介绍暂未生成
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
27,509 C#
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2014-01-10,近 30 天仍在推送,发布过 81 个 Release
社区活跃Star 4,749 / Fork 611 / Issue 30(数据支持,可自行核实)
许可证BSD-2-Clause
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/sebastienros/jint.git
cd jint
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。