{"id":42912,"library":"jscalpel-orm","title":"Jscalpel ORM","description":"jscalpel-orm is a lightweight JavaScript ORM library for object processing, version 0.2.0. It provides a simple API for mapping JavaScript objects to databases, with a focus on ease of use and minimal configuration. The library is distributed via npm and can be used in ES6 modules or directly in the browser via unpkg. As an early-stage package (v0.2), it may lack features of more mature ORMs like Sequelize or TypeORM, but offers a simpler alternative for small projects. Release cadence is not established yet.","status":"active","version":"0.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/ihtml5/scalpel","tags":["javascript","object","scalpel","processing"],"install":[{"cmd":"npm install jscalpel-orm","lang":"bash","label":"npm"},{"cmd":"yarn add jscalpel-orm","lang":"bash","label":"yarn"},{"cmd":"pnpm add jscalpel-orm","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default export, not named. Use default import syntax.","wrong":"import { JscalpelORM } from 'jscalpel-orm'","symbol":"JscalpelORM","correct":"import JscalpelORM from 'jscalpel-orm'"},{"note":"CommonJS default import, not named.","wrong":"const { JscalpelORM } = require('jscalpel-orm')","symbol":"JscalpelORM (CommonJS)","correct":"const JscalpelORM = require('jscalpel-orm')"},{"note":"Exposes global JscalpelORM on window.","wrong":"","symbol":"browser script","correct":"<script src=\"https://unpkg.com/jscalpel-orm@latest/dist/index.js\"></script>"}],"quickstart":{"code":"import JscalpelORM from 'jscalpel-orm';\n\n// Define a model\nconst User = JscalpelORM.define('User', {\n  id: { type: 'number', primaryKey: true },\n  name: { type: 'string' },\n  email: { type: 'string', unique: true }\n});\n\n// Create an instance\nconst user = User.build({ id: 1, name: 'Alice', email: 'alice@example.com' });\n\n// Save to database\nawait user.save();\n\n// Query all users\nconst users = await User.findAll();\nconsole.log(users);","lang":"typescript","description":"Defines a User model, creates an instance, saves it, and queries all users."},"warnings":[{"fix":"Pin exact version and test on upgrade.","message":"Alpha quality - API may change without notice.","severity":"gotcha","affected_versions":"<1.0.0"},{"fix":"Use a bundler like Webpack with Babel.","message":"No transpilation provided; may not work in older browsers without polyfills.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Read the source on GitHub.","message":"Documentation is minimal; refer to source code for advanced features.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.2.0':16 'altern':81 'api':21 'browser':55 'cadenc':86 'configur':37 'databas':27 'direct':52 'distribut':41 'earli':61 'early-stag':60 'eas':32 'es6':49 'establish':89 'featur':68 'focus':30 'javascript':9,24,91 'jscalpel':1,4 'jscalpel-orm':3 'lack':67 'librari':11,39 'lightweight':8 'like':73 'map':23 'matur':71 'may':66 'minim':36 'modul':50 'npm':43 'object':13,25,92 'offer':78 'orm':2,5,10,72 'packag':63 'process':14,94 'project':84 'provid':18 'releas':85 'scalpel':93 'sequel':74 'simpl':20 'simpler':80 'small':83 'stage':62 'typeorm':76 'unpkg':57 'use':34,47 'v0.2':64 'version':15 'via':42,56 'yet':90","created_at":"2026-06-05T16:57:15.907593+00:00","updated_at":"2026-06-05T16:57:15.907593+00:00","problems":[{"fix":"Use 'import JscalpelORM from 'jscalpel-orm'' instead of '{ JscalpelORM }'.","cause":"Using named import instead of default import.","error":"TypeError: JscalpelORM.define is not a function"},{"fix":"Ensure script tag is before your script or use import.","cause":"Script not loaded or loaded after usage.","error":"Uncaught ReferenceError: JscalpelORM is not defined"},{"fix":"Run 'npm install jscalpel-orm --save'.","cause":"Package not installed.","error":"Cannot find module 'jscalpel-orm'"}],"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/ihtml5/scalpel#readme","github":"https://github.com/ihtml5/scalpel","docs":null,"changelog":null,"pypi":null,"npm":"jscalpel-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}}