Логотип Unchained Engine

Unchained Engine

Організація
unchainedshop

High-Performance Headless Node.js ESM E-Commerce Framework

Видавецьunchainedshop
Репозиторійunchained
МоваTypeScript
Форки
24
Зірки
203
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяEUPL-1.2
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Unchained Engine надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 203, форки: 24 — у пов’язаному репозиторії.

Unchained Engine

Deploy on Railway

Licensed under the EUPL 1.2

Static Badge Discord

Bundle Size CLA assistant

Unchained Engine is a modular, API-first e-commerce platform built as a monorepo with npm workspaces. It provides a complete solution for building custom e-commerce applications with GraphQL APIs, extensible plugin architecture, and support for modern use cases like subscriptions, quotations, and tokenized products.

View Documentation

Quickstart

Prerequisites

  • Node.js >=26 (see .nvmrc for the development version)
  • MongoDB 4.4+ (or use MongoDB Memory Server for development)

Create a New Project

bash
npm init @unchainedshop

Then navigate to http://localhost:4010/ to open the Admin UI and set up your administrator account on first run.

Run Local AI for Copilot

Hardware requirements depend on the model, quantization, and context size. For an OpenAI-compatible local server, see the Copilot configuration guide.

bash
llama-server -hf ggml-org/gpt-oss-20b-GGUF --ctx-size 0 --jinja -ub 2048 -b 2048

Package Architecture

Unchained Engine is organized in a hierarchical structure:

platform     → Highest level orchestration, combines all packages
    ↓
api          → GraphQL API layer with Express/Fastify adapters
    ↓
core         → Business logic coordination, integrates all core-* modules
    ↓
core-*       → Domain-specific modules (users, products, orders, etc.)
    ↓
infrastructure → Base utilities (mongodb, events, logger, utils, roles)

Packages

Platform & API

PackageDescription
@unchainedshop/platformComplete engine bundle - main entry point combining api, core, plugins, and infrastructure
@unchainedshop/apiGraphQL API with Express/Fastify adapters and MCP server for AI integrations
@unchainedshop/coreCore orchestration with business services, directors, and bulk import

Core Domain Modules

Business logic modules for e-commerce functionality:

PackageDescription
@unchainedshop/core-productsProduct management with pricing, media, reviews, and variations
@unchainedshop/core-ordersOrder lifecycle including positions, payments, deliveries, and discounts
@unchainedshop/core-usersUser accounts, authentication, profiles, and WebAuthn support
@unchainedshop/core-paymentPayment provider management and credentials
@unchainedshop/core-deliveryDelivery provider management and shipping methods
@unchainedshop/core-assortmentsCategory management with hierarchical structures
@unchainedshop/core-filtersProduct filtering and faceted search
@unchainedshop/core-warehousingInventory, stock management, and token surrogates
@unchainedshop/core-enrollmentsSubscription/enrollment management
@unchainedshop/core-quotationsQuote requests and proposal workflows
@unchainedshop/core-bookmarksUser bookmark/wishlist functionality
@unchainedshop/core-filesFile metadata storage and URL management
@unchainedshop/core-eventsEvent history persistence and analytics
@unchainedshop/core-workerBackground job queue and processing
@unchainedshop/core-countriesCountry management with ISO codes
@unchainedshop/core-currenciesCurrency management and blockchain support
@unchainedshop/core-languagesLanguage management for i18n

Infrastructure

Foundational utilities used across all layers:

PackageDescription
@unchainedshop/mongodbMongoDB database abstraction with utilities and DocumentDB compatibility
@unchainedshop/eventsEvent emitter abstraction with Node.js, Redis, and EventBridge adapters
@unchainedshop/loggerHigh-performance logging with JSON/human-readable formats
@unchainedshop/utilsCommon utilities, locale helpers, and cryptographic helpers
@unchainedshop/rolesRole-based access control (RBAC) system
@unchainedshop/sharedShared TypeScript configuration for workspace packages

Extensions

PackageDescription
@unchainedshop/pluginsOfficial plugin collection for payment, delivery, pricing, and more
@unchainedshop/ticketingEvent ticketing with PDF generation and Apple/Google Wallet passes

Admin UI

PackageDescription
admin-uiNext.js admin interface for managing the e-commerce platform

Examples

ExampleDescription
Kitchensink (Fastify)Full-featured example with Fastify, all plugins, Admin UI extensions, and AI integration
Kitchensink (Express)Full-featured example with Express, MCP server, and AI integration
TicketingEvent ticketing with PDF and wallet passes
MinimalMinimal setup example
OIDCOpenID Connect authentication example

Plugin Architecture

Unchained uses a Director/Adapter pattern for extensibility. Directors manage collections of adapters that implement specific behaviors.

Available Directors

DirectorPurposeExample Adapters
PaymentDirectorPayment processingStripe, Datatrans, Invoice
DeliveryDirectorShipping/deliveryPost, Pickup, Digital
WarehousingDirectorInventory managementStore, ETH Minter
WorkerDirectorBackground jobsEmail, SMS, HTTP Request
FilterDirectorProduct searchStrict Equal, Local Search
ProductPricingDirectorProduct pricingCatalog Price, Discounts
OrderPricingDirectorOrder totalsItems, Delivery, Payment
MessagingDirectorNotificationsEmail templates, SMS

See the Core README for detailed documentation on creating custom adapters.

Available Plugins

