Simfinity.js

GraphQL APIs from object types, with MongoDB or PostgreSQL
Visit site

About this project

I contribute to Simfinity.js, an open-source Node.js library for building database-backed GraphQL APIs from GraphQLObjectType definitions. It generates queries, CRUD mutations, relationships, filtering and pagination, while leaving room for application rules through hooks and query scopes.

Version 3.2 includes two database facades: @simtlix/simfinity-js for MongoDB/Mongoose and @simtlix/simfinity-postgres for PostgreSQL 15+. The PostgreSQL package uses pg and the shared runtime without depending on MongoDB or Mongoose. It is a separate adapter, not a way to run existing Mongoose models on SQL.

There is also an optional @simtlix/simfinity-mcp package for exposing selected GraphQL operations as MCP tools. Authentication still belongs to your application: it supplies trusted user context and decides which operations and records a caller may access.

The docs include runnable PostgreSQL and MongoDB starters. If you try it, I would be interested in feedback on relationship handling, the generated operations, and where you still need custom resolver code.

PA @PailletJuanPablo Maker on sideprojects.net View profile

Discussion · 0

Log in to join the discussion.