open-index/open-npm huggingface dataset:
npm package: @fzznk/form-tools
Description: ## 0. Building and Publishing
Latest version: 0.0.9

# FormTools

## 0. Building and Publishing

* `ng build form-tools`
* from inside `dist/form-tools` run `npm publish` 

## 1. FormBaseComponent

### 1.1. Purpose

Use this Component as a base for Components that use Reactive Forms to automate the update of form values on data changes and vice versa.

### 1.2. Installation

`npm install @fzznk/form-tools`

`import {FormTools} from '@fzznk/form-tools'`

### 1.3. Usage

Create your component that contains the reactive form in `form: FormGroup`, extending `FormBaseComponent`:

`export class MyFormComponent extends FormBaseComponent`

Don´t forget to call `super()` in your constructor.

Pass data to the Component as `[dataObject]` and make sure that all form controls are named identically as the object properties they should correspond to.

Include `<button>`-Tags with `(click)="save()"` and `(click)="create()"` and `(click)="delete()"` to trigger events and process them in the parent component as follows:

`(createObj)="create($event)"`,
`(patchObj)="update($event)"` and 
`(deleteObj)="delete($event)"`

You can also use `(click)="saveOrCreate()"` which decides bases on wheter a positive id of the object exists if the save- or the create-signal should be emitted.

Or, alternatively, implement your own `save()`, `create()` and `delete()` methods in your specific component, making sure to call `super.save()`,
`super.create()` and `super.delete()` as the first statement in your methods to ensure the object is updated before being processed.
 
Lastly, by setting `[debug]="true"` all form and dataObject updates are logged to console.

## 2. SetFocusDirective

import `FormsToolModule` and add `libSetFocus` to element in order to focus it on load.

## 3. EnumToArrayPipe

use to loop over enum key/value pairs to create select options for input forms i.e. as
`<option *ngFor="let o of CO | enumToArray" [value]="o.index">{{o.name}}</option>`

## 4. ShowBooleanValue

use to display boolean value as x or check

`<lib-show-boolean-value [value]="value"></lib-show-boolean-value>`
npm package: @fzznk/reusable-modals
Description: This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.11.
Latest version: 0.0.3

# ReusableModals

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.2.11.

## Code scaffolding