The @unchainedshop/plugins package includes:

Payment

  • Stripe, Datatrans, Saferpay, PostFinance Checkout
  • Payrexx, Cryptopay, Apple IAP
  • Invoice (standard and prepaid)

Delivery

  • Post (manual shipping), Store pickup, Message-based delivery

Pricing

  • Product catalog pricing, Currency conversion, Tax calculation (Swiss, EU, UK, US)
  • Order-level and product-level discounts

File Storage

  • MongoDB GridFS, MinIO/S3-compatible storage

Workers

  • Email (Nodemailer), SMS (Twilio, Bulkgate), Push notifications
  • Currency rate updates (ECB, Coinbase), Bulk import

Events

  • Node.js EventEmitter, Redis pub/sub, AWS EventBridge

Development

Commands

bash
npm install          # Install all dependencies
npm run dev          # Start development with hot-reload
npm run build        # Build all packages
npm test             # Run all tests
npm run lint         # Lint and fix code

Testing

bash
npm run test:run:unit         # Run unit tests only
npm run test:run:integration  # Run integration tests
node --test path/to/test.ts   # Run a single test file

Project Structure

unchained/
├── packages/           # All npm packages
│   ├── platform/       # Main entry point
│   ├── api/            # GraphQL API
│   ├── core/           # Business logic orchestration
│   ├── core-*/         # Domain modules
│   ├── plugins/        # Official plugins
│   ├── ticketing/      # Ticketing extension
│   └── ...             # Infrastructure packages
├── examples/           # Example implementations
│   ├── kitchensink/    # Full-featured example
│   ├── minimal/        # Minimal setup
│   └── ...
└── tests/              # Integration tests

Migration Guide

See MIGRATION.md for upgrade instructions between major versions.

Claude Code Integration

The upgrade skill guides agents through the migration guide, changelog, and examples for your target version.

Security & Compliance

Unchained Engine is designed for deployment in security-sensitive environments including banking, government, and enterprise contexts.

Compliance

StandardStatusNotes
PCI DSSDeployment-dependentPayment integrations use provider tokens; assess the complete payment flow
ISO 27001 / FINMA / NIS2Technical controlsAccess control and audit events can support organizational controls
FIPS 140-3Deployment-dependentValidate the runtime and each enabled authentication/payment integration

Cryptographic Standards

  • Password Hashing: PBKDF2-SHA512 with 300,000 iterations
  • Token Security: SHA-256 hashing, cryptographically random generation
  • Login Tokens: HS256-signed JWTs with a one-hour default lifetime
  • Payment Signatures: HMAC-SHA-256/512

FIPS 140-3 Mode

For deployments requiring FIPS, verify the runtime and all enabled integrations. See FIPS configuration for the runtime requirements and verification steps.

API Hardening (Denial-of-Service Protection)

The GraphQL API does not impose query-complexity, depth, alias-count, or rate limits by default. Unchained is a headless engine embedded in your own server process, so where and how these edge protections are enforced is a deployment decision that belongs to the integrator — appropriate thresholds depend on your schema extensions, traffic profile, and infrastructure (CDN, WAF, API gateway, reverse proxy).

Anonymous access is enabled by default for read-only storefront queries (e.g. assortments, products, filters, languages, currencies, countries, search). Because GraphQL lets a single request batch many aliased fields, an unbounded query can fan out into many database operations. Bounding this is the operator's responsibility.

Recommended layers:

  1. Query validation (in-process). GraphQL Yoga plugins and validation rules are forwarded straight through startPlatform / startAPIServer to the underlying Yoga server. For example, using GraphQL Armor:

    ts
    import { startPlatform } from '@unchainedshop/platform';
    import { maxAliasesPlugin } from '@escape.tech/graphql-armor-max-aliases';
    import { maxDepthPlugin } from '@escape.tech/graphql-armor-max-depth';
    import { maxTokensPlugin } from '@escape.tech/graphql-armor-max-tokens';
    
    await startPlatform({
      // ...your options
      plugins: [
        maxAliasesPlugin({ n: 15 }),
        maxDepthPlugin({ n: 10 }),
        maxTokensPlugin({ n: 1000 }),
      ],
    });
  2. Rate limiting & request-size limits (at the edge). Enforce per-IP / per-token rate limits and body-size caps at your reverse proxy, API gateway, or WAF (e.g. nginx limit_req, Cloudflare, AWS WAF). Keep anonymous traffic on a tighter budget than authenticated traffic.

  3. Pagination caps. If you expose custom list resolvers, clamp limit / pagination server-side.

See SECURITY.md for complete security documentation, compliance details, and deployment recommendations.

Resources

Contributing

Please see our Contribution Guidelines.

Code of Conduct

See our Contributor Covenant Code of Conduct.

License

EUPL-1.2

Використовуйте MCP Unchained Engine з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Unchained Engine ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Unchained Engine як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Unchained Engine.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "unchained": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Unchained Engine, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Unchained Engine.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Unchained Engine?
Unchained Engine
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Unchained Engine.

Поширені запитання

Для чого використовується сервер MCP Unchained Engine?

Unchained Engine — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Unchained Engine з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Unchained Engine з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Unchained Engine із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Unchained Engine, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Unchained Engine до TypingMind?

Unchained Engine працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Unchained Engine у TypingMind?

Unchained Engine надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Unchained Engine?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Unchained Engine потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