
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
@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
The npm package @sqlrooms/project-config receives a total of 409 weekly downloads. As such, @sqlrooms/project-config popularity was classified as not popular.
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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.