Run `ng generate component component-name --project reusable-modals` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project reusable-modals`.
> Note: Don't forget to add `--project reusable-modals` or else it will be added to the default project in your `angular.json` file. 

## Build

Run `ng build reusable-modals` to build the project. The build artifacts will be stored in the `dist/` directory.

## Publishing

After building your library with `ng build reusable-modals`, go to the dist folder `cd dist/reusable-modals` and run `npm publish`.

## Running unit tests

Run `ng test reusable-modals` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
npm package: @g-1/boilerplate
Description: Clean boilerplate application using the @g-1/core framework
Latest version: 0.1.0

# @g-1/boilerplate

A clean, production-ready API boilerplate built with the @g-1/core framework.

## Features

- 🚀 Built on Cloudflare Workers for edge performance
- 🔐 Authentication with better-auth
- 📊 Database integration with Drizzle ORM
- 🛡️ Comprehensive security middleware
- 📝 OpenAPI documentation with Scalar
- ⚡ Rate limiting and request validation
- 🧪 Testing setup with Vitest
- 📦 Modular architecture with @g-1/templates

## Quick Start

1. **Install dependencies:**
   ```bash
   bun install
   ```

2. **Set up environment variables:**
   ```bash
   cp .env.example .env
   # Edit .env with your configuration
   ```

3. **Generate authentication secret:**
   ```bash
   bun run auth:generate
   ```

4. **Set up database:**
   ```bash
   bun run db:generate
   bun run db:migrate
   ```

5. **Start development server:**
   ```bash
   bun run dev
   ```

## Environment Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `BETTER_AUTH_SECRET` | Secret key for authentication (min 32 chars) | Yes |
| `BETTER_AUTH_URL` | Base URL for auth callbacks | Yes |
| `RESEND_API_KEY` | API key for email service | No |
| `FROM_EMAIL` | Email address for outgoing emails | No |

## Scripts

- `bun run dev` - Start development server
- `bun run build` - Build for production
- `bun run deploy` - Deploy to Cloudflare Workers
- `bun run test` - Run tests
- `bun run lint` - Lint code
- `bun run db:generate` - Generate database migrations
- `bun run db:migrate` - Apply database migrations

## Architecture

This boilerplate uses the @g-1/core framework which provides:

- **Core Framework** (`@g-1/core`): Router, middleware, utilities
- **Templates** (`@g-1/templates`): Pre-built auth, database, and API routes
- **Utilities** (`@g-1/util`): Shared utility functions

## Deployment

1. **Configure Cloudflare:**
   ```bash
   bun run cf:login
   ```

2. **Set up D1 database:**
   ```bash
   wrangler d1 create g1-api-db
   # Update wrangler.toml with database_id
   ```

3. **Set up KV namespace:**
   ```bash
   wrangler kv:namespace create "MY_API_PROJECT_KV_AUTH"
   # Update wrangler.toml with namespace id
   ```

4. **Deploy:**
   ```bash
   bun run deploy
   ```

## License

MIT
npm package: @g-1/example
Description: Example application demonstrating the `@g-1/core` framework
Latest version: 0.1.3

# @g-1/example

A complete example application demonstrating how to build production-ready APIs with the `@g-1/core` framework.the @g-1/core framework.

## Features

- 🚀 Built on Cloudflare Workers for edge performance
- 🔐 Authentication with better-auth
- 📊 Database integration with Drizzle ORM
- 🛡️ Comprehensive security middleware
- 📝 OpenAPI documentation with Scalar
- ⚡ Rate limiting and request validation
- 🧪 Testing setup with Vitest
- 📦 Modular architecture with @g-1/templates

## Quick Start

1. **Install dependencies:**
   ```bash
   bun install
   ```

2. **Set up environment variables:**
   ```bash
   cp .env.example .env
   # Edit .env with your configuration
   ```

3. **Generate authentication secret:**
   ```bash
   bun run auth:generate
   ```

4. **Set up database:**
   ```bash
   bun run db:generate
   bun run db:migrate
   ```

5. **Start development server:**
   ```bash
   bun run dev
   ```

## Environment Variables

| Variable | Description | Required |
|----------|-------------|----------|
| `BETTER_AUTH_SECRET` | Secret key for authentication (min 32 chars) | Yes |
| `BETTER_AUTH_URL` | Base URL for auth callbacks | Yes |
| `RESEND_API_KEY` | API key for email service | No |
| `FROM_EMAIL` | Email address for outgoing emails | No |

## Scripts

- `bun run dev` - Start development server
- `bun run build` - Build for production
- `bun run deploy` - Deploy to Cloudflare Workers
- `bun run test` - Run tests
- `bun run lint` - Lint code
- `bun run db:generate` - Generate database migrations
- `bun run db:migrate` - Apply database migrations

## Architecture

This boilerplate uses the @g-1/core framework which provides:

- **Core Framework** (`@g-1/core`): Router, middleware, utilities
- **Templates** (`@g-1/templates`): Pre-built auth, database, and API routes
- **Utilities** (`@g-1/util`): Shared utility functions

## Deployment

1. **Configure Cloudflare:**
   ```bash
   bun run cf:login
   ```

2. **Set up D1 database:**
   ```bash
   wrangler d1 create g1-api-db
   # Update wrangler.toml with database_id
   ```

3. **Set up KV namespace:**
   ```bash
   wrangler kv:namespace create "MY_API_PROJECT_KV_AUTH"
   # Update wrangler.toml with namespace id
   ```

4. **Deploy:**
   ```bash
   bun run deploy
   ```

## License

MIT