npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@telaclaims-tech/prisma-package

v1.0.142

Published

prisma-package simplifies database management across microservices at Telaclaims by maintaining configurations in one place and integrating with Prisma for efficient and secure SQL database access.

Readme

Prisma-package

Prisma-package is an npm package that simplifies database management across different microservices at Telaclaims. With Prisma-package, you can maintain database configurations and connections in one place and easily consume them in the rest of your services. Its integration with Prisma makes it ideal for efficiently and securely accessing and manipulating SQL databases.

Installation

You can install prisma-package using npm:

npm install @telaclaims-tech/prisma-package

Steps to generate a new package version

Right now the prisma package is just a mirror of the database generated models from the sequelize models migrated to the database. To maintain syncronization between the models and the prisma package we need to proceed with some specified steps:

  1. Pull all the new changes from an updated database using npm run db:pull. This database must have the completed process related to the latest migrations run to pull the new schemas and structures
  2. Make sure and check that prisma/schema.prisma has all the changes you need (you can use the diff tool before make the commit)
  3. Push the changes to the repository making a commit to your branch or to master.
  4. Run the script npm run publish-pkg to make the needed changes to the version and publish the package.
  5. After running the script a new package version should be published. You can check it on npm or try pull the new version on your service/project

Usage

To use Prisma-package in your project, you can import it as follows:

import Prisma from "@telaclaims-tech/prisma-package";

const { prisma } = await Prisma.createContext();

Once you have imported the package and created a context, you can use its functions to manage your database configurations and connections.

Example

Here is an example of how you can use prisma-package to manage your database configurations and connections:

const { prisma } = await Prisma.createContext();

const users = await prisma.user.findMany();

In this example, we create a context using the createContext function and then use the prisma object to query the database and retrieve a list of users.

Please note that you will need to have a .env file with the DATABASE_URL connection variable in order to use prisma-package.

Please note that it is important to keep your Prisma schema, models, and migrations up-to-date with your database. You can use the prisma migrate dev command to generate and apply migrations automatically based on changes to your schema. You can also use the prisma generate command to generate updated Prisma client code based on changes to your schema.

Scripts

Prisma-package provides two scripts that can be used to manage your Prisma schema and models:

db:introspect

The db:introspect script allows you to pull the latest schema from your database and update your Prisma schema accordingly. This is useful when you have made changes to your database schema that are not reflected in your Prisma schema.

To run the db:introspect script, simply run the following command:

npm run db:introspect

This will pull the latest schema from your database and update your Prisma schema accordingly.

db:generate

The db:generate script allows you to generate the latest Prisma models based on your Prisma schema. This is useful when you have made changes to your Prisma schema that require updated models.

To run the db:generate script, simply run the following command:

npm run db:generate

This will generate the latest Prisma models based on your Prisma schema.

License

Prisma-package is licensed under the MIT License.