
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@sqlrooms/project-config
Advanced tools
A central configuration and type definitions package that maintains base project configuration schemas and Zod schema definitions. It provides TypeScript types and interfaces along with essential constants and utilities used throughout the framework.
npm install @sqlrooms/project-config
# or
yarn add @sqlrooms/project-config
import {BaseProjectConfig} from '@sqlrooms/project-config';
// Create a new project configuration
const projectConfig: BaseProjectConfig = {
name: 'My SQL Project',
description: 'A data analysis project using SQLRooms',
version: '1.0.0',
settings: {
theme: 'dark',
// Other settings...
},
};
// Access configuration properties
console.log(projectConfig.name); // 'My SQL Project'
Project configuration is designed to be saved and restored between sessions. Here's how to use it with Zustand's persist middleware:
import {persist} from 'zustand/middleware';
import {
createProjectStore,
createProjectSlice,
} from '@sqlrooms/project-builder';
import {BaseProjectConfig} from '@sqlrooms/project-config';
// Create a store with persistence for configuration
const {useProjectStore} = createProjectStore(
persist(
(set, get, store) => ({
...createProjectSlice({
// Config is stored at the root level of state for persisting the app state
config: {
title: 'My Project',
// Other configuration properties
},
// Project object contains panels and runtime-only state
project: {
panels: {
// Panel definitions
},
},
})(set, get, store),
}),
{
name: 'project-config-storage',
// Only persist the configuration part of the state
partialize: (state) => ({
config: state.config,
}),
},
),
);
// Access the config in components
function ConfigComponent() {
// Config is accessed directly from state, not from state.project.config
const config = useProjectStore((state) => state.config);
return <div>{config.title}</div>;
}
import {LayoutConfig} from '@sqlrooms/project-config';
// Define a layout configuration
const layoutConfig: LayoutConfig = {
layout: 'grid',
panels: [
{
id: 'editor',
type: 'sql-editor',
position: {x: 0, y: 0, width: 6, height: 4},
},
{
id: 'results',
type: 'data-table',
position: {x: 0, y: 4, width: 6, height: 4},
},
],
};
// Use the layout configuration in your application
function renderLayout(config: LayoutConfig) {
// Implementation...
}
For more information, visit the SQLRooms documentation.
FAQs
Unknown package
We found that @sqlrooms/project-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.