
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@overture-stack/lyric
Advanced tools
npm i @overture-stack/lyric
Import AppConfig and provider from @overture-stack/lyric module to initialize the provider with custom configuration:
import { AppConfig, provider } from '@overture-stack/lyric';
const appConfig: AppConfig = {
db: {
host: [INSERT_DB_HOST],
port: [INSERT_DB_PORT],
database: [INSERT_DB_NAME],
user:[INSERT_DB_USER],
password: [INSERT_DB_PASSWORD],
},
features: {
audit: {
enabled: [INSERT_AUDIT_ENABLED]
}
},
schemaService: {
url: [INSERT_LECTERN_URL],
},
logger: {
level: [INSERT_LOG_LEVEL],
},
};
const lyricProvider = provider(appConfig);
The onFinishCommit callback function is executed automatically when a commit event is completed. This function provides the ability to customize the behavior or perform any additional actions after the commit is finished, using the result of the commit operation.
Example:
const onFinishCommitCallback: (resultOnCommit: ResultOnCommit) => {
// Check if there are inserts, updates, or deletes
if (resultOnCommit.data) {
const { inserts, updates, deletes } = resultOnCommit.data;
// Log the results to the console
console.log(`Inserts: ${inserts.length}`);
console.log(`Updates: ${updates.length}`);
console.log(`Deletes: ${deletes.length}`);
}
// You can also perform additional custom actions here
// For example index the data, or make another API call
}
To use the onFinishCommit callback, it requires to be defined in the AppConfig object:
const appConfig: AppConfig = {
...// Other configuration
onFinishCommit: onFinishCommitCallback;
}
Use any of the resources available on provider on a Express server:
import express from 'express';
const app = express();
app.use('/submission', lyricProvider.routers.submission);
FAQs
Data Submission system
We found that @overture-stack/lyric demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.