open-index/open-npm huggingface dataset:
npm package: @grasp-webdev/marked-highlight-enhance
Description: marked highlight
Author: Tony Brix
Latest version: 2.1.0

# marked-highlight

Highlight code blocks

# Usage

You will need to provide a function that transforms the `code` to html.

```js
import {Marked} from "marked";
import {markedHighlight} from "marked-highlight";
import hljs from 'highlight.js';

// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-highlight/lib/index.umd.js"></script>
// const {markedHighlight} = globalThis.markedHighlight;
const marked = new Marked(
  markedHighlight({
    langPrefix: 'hljs language-',
    highlight(code, lang) {
      const language = hljs.getLanguage(lang) ? lang : 'plaintext';
      return hljs.highlight(code, { language }).value;
    }
  })
);


marked.parse(`
\`\`\`javascript
const highlight = "code";
\`\`\`
`);
// <pre><code class="hljs language-javascript">
//   <span class="hljs-keyword">const</span> highlight = <span class="hljs-string">&quot;code&quot;</span>;
// </code></pre>
```

The `async` option should be set to `true` if the `highlight` function returns a `Promise`.

```js
import {Marked} from "marked";
import {markedHighlight} from "marked-highlight";
import pygmentize from 'pygmentize-bundled';

const marked = new Marked(
  markedHighlight({
    async: true,
    highlight(code, lang) {
      return new Promise((resolve, reject) => {
        pygmentize({ lang, format: 'html' }, code, function (err, result) {
          if (err) {
            resolve(err);
            return;
          }

          resolve(result.toString());
        });
      });
    }
  })
)

marked.parse(`
\`\`\`javascript
const highlight = "code";
\`\`\`
`);
// <pre><code class="language-javascript">
//   <div class="highlight">
//     <pre>
//       <span class="kr">const</span> <span class="nx">highlight</span> <span class="o">=</span> <span class="s2">&quot;code&quot;</span><span class="p">;</span>
//     </pre>
//   </div>
// </code></pre>
```

## `options`

| option |  type  | default | description |
|--------|--------|---------|:------------|
| async  | boolean | `false` | If the highlight function returns a promise set this to `true`. Don't forget to `await` the call to `marked.parse` |
| langPrefix | string | `'language-'` | A prefix to add to the class of the `code` tag. |
| highlight | function | `(code: string, lang: string) => {}` | Required. The function to transform the code to html. |
npm package: @grasshop/ui
Description: A platform-agnostic design system and theme engine
Author: Grasshop
Latest version: 0.1.2

# @grasshop/ui

A platform-agnostic design system and theme engine that works across any JavaScript/TypeScript environment.

## Features

- 🎨 Customizable design tokens
- 🌗 Light and dark mode support (and everything in between 😉)
- 🌐 Framework agnostic
- 🔄 Runtime theme updates
- 🎯 Type-safe theme configuration
- 📱 Platform independent

## Installation

```bash
# npm
npm install @grasshop/ui

# yarn
yarn add @grasshop/ui

# pnpm
pnpm add @grasshop/ui
```

## Quick Start

```tsx
// React/React Native example
import { ThemeProvider, useTheme } from '@grasshop/ui';

function App() {
  return (
    <ThemeProvider>
      <YourApp />
    </ThemeProvider>
  );
}

// Use in any framework
import { theme } from '@grasshop/ui';

const backgroundColor = theme.styles.colors.background;
const fontSize = theme.styles.typography.sizes.base;
```

## Documentation

- [Tokens](./docs/tokens.md)
- [Theming](./docs/theming.md)

## Framework Examples

- [Angular](./examples/angular/)
- [React](./examples/react/)
- [React Native](./examples/react-native/)
- [Svelte](./examples/svelte/)
- [Swift](./examples/swift/)
- [Kotlin](./examples/kotlin/)
- [Vue](./examples/vue/)
- [Vanilla JavaScript](./examples/vanilla-js/)

## License

MIT © Grasshop
npm package: @grassus/ui-package
Description: Grassus UI package
Author: Pavel 'Grassus' Dzekunov
Latest version: 1.0.34

# ui-package
UI package

### Header
description

| Property           | Description | Type   | Default | Version | 
|----------------|---------------|---------------|----------------|-----------|
| actions |  | ```ReactNode``` |   | 
| extra |  | ```ReactNode``` |   | 
| gap |  | ```small``` &#124; ```middle``` &#124; ```large``` &#124; ```string``` &#124; ```number``` |   | 
| level |  | ```number``` | 3 | 
| styles |  |```actions?: CSSProperties; body?: CSSProperties; extra?: CSSProperties; title?: CSSProperties; container?: CSSProperties;``` |  | 
| title |  | ```string``` |  | 


### SiderMenu
description

| Property           | Description | Type   | Default | Version | 
|----------------|---------------|---------------|----------------|-----------|
| extra |  | ```ReactNode``` |   | 
| loading |  | ```boolean``` &#124; ```SpinProps``` |   | 
| menuProps |  | ```MenuProps``` |   |
| SiderProps |  | ```SiderProps``` |   | 
| styles |  |```actions?: CSSProperties; body?: CSSProperties; extra?: CSSProperties; header?: CSSProperties;``` |  | 
| title |  | ```ReactNode``` &#124; ```string``` |   | 

### useStorage Hook
description

| Property   | Description       | Type   | Default | Version | 
|--------|-------------------|---------------|----------------|-----------|
| key | local storage key | ```string``` | keyName | 

```js
import { useStorage } from '@grassus/ui-package';

