Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@qbobjx/core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qbobjx/core

Core runtime for OBJX: model metadata, columns, relations, typed query builder, and execution context contracts.

Source
npmnpm
Version
0.4.0
Version published
Maintainers
1
Created
Source

@qbobjx/core

Core runtime for OBJX: model metadata, columns, relations, typed query builder, and execution context contracts.

Install

npm install @qbobjx/core

Quick Usage

import { col, defineModel } from '@qbobjx/core';

export const Project = defineModel({
  table: 'projects',
  columns: {
    id: col.int().primary(),
    name: col.text(),
    tenantId: col.text().generated(),
  },
});

Plugin Authoring

@qbobjx/core also exports the public plugin contracts used by official and custom plugins.

import { definePlugin } from '@qbobjx/core';

export const snakeCasePlugin = definePlugin({
  name: 'snake-case-naming',
  hooks: {
    onModelDefine(context) {
      context.setColumnDbName('tenantId', 'tenant_id');
      context.setColumnDbName('createdAt', 'created_at');
    },
  },
});

onModelDefine runs during defineModel(...) after column inputs are resolved and before the final model metadata is frozen. Use it to inspect columnDefinitions, read existing dbName mappings with getColumnDbName(...), or apply naming conventions with setColumnDbName(...).

FAQs

Package last updated on 20 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts