bases VS Prisma

Compare bases vs Prisma and see what are their differences.

bases

Hosts TSConfigs to extend in a TypeScript app, tuned to a particular runtime environment (by tsconfig)

Prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB (by prisma)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
bases Prisma
13 444
5,650 37,241
3.7% 0.9%
7.6 9.9
14 days ago 8 days ago
TypeScript TypeScript
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bases

Posts with mentions or reviews of bases. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-18.
  • Configuring Jest for Typescript Unit Tests
    2 projects | dev.to | 18 Nov 2023
    We will install ready-to-use Typescript base configurations instead of starting from scratch. In this article, we will use Typescript base configurations for node version 20. If you are using a different version of node, visit the tsconfig bases docs to find out what you need. You can also create a Typescript configuration file with settings that work for you.
  • TSConfig Applier Extension :)
    2 projects | /r/vscode | 28 Sep 2023
    This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration
  • The hardest thing in Typescript for me is...
    2 projects | /r/typescript | 25 May 2023
    Steal from this repo: https://github.com/tsconfig/bases/blob/main/bases/next.json
  • 🎓 Monorepo College Lecture 2: Build Me Up Buttercup
    6 projects | dev.to | 9 Apr 2023
    I personally am a big advocate for writing the least amount of tsconfig possible, and the tsconfig/bases package serves as a great source for getting tsconfig templates.
  • Use Mocha instead of Jest and boost your tests speed
    1 project | /r/javascript | 10 Feb 2023
    Possibly depends on your tsconfig. We use the recommended base configs from here https://github.com/tsconfig/bases
  • Achieving end-to-end type safety in a modern JS GraphQL stack
    9 projects | dev.to | 24 Nov 2022
    A tsconfig.json preset that ensures type safety;
  • Create a NodeJS Boilerplate with Typescript
    2 projects | dev.to | 14 Jul 2022
    The same configuration is also available for other nodejs versions like 14 and 12.
  • Converting your vanilla Javascript app to TypeScript
    5 projects | dev.to | 9 May 2022
    After installing, we also need to set up a basic tsconfig.json file for how we want tsc to behave with our app. We will use one of the recommended tsconfig files here: https://github.com/tsconfig/bases#centralized-recommendations-for-tsconfig-bases. This contains a list of community recommended configs depending on your app type. We’re using Node 16 and want to be extremely strict on the first pass to clean up any bad code habits and enforce some consistency. We’ll use the one located: https://github.com/tsconfig/bases/blob/main/bases/node16-strictest.combined.json.
  • Possibly moving from JS to TS - have a few questions
    1 project | /r/typescript | 3 Apr 2022
    You'll need @typescript-eslint/parser to get it working with eslint, then I would add @typescript-eslint/recommended as a plugin, then add prettier-eslint for formatting. What's more important is having a really good tsconfig file, I would recommend extending something from https://github.com/tsconfig/bases
  • How to Set Up a Node.js Project with TypeScript
    11 projects | dev.to | 26 Jan 2022
    The above configuration file extends the base configuration provided by the TypeScript team for Node.js v16. Additional options or overrides may be included through the compilerOptions property. It also specifies that all the files in the src directory should be included in the program, but everything in the node_modules directory is skipped entirely. Both the include and exclude properties support glob patterns.

Prisma

Posts with mentions or reviews of Prisma. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-29.
  • A Software Engineer's Tips and Tricks #1: Drizzle
    3 projects | dev.to | 29 Apr 2024
    In the world of software development, there are two kinds of developers: those who have never had to complain about ORMs and those who have actually used them. Whether it’s Django ORM for Python, Active Record for Ruby, GORM for Golang, Doctrine for PHP, or Prisma for TypeScript, a common issue persists: writing simple queries is straightforward, but constructing complex or optimized queries can take hours, if not days.
  • Stories Behind ZenStack V2!
    3 projects | dev.to | 29 Apr 2024
    Support for a Union type #2505
  • Deploy Full-Stack Next.js T3App with Cognito and Prisma using AWS Lambda
    4 projects | dev.to | 15 Apr 2024
    generator client { provider = "prisma-client-js" binaryTargets = ["native", "rhel-openssl-1.0.x"] } datasource db { provider = "postgresql" // NOTE: When using mysql or sqlserver, uncomment the @db.Text annotations in model Account below // Further reading: // https://next-auth.js.org/adapters/prisma#create-the-prisma-schema // https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#string url = env("DATABASE_URL") } model Post { id Int @id @default(autoincrement()) name String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt createdBy User @relation(fields: [createdById], references: [id]) createdById String @@index([name]) } // ... rest of the schema
  • End-To-End Polymorphism: From Database to UI, Achieving SOLID Design
    2 projects | dev.to | 28 Mar 2024
    Unfortunately Prisma hasn’t supported polymorphism yet. As such, you can't use inheritance to model the entity in the same way as in your programming language, as depicted in the above class diagram. The good news is that we could intimate it using table inheritance to imitate it.
  • Next.js App Router Course
    1 project | dev.to | 28 Mar 2024
    In this project I am manually declaring the data types. For better type-safety, use Prisma, which automatically generates types based on your database schema.
  • Next.js 14: Fetching Data
    1 project | dev.to | 22 Mar 2024
    When you're creating a full-stack application, you'll also need to write logic to interact with your database. For relational databases like Postgres, you can do this with SQL, or an ORM like Prisma.
  • Utilizando Testcontainers para Testes de Integração com NestJS e Prisma ORM
    4 projects | dev.to | 16 Mar 2024
  • Building an Admin Console With Minimum Code Using React-Admin, Prisma, and Zenstack
    5 projects | dev.to | 11 Mar 2024
    Prisma is a modern TypeScript-first ORM that allows you to manage database schemas easily, make queries and mutations with great flexibility, and ensure excellent type safety.
  • How to add Passkey Login to Next.js using NextAuth and Hanko
    5 projects | dev.to | 4 Mar 2024
    Prisma
  • Taming cross-service database transactions in NestJS with AsyncLocalStorage
    2 projects | dev.to | 21 Feb 2024
    There have been multiple feature requests to add native support for AsyncLocalStorage to Prisma, but they haven't been met with much enthusiasm from the maintainers. Some people solved it by extending and overriding the client (which is arguably prone to breaking with updates).

What are some alternatives?

When comparing bases and Prisma you can also consider the following projects:

node-express-boilerplate - A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose

Knex - A query builder for PostgreSQL, MySQL, CockroachDB, SQL Server, SQLite3 and Oracle, designed to be flexible, portable, and fun to use.

tsconfig-applier - Welcome to `tsconfig-applier`! This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration

Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

piscina - A fast, efficient Node.js Worker Thread Pool implementation

TypeORM - ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms.

Bee-Queue - A simple, fast, robust job/task queue for Node.js, backed by Redis.

Mongoose - MongoDB object modeling designed to work in an asynchronous environment.

anvil-ts-upgrade-example - Example repository for Javascript to TypeScript upgrade blog post

MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.

volta - Volta: JS Toolchains as Code. âš¡

lucid - AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more