open-index/open-npm huggingface dataset:
npm package: @prisma/studio-demo
Description: Demo deployments with sample datasets for Prisma Studio
Author: Siddhant
Latest version: 0.423.0

# Prisma Studio Demo Deployments

This repository holds all code to deploy a demo version of Studio to Now

### Deployment Rules

- The `master` branch is always deployed at [https://prisma.studio](https://prisma.studio)
- All other branches are deployed at https://<branchName>-prisma-studio.now.sh
- All pull requests to `develop` are deployed at https://<prNumber>-prisma-studio.now.sh

### Adding a new dataset/project

1. Create a new branch from `develop` and think of an all lowercase project name. This will serve as the project's ID.
2. Add the new project to `packages/demo/public/projects.html`. Duplicate one of the `<div class="project">`s and change content.
3. Create a new folder in `packages/demo/projects/` with its name being the project ID. Place your Prisma Schema inside.
4. In your `schema.prisma`, replace the `datasource` and `generator` blocks with the following (replace content inside `<>`):

```
generator client {
  provider      = "prisma-client-js"
  output        = "../../node_modules/.prisma/client/<project-id>"
  binaryTargets = ["rhel-openssl-1.0.x"]
}

datasource db {
  provider = "postgresql"
  url      = env("PROJECT_<PROJECT_ID>_URL")
}
```

5. Add an env var to Vercel with this exact name so deployments can work correctly.
6. Commit your changes to your branch, then open a pull request to `develop`, adding a reviewer.
7. Once all checks complete, you should be able to view your changes over at the URL Vercel deployed it to (there should be a comment on your PR)
npm package: @prisma/studio-preview
Description: Demo deployments with sample datasets for Prisma Studio
Author: Siddhant
Latest version: 0.340.0

# Prisma Studio Demo Deployments

This repository holds all code to deploy a demo version of Studio to Now

### Deployment Rules

- The `master` branch is always deployed at [https://prisma.studio](https://prisma.studio)
- All other branches are deployed at https://<branchName>-prisma-studio.now.sh
- All pull requests to `develop` are deployed at https://<prNumber>-prisma-studio.now.sh

### Adding a new dataset/project

1. Create a new branch from `develop`
2. Add the new project to `packages/preview/projects/index.json`. Use a unique ID, a name to be displayed, and optionally, a link to the dataset (ideally on the prisma/prisma-examples GitHub repo)
3. Create a new folder in `packages/preview/projects/` with its name being EXACTLY the same as the new project's ID you decided on in the last step.
4. Create a `packages/preview/projects/<idOfProject>/prisma/` folder and place the `schema.prisma` and the SQLite DB file inside. Name the SQLite file `dev.db`.
5. In the `schema.prisma`, replace the `datasource` and `generator` blocks with the following:

```
datasource db {
  provider = "sqlite"
  url      = "file:dev.db"
}

generator photon {
  provider = "prisma-client-js"
  output   = "./photon"
}
```

6. Commit your changes to your branch, then open a pull request to `develop`
7. Once all checks complete, you should be able to view your changes over at https://<prNumber>-prisma-studio.now.sh
   Change me
8. Once you verify that the dataset works, you can merge it into `develop`.
9. Merge `develop` to `master` to publish your changes to [https://prisma.studio](https://prisma.studio)
npm package: @prisma/templates
Description: [![trunk](https://github.com/prisma/templates-node/actions/workflows/trunk.yml/badge.svg)](https://github.com/prisma/templates-node/actions/workflows/trunk.yml)
Author: Prisma Data Inc.
Latest version: 0.25.4

# templates-node

[![trunk](https://github.com/prisma/templates-node/actions/workflows/trunk.yml/badge.svg)](https://github.com/prisma/templates-node/actions/workflows/trunk.yml)

Prisma [templates](https://github.com/prisma/prisma-schema-examples) packaged up for programmatic consumption.

[Documentation](https://paka.dev/npm/@prisma/templates)

## Development:

1. Install `sha1sum` library (for macOS via `brew install md5sha1sum`).
2. `yarn run build:gen`
3. `yarn dev`

## Testing

- `yarn test:db:up` to start test databases

## Creating a File Transformer

1. Create a file transformer module in `src/fileTransformers`
2. Export its contents in `src/fileTransformers/index_.ts`

That's it, it will now be run in the file transform stack. How? Look in the [code generator template code](https://github.com/prisma/templates-node/blob/0eba1d714087a49bbb4674b51f8ad5fa8c8fecb3/generator/cli/generate-type-script.ts#L421-L426).