open-index/open-npm huggingface dataset:
npm package: @magek/adapter-read-model-store-nedb
Description: Nedb-based read model store adapter for the Magek framework
Author: Boosterin Labs SLU
Latest version: 0.0.11

# NeDB Read Model Store Adapter

This package provides a NeDB-based read model store adapter for the Magek framework.

## Installation

```bash
npm install @magek/adapter-read-model-store-nedb
```

## Usage

```typescript
import { MagekConfig } from '@magek/common'
import { readModelStore } from '@magek/adapter-read-model-store-nedb'

const config = new MagekConfig('development')
config.readModelStoreAdapter = readModelStore
```

## Features

- Full ReadModelStoreAdapter interface implementation
- Support for fetch, search, store, and delete operations
- Built-in health checks
- Comprehensive query capabilities with filtering, sorting, and pagination
- Optimistic concurrency control
- Field projection support

## API

The adapter implements the standard `ReadModelStoreAdapter` interface:

- `fetch(config, readModelName, readModelID)` - Fetch a single read model by ID
- `search(config, readModelName, parameters)` - Search read models with filters
- `store(config, readModelName, readModel)` - Store or update a read model
- `delete(config, readModelName, readModelID)` - Delete a read model by ID
- `rawToEnvelopes(rawReadModels)` - Convert raw data to read model envelopes
- `healthCheck` - Health check methods (isUp, details, urls)

## Storage

Read models are stored in a local NeDB file at `.magek/read_models.json`.
npm package: @magek/mcp-server
Description: MCP server for Magek documentation and CLI reference
Author: Boosterin Labs SLU
Latest version: 0.0.11

# @magek/mcp-server

MCP server that enables AI coding assistants to build Magek applications. Provides documentation, CLI commands, and CQRS patterns to Claude Code, Codex CLI, and other MCP-compatible tools.

## Quick Start

**Claude Code:**
```bash
claude mcp add magek -- npx -y @magek/mcp-server
```

**Codex CLI** — add to `.codex/config.json`:
```json
{ "mcpServers": { "magek": { "command": "npx", "args": ["-y", "@magek/mcp-server"] } } }
```

**Other MCP tools** — add to your MCP configuration:
```json
{
  "mcpServers": {
    "magek": {
      "command": "npx",
      "args": ["-y", "@magek/mcp-server"]
    }
  }
}
```

## What It Provides

- **Documentation** — All Magek docs available as MCP resources (`magek://docs/*`)
- **CLI Reference** — Complete scaffolding command reference (`magek://cli/reference`)
- **CQRS Flow Prompt** — Step-by-step guide for implementing features
- **Troubleshooting Prompt** — Common issues and solutions

## Documentation

Full documentation: [magek.ai/docs/getting-started/ai-coding-assistants](https://magek.ai/docs/getting-started/ai-coding-assistants)

## License

Apache-2.0