export default () => {
  const { storageItem, setStorageItem } = useStorage('key');
  
  return ( <button onClick={() => setStorageItem(!storageItem)}> Collapsed </button>)
}
```

### AuthProvider
description

| Property           | Description | Type                                                                                    | Default | Version | 
|----------------|---------------|-----------------------------------------------------------------------------------------|----------------|-----------|
| children |  | ```ReactNode```                                                                         |  | 
| value |  | ```loginUrl: string; userInfoUrl: string; userRolesUrl: string; errorStatus: number;``` |  | 

### useAuthProvider
description

| Property           | Description | Type   | Default | Version | 
|----------------|---------------|---------------|----------------|-----------|
| authConfigInfo |  | ```loginUrl: string, userInfoUrl: string, userRolesUrl: string,``` |  | 
| authInfo |  | ```isAuthorized: boolean, isLoading: boolean, error: null,``` |  | 
| userInfo |  | ```string``` |  | 
| userRoles |  | ```string[]``` |  |
npm package: @grata-labs/placeholder
Description: Placeholder package to reserve @grata-labs npm scope for Grata Labs
Author: Grata Labs
Latest version: 0.0.0

# @grata-labs/placeholder

This is a placeholder package to reserve the `@grata-labs` npm scope for Grata Labs.

**Real packages coming soon!**

Visit [gratalabs.com](https://gratalabs.com) for more information.

## About Grata Labs

We're building developer tools to improve productivity and efficiency.

---

*This package serves only as a namespace reservation and should not be used in production.*
npm package: @grata-labs/ts-limitless
Description: TypeScript SDK for the Limitless API
Author: owlstronaut
Latest version: 0.1.0

# ts-limitless

TypeScript client library for interacting with the [Limitless API](https://www.limitless.ai/developers)

[![npm version](https://badge.fury.io/js/@grata-labs%2Fts-limitless.svg)](https://badge.fury.io/js/@grata-labs%2Fts-limitless)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Installation

```bash
npm install @grata-labs/ts-limitless
```

## Quick Start

```typescript
import { Limitless } from '@grata-labs/ts-limitless';

// Initialize the client
const client = new Limitless('your-api-key');

// Get recent lifelogs
const lifelogs = await client.getLifelogs({ limit: 10 });
console.log(lifelogs.data?.lifelogs);

// Search lifelogs
const searchResults = await client.searchLifelogs('meeting');

// Get specific lifelog
const lifelog = await client.getLifelog('lifelog-id');
```

## Configuration

```typescript
// Simple initialization
const client = new Limitless('your-api-key');

// With configuration options
const client = new Limitless({
  apiKey: 'your-api-key',
  baseUrl: 'https://api.limitless.ai',
  timeout: 30000
});
```

## API Methods

### Lifelogs

- `getLifelogs(params?)` - Get recent lifelogs with optional filtering
- `getLifelog(id, params?)` - Get a specific lifelog by ID
- `deleteLifelog(id)` - Delete a lifelog
- `searchLifelogs(query, params?)` - Search lifelogs
- `getLifelogsByDate(date, timezone?)` - Get lifelogs for a specific date
- `getStarredLifelogs(params?)` - Get starred lifelogs

### Chats

- `listChats(params?)` - Get recent chats
- `getChat(id, params?)` - Get a specific chat by ID
- `deleteChat(id)` - Delete a chat

### Audio

- `getAudio(params)` - Download audio for a time range

## Pagination

```typescript
// Manual pagination
const firstPage = await client.getLifelogs({ limit: 10 });

if (firstPage.meta?.lifelogs?.nextCursor) {
  const nextPage = await client.getLifelogs({
    limit: 10,
    cursor: firstPage.meta.lifelogs.nextCursor
  });
}
```

## Error Handling

```typescript
try {
  const lifelogs = await client.getLifelogs();
} catch (error) {
  console.error('Failed to fetch lifelogs:', error.message);
}
```

## Requirements

- Node.js 18 or higher
- Valid Limitless API key ([Get one here](https://www.limitless.ai/developers))

## Development

This library is built from the official Limitless OpenAPI specification:

1. The `openapi.yml` is taken directly from [limitless.ai](https://www.limitless.ai/openapi.yml)
2. It's converted to OpenAPI v3 format: `npm run convert-openapi`
3. TypeScript definitions are generated: `npm run generate-types`
4. The client is built: `npm run build`

### Building from source

```bash
# Clone the repository
git clone https://github.com/grata-labs/ts-limitless.git
cd ts-limitless

# Install dependencies
npm install

# Generate types and build
npm run build
```

## License

MIT © [Grata Labs, LLC](https://github.com/grata-labs/ts-limitless)