open-index/open-npm huggingface dataset:
npm package: @slimplate/daisyui
Description: Helper components for using slimplate with daisyui
Latest version: 0.0.3

# daisyui

Helper components for using slimplate with daisyui

For more information and general usage instructions, checkout [slimplate](http://slimplate.github.io)


## installation

```
npm i @slimplate/daisyui
```

## usage

Here is an example of a page that has an editor sidebar made with daisyui:

```js
import { EditorPage } from '@slimplate/daisyui'
import s from '@/../.slimplate.json'
const { collections, repo, branch } = s

const collection = collections.blog
const components = {}

// give this component blogPost, and it will render it with an editor sidebar

export default function PageMine({ blogPost }) {
  return (
    <EditorPage onUpdate={updatePost} item={blogPost} collection={collection} proxy={process.env.NEXT_PUBLIC_CORS_PROXY} repo={repo} branch={branch || 'main'}>
      <main className='prose m-auto mb-4'>
        <MDXRemote {...blogPost.mdx} components={components} />
      </main>
    </EditorPage
  )
}
```

There are a few other heloper components you can add to your site to do things:

```js
import {
  ButtonSync, // tracks current state of repo and allows user to sync with remote
  ButtonLoginGithub // tracks current user-state, and allows users to login/logout
} from '@slimplate/daisyui'
```
npm package: @slimplate/edge
Description: Provides backend functions for GitHub authentication and a CORS proxy on Vercel
Latest version: 0.0.2

# edge

These functions enable GitHub authentication and facilitate communication with external APIs while adhering to CORS policies in Vercel / Cloudflare Worker projects.

```js
validRedir(redirectUrlString, url) // Checks if a URL matches wildcard patterns in redirectUrlString.
ghcallback(req, res, REDIRECT_URL, GITHUB_CLIENT, GITHUB_SECRET) // Handles GitHub OAuth callback, exchanges code for token, and redirects to authorized URL.
ghlogin(req, res, REDIRECT_URL, GITHUB_CLIENT) // Initiates GitHub login flow and redirects to GitHub OAuth authorization endpoint.
cors(req, res) // Acts as a CORS proxy for external API requests, handling headers and forwarding the request.
```

You can see a Vercel usage-example [here](https://github.com/slimplate/slimplate-nextjs/tree/main/src/pages/api).
npm package: @slimplate/filesystem
Description: Server-side manager for handling content
Latest version: 0.0.10

# filesystem

This server-side content manager allows for efficient management and retrieval of content. It utilizes caching to improve performance and supports post-processing of data based on defined field types.

```js
constructor(collection, collectionName, basePath = '.') // Initializes a content manager with the specified collection, collection name, and base path.
list(grabItems = false) // Retrieves a list of filenames that match the files pattern defined in the collection. If grabItems is true, it also retrieves the content of each file as items.
get(filename) // Retrieves a single article based on the filename. It reads the file content, extracts metadata using gray-matter, and performs post-processing on the data.
```
npm package: @slimplate/github
Description: Functions to interface with git
Latest version: 0.0.2

# github
A github library to interface with git directly. 

Github Functions

```js
add(filepath, opts) // //Git add a file to the local filesystem.
checkStatus() // //Check the status of the entire project by getting the status of each file.
clone(opts) // //Clone a repository to the local filesystem.
commit(message, opts) // //Git commit the changes in the local filesystem.
diff(commitHash1, commitHash2) // //Get the difference between two commits, including added, removed, and modified files.
exists(filename = '') // Check if a file or directory exists in the filesystem.
fetch(opts) // Fetch updates from the remote repository.
getAll(rootDir, existing = []) // Get a list of all files in the local filesystem.
getAllItems() // Get all items from the collection, including their metadata and content.
getAuthUrl() // Get the URL of the repository with username and password for basic authentication.
getCommitStatusWithDiff() // Get the commit status with the difference between the remote and local commits.
glob(g) // Get all filenames that match a glob pattern in the local filesystem.
init() // Initialize the Git repository by pulling changes if the repository exists or cloning it if it doesn't.
listServerRefs(opts) // Get a remote list of Git references.
log(opts = {}) // Get the Git log for the repository.
mkdirp(dirname) // Recursively create a directory.
push(opts) // Push changes from the local filesystem to the remote repository.
read(filename, encoding) // Read the contents of a file from the local filesystem.
rm(filepath, opts) // Remove a file or directory from the local filesystem.
status(opts = {}) // Get the Git status of the project.
write(filename, contents) // Write contents to a file in the local filesystem.
```
npm package: @slimplate/utils
Description: Helper functions for slimplate projects.
Latest version: 0.0.5

# utils
A basic utils library for slimplate projects

Util Functions:
```js
uuid()  // generates a universally unique identifier (UUID) using the uuidGenerator library.
shortUuid() // generates a shorter version of a UUID using the uuidGenerator library.
slugify() // transforms a given string value into a URL-friendly slug format. 
dateFormat() // formats a date value according to a specified format.
titleize() // capitalizes the first letter of each word in a given string using the inflection library
useLocalStorage() // provides a way to store and retrieve values in the browser's local storage.
```
npm package: @slimpleton/ts-guid
Description: Lightweight GUID Implementation for Typescript
Author: Daniel Gione
Latest version: 1.1.6

# Typescript Guid
A Typescript safe implementation of a GUID that allows for validation of the format while limiting boilerplate to reference the value itself.
Uses types not classes to be more lightweight / reusable

## Installation and Usage
### Installation

```
npm i @slimpleton/ts-guid --save
```

### Basic Usage

```typescript
export class Xyz{
    public id: UUID;
    constructor(){
        this.id = createRandomGuid();
    }
    //or

    constructor(id: `${string}-${string}-${string}-${string}-${string}`){
        this.id = parseGuid(id);
    }

    // or
    constructor(id: `${string}-${string}-${string}-${string}-${string}`, version: UUIDVersion){
        this.id = parseGuid(id, version);
    }
}

```
## Types Included
| Type | Description|
|---|---|
| UUID| Generic type encompassing all versions of Guid&lt;UUIDVersion&gt; available|
| UUIDVersion| Currently supported versions of UUID for parsing by library (4-7)|

## Methods Included
 | Method | Description|
 |---|---|
 | createRandomGuid(): UUIDv4| Creates a random Guid using crypto.randomUUID() and returns it strictly typed|
 | parseGuid(val: string, version: UUIDVersion = 4): Guid&lt;UUIDVersion&gt; | Attempts to parse the value with versioned UUID format|


### ESLINTER USERS
This comes with an extension to the ruleset that is Highly Recommended to prevent runtime 'as-casting' to Guid
'no-as-uuid':'error'
npm package: @slimpleton13/ts-guid
Description: Lightweight GUID Implementation for Typescript
Author: Daniel Gione
Latest version: 1.0.10

# Typescript Guid
A Typescript safe implementation of a GUID that allows for validation of the format while limiting boilerplate to reference the value itself.
Uses types not classes to be more lightweight / reusable

## Installation and Usage
### Installation

```
npm i @slimpleton13/ts-guid --save
```

### Basic Usage

```typescript
export class Xyz{
    public id: Guid;
    constructor(){
        this.id = createRandomGuid();
    }
    //or
    constructor(id: string){
        this.id = parseGuid(id);
    }
    //or
    constructor(id: `${string}-${string}-${string}-${string}-${string}`){
        this.id = parseExactGuid(id);
    }
}

```


## Methods Included
 | Method | Description|
 |---|---|
 | createRandomGuid(): Guid| Creates a random Guid using crypto.randomUUID() and returns it strictly typed|
 | parseGuid(val: string): Guid| Attempts to parse the value with loose Guid format|
 | parseExactGuid(val: string): Guid| Attempts to parse the value with strict Guid format|
npm package: @slimreviews/slimreviews-angular
Description: This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
Author: SlimReviews
Latest version: 1.1.6

# SlimreviewsAngular

This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.

## Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

```bash
ng generate component component-name
```

For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:

```bash
ng generate --help
```

## Building

To build the library, run:

```bash
ng build slimreviews-angular
```

This command will compile your project, and the build artifacts will be placed in the `dist/` directory.

### Publishing the Library

Once the project is built, you can publish your library by following these steps:

1. Navigate to the `dist` directory:
   ```bash
   cd dist/slimreviews-angular
   ```

2. Run the `npm publish` command to publish your library to the npm registry:
   ```bash
   npm publish
   ```

## Running unit tests

To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:

```bash
ng test
```

## Running end-to-end tests

For end-to-end (e2e) testing, run:

```bash
ng e2e
```

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

## Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
npm package: @slimreviews/slimreviews-widget
Description: Slim Reviews embeddable widget for collecting reviews.
Author: Slim Reviews Team
Latest version: 1.0.5

# @slimreviews/slimreviews-widget

Embeddable JavaScript widget for **Slim Reviews**, designed to help creators, small businesses, and projects collect meaningful feedback with minimal friction.

---

## Features

* Lightweight and easy to embed.
* Collects reviews directly from your website.
* Works with your Slim Reviews projects.
* Minimal setup required.

---

## Installation

Install via npm:

```bash
npm install @slimreviews/slimreviews-widget
```

Or yarn:

```bash
yarn add @slimreviews/slimreviews-widget
```

---

## Usage

Import the widget in your project:

```ts
import SlimReviewsWidget from '@slimreviews/slimreviews-widget';

// Initialize the widget
SlimReviewsWidget.init({
  projectId: 'YOUR_PROJECT_ID', // Required: your Slim Reviews project ID
  container: '#widget-container', // Optional: CSS selector where the widget should mount
});
```

Add a container in your HTML:

```html
<div id="widget-container"></div>
```

---

## Requirements

* You must have a **Slim Reviews project** to activate the widget.
* Works in modern browsers with ES6 support.

---

## Configuration

You can pass an options object to customize the widget:

| Option      | Type   | Description                           | Required |
| ----------- | ------ | ------------------------------------- | -------- |
| `projectId` | string | Your Slim Reviews project ID          | Yes      |
| `container` | string | CSS selector for the widget container | No       |

---

## License

MIT License. Free to use, modify, and distribute.

---

## Contact

For support, questions, or feedback, reach out to us:

* **Email:** [support@slimreviews.net](mailto:support@slimreviews.net)
* **Website / Contact Form:** [https://slimreviews.net/contact](https://slimreviews.net/contact)
npm package: @slimshady999/nestjs-package-starter
Description: NestJS npm package starter
Author: Sooraj
Latest version: 1.0.0

<h1 align="center"></h1>

<div align="center">
  <a href="http://nestjs.com/" target="_blank">
    <img src="https://nestjs.com/img/logo_text.svg" width="150" alt="Nest Logo" />
  </a>
</div>

<h3 align="center">NestJS npm Package Starter</h3>

<div align="center">
  <a href="https://nestjs.com" target="_blank">
    <img src="https://img.shields.io/badge/built%20with-NestJs-red.svg" alt="Built with NestJS">
  </a>
</div>

### Installation

1. Clone the repo
2. Run npm/yarn install

```bash
cd nestjs-package-starter
npm install
```

## Change Log

See [Changelog](CHANGELOG.md) for more information.

## Contributing

Contributions welcome! See [Contributing](CONTRIBUTING.md).

## Author

**John Biundo (Y Prospect on [Discord](https://discord.gg/G7Qnnhy))**

## License

Licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
npm package: @sling/artus-web
Description: Artus web.
Author: wangziling
Latest version: 0.0.56

# artus-web
Learn new things to improve myself.

`Artus`, `vue3`, `redis`, `mysql`, `mongodb`, and `Pnpm workspaces`.

# Prerequisites
Used `redis`, `mysql` and `mongodb - replicaSet`.

Please check `./server/app/frameworks/framework-web/models/README.md`.

And the related config is in file `./server/app/config/config.default.ts`.

# Steps.
```shell
pnpm i

pnpm run build

# (Not used yet, could ignore/jump up this step.) Windows. Initial mysql dbs.
set MYSQL_URI=mysql://root:123456@localhost:3306/test && npx prisma db push --schema ./app/frameworks/framework-web/models/mysql/schema.prisma

# Start or dev
pnpm run start
```