open-index/open-npm huggingface dataset:
npm package: @faster-crud/trpc
Description: tRPC adapter for @faster-crud
Latest version: 0.2.2

# @faster-crud/trpc

[![npm](https://img.shields.io/npm/v/@faster-crud/trpc?style=flat-square)](https://www.npmjs.com/package/@faster-crud/trpc)

tRPC router builder for @faster-crud — type-safe CRUD procedures.

## Install

```bash
npm install @faster-crud/core @faster-crud/trpc @trpc/server
```

## Usage

```ts
import { initTRPC } from '@trpc/server';
import { createCrudRouter } from '@faster-crud/trpc';
import { Post } from './post.entity';
import { postService } from './posts.service';

const t = initTRPC.create();
export const appRouter = t.router({
  posts: createCrudRouter(t, Post, postService),
});
```

## Documentation

Full docs at [github.com/bkmashiro/nest-faster-crud](https://github.com/bkmashiro/nest-faster-crud)

## Ecosystem

| Package | Description |
|---------|-------------|
| [`@faster-crud/core`](https://www.npmjs.com/package/@faster-crud/core) | Decorators and types |
| [`@faster-crud/nest`](https://www.npmjs.com/package/@faster-crud/nest) | NestJS controller factory |
| [`@faster-crud/typeorm`](https://www.npmjs.com/package/@faster-crud/typeorm) | TypeORM adapter |
| [`@faster-crud/prisma`](https://www.npmjs.com/package/@faster-crud/prisma) | Prisma adapter |
npm package: @faster-crud/typeorm
Description: TypeORM adapter for @faster-crud
Latest version: 0.2.2

# @faster-crud/typeorm

[![npm](https://img.shields.io/npm/v/@faster-crud/typeorm?style=flat-square)](https://www.npmjs.com/package/@faster-crud/typeorm)

TypeORM adapter for @faster-crud.

## Install

```bash
npm install @faster-crud/core @faster-crud/typeorm typeorm
```

## Usage

```ts
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository } from 'typeorm';
import { TypeOrmResourceService } from '@faster-crud/typeorm';
import { Post } from './post.entity';

@Injectable()
export class PostsService extends TypeOrmResourceService(Post) {
  constructor(@InjectRepository(Post) repo: Repository<Post>) {
    super(repo);
  }
}
```

## Documentation

Full docs at [github.com/bkmashiro/nest-faster-crud](https://github.com/bkmashiro/nest-faster-crud)

## Ecosystem

| Package | Description |
|---------|-------------|
| [`@faster-crud/core`](https://www.npmjs.com/package/@faster-crud/core) | Decorators and types |
| [`@faster-crud/nest`](https://www.npmjs.com/package/@faster-crud/nest) | NestJS controller factory |
| [`@faster-crud/typeorm`](https://www.npmjs.com/package/@faster-crud/typeorm) | TypeORM adapter |
| [`@faster-crud/prisma`](https://www.npmjs.com/package/@faster-crud/prisma) | Prisma adapter |