{"id":43532,"library":"pckg-orm","title":"pckg ORM","description":"A simple JavaScript ORM designed to work with the pckg framework. Version 0.0.5, early development. Provides entity/record/repository pattern for CRUD operations, supports REST APIs and HTTPQL queries. Key differentiator: lightweight, minimalistic, closely tied to pckg ecosystem. Not suitable for production use outside pckg.","status":"active","version":"0.0.5","language":"javascript","source_language":"en","source_url":"https://github.com/pckg/orm","tags":["javascript","package","frontend"],"install":[{"cmd":"npm install pckg-orm","lang":"bash","label":"npm"},{"cmd":"yarn add pckg-orm","lang":"bash","label":"yarn"},{"cmd":"pnpm add pckg-orm","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Must use subpath import from src/orm; package has no default export.","wrong":"import { Entity } from 'pckg-orm'","symbol":"Entity","correct":"import { Entity } from 'pckg-orm/src/orm'"},{"note":"ESM-only package; requires import syntax.","wrong":"const Record = require('pckg-orm').Record","symbol":"Record","correct":"import { Record } from 'pckg-orm/src/orm'"},{"note":"Entity is a named export, not default.","wrong":"import Entity from 'pckg-orm/src/orm'","symbol":"Entity","correct":"import { Entity } from 'pckg-orm/src/orm'"}],"quickstart":{"code":"import { Entity, Record } from 'pckg-orm/src/orm';\n\nclass Country extends Record {\n  constructor(props) {\n    super(props);\n    this.$entity = Countries;\n  }\n}\n\nclass Countries extends Entity {\n  constructor(repository) {\n    super(repository);\n    this.$record = Country;\n    this.$path = 'countries';\n  }\n}\n\nconst countries = new Countries();\ncountries.where('continent', 'EU').limit(10).all().then(rows => console.log(rows));","lang":"javascript","description":"Defines Record and Entity classes for a 'countries' resource, then fetches the first 10 European countries."},"warnings":[{"fix":"Use correct subpath import: import { Entity } from 'pckg-orm/src/orm'","message":"Import paths use 'pckg-orm/src/orm' instead of package root.","severity":"breaking","affected_versions":"<=0.0.5"},{"fix":"Use import syntax or .mjs extension.","message":"Requiring the package with CommonJS will fail (ESM-only).","severity":"gotcha","affected_versions":"<1.0.0"},{"fix":"Lock version and expect breaking changes.","message":"Package is in early development (v0.0.5) and API may change without notice.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Create subclasses as shown in the README.","message":"Entity and Record must be extended; they are abstract-like classes.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.0.5':15 'api':26 'close':34 'crud':22 'design':7 'develop':17 'differenti':31 'earli':16 'ecosystem':38 'entity/record/repository':19 'framework':13 'frontend':48 'httpql':28 'javascript':5,46 'key':30 'lightweight':32 'minimalist':33 'oper':23 'orm':2,6 'outsid':44 'packag':47 'pattern':20 'pckg':1,12,37,45 'product':42 'provid':18 'queri':29 'rest':25 'simpl':4 'suitabl':40 'support':24 'tie':35 'use':43 'version':14 'work':9","created_at":"2026-06-05T17:00:15.464893+00:00","updated_at":"2026-06-05T17:00:15.464893+00:00","problems":[{"fix":"Create a custom declaration file or use // @ts-ignore.","cause":"Missing TypeScript declarations; package has no types.","error":"Cannot find module 'pckg-orm' or its corresponding type declarations."},{"fix":"Use 'pckg-orm/src/orm' in the import path.","cause":"Import uses package root instead of subpath.","error":"ERR_MODULE_NOT_FOUND: Unable to import 'pckg-orm'"},{"fix":"Ensure import: import { Entity, Record } from 'pckg-orm/src/orm'","cause":"Forgot to import Entity/Record from the correct path.","error":"Uncaught TypeError: Class extends value undefined is not a constructor or null"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pckg/orm","github":"https://github.com/pckg/orm","docs":null,"changelog":null,"pypi":null,"npm":"pckg-orm","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}