
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
@marimo-team/codemirror-sql
Advanced tools
A CodeMirror extension for SQL linting and visual gutter indicators.
npm install @marimo-team/codemirror-sql
# or
pnpm add @marimo-team/codemirror-sql
import { sql, StandardSQL } from '@codemirror/lang-sql';
import { basicSetup, EditorView } from 'codemirror';
import { sqlExtension, cteCompletionSource } from '@marimo-team/codemirror-sql';
const schema = {
users: ["id", "name", "email", "active"],
posts: ["id", "title", "content", "user_id"]
};
const editor = new EditorView({
doc: "SELECT * FROM users WHERE active = true",
extensions: [
basicSetup,
sql({
dialect: StandardSQL,
schema: schema,
upperCaseKeywords: true
}),
StandardSQL.language.data.of({
autocomplete: cteCompletionSource,
}),
sqlExtension({
linterConfig: {
delay: 250 // Validation delay in ms
},
gutterConfig: {
backgroundColor: "#3b82f6", // Current statement color
errorBackgroundColor: "#ef4444", // Error highlight color
hideWhenNotFocused: true
},
enableHover: true,
hoverConfig: {
schema: schema,
hoverTime: 300,
enableKeywords: true,
enableTables: true,
enableColumns: true
}
})
],
parent: document.querySelector('#editor')
});
See the demo for a full example.
# Install dependencies
pnpm install
# Run tests
pnpm test
# Run demo
pnpm dev
Apache 2.0
FAQs
CodeMirror plugin for SQL
The npm package @marimo-team/codemirror-sql receives a total of 4,090 weekly downloads. As such, @marimo-team/codemirror-sql popularity was classified as popular.
We found that @marimo-team/codemirror-sql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.