
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@anakz/backstage-plugin-library-check-backend
Advanced tools
Backstage.io Library Check plugin backend
Welcome to the library-check-backend backend plugin!
This plugin was created through the Backstage CLI
Add the plugin to your backend app:
cd packages/backend && yarn add @anakz/backstage-plugin-library-check-backend
Create new file at packages/backend/src/plugins/libraryCheck.ts:
// packages/backend/src/plugins/libraryCheck.ts
import { PluginEnvironment } from '../types';
import { Router } from 'express';
import {
DatabaseLibraryCheckStore,
createRouter,
} from '@anakz/backstage-plugin-library-check-backend';
export default async function createPlugin({
logger,
database,
config,
}: PluginEnvironment): Promise<Router> {
const db = await DatabaseLibraryCheckStore.create({
database: database,
});
return await createRouter({
logger,
database: db,
config,
});
}
Define the schedules for the plugin processor and provider on packages/backend/src/plugins/catalog.ts
// packages/backend/src/plugins/catalog.ts
// ...
builder.addEntityProvider(
// add a new provider entry, configure the schedule frequency as you wish
// initialDelay must be up to 15s to avoid conflicts
LibraryCheckProvider.fromConfig({
config: env.config,
envId: 'production',
logger: env.logger,
discovery: env.discovery,
schedule: env.scheduler.createScheduledTaskRunner({
initialDelay: {
seconds: 15,
},
frequency: {
minutes: 60,
},
timeout: {
minutes: 1,
},
}),
}),
// ...
)
// Add the new processor entries, and try to declare the LibraryCheckUpdater as the last in order.
builder.addProcessor(
// ...
LibraryCheckProcessor.fromConfig(env.config, {
discoveryService: env.discovery,
reader: env.reader,
logger: env.logger,
}),
// Other processors...
LibraryCheckUpdaterProcessor.fromConfig(env.config, {
discoveryService: env.discovery,
reader: env.reader,
logger: env.logger,
}),
// ...
);
Now add the plugin to your packages/backend/src/index.ts:
import libraryCheck from './plugins/libraryCheck';
// ...
const libraryCheckEnv = useHotMemoize(module, () => createEnv('libraryCheck'));
// ...
apiRouter.use('/library-check', await libraryCheck(libraryCheckEnv));
FAQs
Backstage.io Library Check plugin backend
We found that @anakz/backstage-plugin-library-check-backend demonstrated a not healthy version release cadence and project activity because the last version was released 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
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.