open-index/open-npm huggingface dataset:
npm package: @loopstack/schema-to-template
Description: A utility to convert JSON schemas to markdown templates for LLMs prompts
Author: Jakob Klippel
Latest version: 1.1.0

# Schema to Template

A lightweight TypeScript utility for converting JSON schemas to markdown templates.

Related to [loopstack-ai/markdown-parser](https://github.com/loopstack-ai/markdown-parser).

## Features

- Convert JSON schemas to markdown templates
- Support for nested objects and arrays
- Great for use in llm prompts to provide a response template
- Use in combination with [loopstack-ai/markdown-parser](https://github.com/loopstack-ai/markdown-parser) for parsing the response back to a structured object.

## Installation

```bash
npm install @loopstack/schema-to-template
```

## Usage

```typescript
import { SchemaToTemplateBuilder, JSONSchemaConfigType } from '@loopstack/schema-to-template';

// Create an instance of the builder
const builder = new SchemaToTemplateBuilder();

// Define your JSON schema
const schema: JSONSchemaConfigType = {
  type: 'object',
  properties: {
    user: {
      type: 'object',
      properties: {
        name: {
          type: 'string',
          description: 'The name of the user'
        },
        email: {
          type: 'string',
          description: 'The email address of the user'
        },
        roles: {
          type: 'array',
          items: {
            type: 'string',
            description: 'A user role'
          }
        }
      }
    }
  }
};

// Convert the schema to a markdown template
const markdownTemplate = builder.createTemplateFromSchema(schema);
console.log(markdownTemplate);
```

Output:

```markdown
# user

## name

The name of the user

## email

The email address of the user

## roles

### item 1

A user role

### item 2

A user role

... repeat for each role
```

## API

### `SchemaToTemplateBuilder`

The main class that handles conversion of JSON schemas to markdown templates.

#### Methods

- `createTemplateFromSchema(schema: JSONSchemaConfigType | null | undefined): string`  
  Converts a JSON schema to a markdown template

- `schemaToMarkdown(schema: JSONSchemaConfigType | null | undefined, level: number, parentKey?: string): string`  
  Internal method that handles the conversion recursively

## Development

```bash
# Install dependencies
npm install

# Run tests
npm test

# Run tests with watch mode
npm run test:watch

# Build the package
npm run build
```

## Author

**Jakob Klippel**  
LinkedIn: [Jakob Klippel](https://www.linkedin.com/in/jakob-klippel-414a30261/)

## License

MIT
npm package: @loopstarter/sdk
Description: 🛠 An SDK for building applications on top of Loopstarter.
Latest version: 1.0.2

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @loopstarter/special-uikit
Description: Set of UI components for loopstarter projects
Latest version: 0.2.2

# 🥞 Loopstarter Spool UIkit

[![Version](https://img.shields.io/npm/v/@loopstarter/special-uikit)](https://www.npmjs.com/package/@loopstarter/uikit) [![Size](https://img.shields.io/bundlephobia/min/@loopstarter/special-uikit)](https://www.npmjs.com/package/@loopstarter/special-uikit)

Loopstarter special-uikit is a set of React components and hooks used to build pages on Loopstarter's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @loopstarter/special-uikit`

## Setup

### Theme

Before using Loopstarter UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@loopstarter/special-uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@loopstarter/special-uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.

## How to use the UIkit

If you want to use components from the UIkit, check the [Storybook documentation](https://loopstarter.github.io/loopstarter-uikit/)
npm package: @loopstarter/uikit
Description: Set of UI components for loopstarter projects
Latest version: 0.1.0

# LoopStarter UIkit

[![Version](https://img.shields.io/npm/v/@loopstarter/uikit)](https://www.npmjs.com/package/@loopstarter/uikit) [![Size](https://img.shields.io/bundlephobia/min/@loopstarter/uikit)](https://www.npmjs.com/package/@loopstarter/uikit)

LoopStarter UIkit is a set of React components and hooks used to build pages on LoopStarter's apps. It also contains a theme file for dark and light mode.

## Install

`yarn add @loopstarter/uikit`

***Note**: In case you want to use the older version of the LoopStarter UIkit, you should install @loopstarter-libs/uikit, instead, but we recommend using the latest version of the UIkit.*


## Setup

### Theme

Before using LoopStarter UIkit, you need to provide the theme file to styled-component.

```
import { ThemeProvider } from 'styled-components'
import { light, dark } from '@loopstarter/uikit'
...
<ThemeProvider theme={isDark}>...</ThemeProvider>
```

### Reset

A reset CSS is available as a global styled component.

```
import { ResetCSS } from '@loopstarter/uikit'
...
<ResetCSS />
```

### Types

This project is built with Typescript and export all the relevant types.
npm package: @loopswap/sdk
Description: 🛠 An SDK for building applications on top of Loopswap.
Latest version: 0.0.1

# Loopswap SDK


## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/loopswap/sdk.git
```

Move into the `sdk` working directory

```sh
cd sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```