open-index/open-npm huggingface dataset:
npm package: @poteto0/playbook-lang-syntax
Description: CodeMirror extension for Playbook language
Latest version: 0.1.0

# @playbook-lang/code-mirror

CodeMirror extension for the Playbook language.

## Installation

```bash
npm install @playbook-lang/code-mirror
```

## Usage

```javascript
import { EditorView, basicSetup } from "codemirror";
import { playbook } from "@playbook-lang/code-mirror";

new EditorView({
  doc: "players = { p1 }",
  extensions: [
    basicSetup,
    playbook(),
  ],
  parent: document.body,
});
```

## Development

```bash
npm install
npm run build
```
npm package: @pothos-examples/envelope-helix-fastify
Description: This example uses the following packages:
Latest version: 3.1.9

# A GraphQL schema wrapped with envelop

This example uses the following packages:

- `@pothos/core`: For building the schema
- `@envelop/core`: For wrapping schema execution with additional logic
- `graphql-helix`: For parsing and processing requests
- `fastify`: For routing and starting the http server

## Schema

```graphql
type Comment {
  author: User
  comment: String!
  id: ID!
  post: Post!
}

type Post {
  author: User
  comments: [Comment!]!
  content: String!
  id: ID!
  title: String!
}

type Query {
  post(id: ID!): Post
  posts(skip: Int, take: Int): [Post!]
  user(id: ID!): User
}

type User {
  comments: [Comment!]!
  firstName: String!
  fullName: String!
  id: ID!
  lastName: String!
  posts: [Post!]!
}
```
npm package: @pothos-examples/graphql-shield
Description: This example shows how you can create a simple plugin to apply graphql shield rules to your schema
Latest version: 3.1.9

# A Simple Pothos API with a custom graphql-shield plugin

This example shows how you can create a simple plugin to apply graphql shield rules to your schema

This example uses the following packages:

- `@pothos/core`: For building the schema
- `graphql-yoga`: For creating a server that executes the schema

## Schema

```graphql
type Comment {
  author: User
  comment: String!
  id: ID!
  post: Post!
}

type Post {
  author: User
  comments: [Comment!]!
  content: String!
  id: ID!
  title: String!
}

type Query {
  post(id: ID!): Post
  posts(skip: Int, take: Int): [Post!]
  user(id: ID!): User
}

type User {
  comments: [Comment!]!
  firstName: String!
  fullName: String!
  id: ID!
  lastName: String!
  posts: [Post!]!
}
```
npm package: @pothos-examples/helix
Description: This example uses the following packages:
Latest version: 3.1.9

# A GraphQL API built with graphql-helix

This example uses the following packages:

- `@pothos/core`: For building the schema
- `@pothos/plugin-prism`: For prisma based type definitions, and efficient queries
- `graphql-helix`: For executing queries based on incoming requests

## Schema

```graphql
type Comment {
  author: User!
  comment: String!
  id: ID!
  post: Post!
}

type Post {
  author: User!
  comments: [Comment!]!
  content: String!
  id: ID!
  title: String!
}

type Query {
  post(id: ID!): Post
  posts(skip: Int, take: Int): [Post!]!
  user(id: ID!): User
}

type User {
  comments: [Comment!]!
  firstName: String!
  fullName: String!
  id: ID!
  lastName: String!
  posts: [Post!]!
}
```