npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ovotech/backstage-plugin-confluence-backend

v0.0.15

Published

This plugin integrates Confluence documents to Backstage' search engine.

Downloads

520

Maintainers

jamesg-kaluzajamesg-kaluzandoolan360ndoolan360chen-kaluzachen-kaluzabrooke-mbrooke-mdana-kaluzadana-kaluzasambssambsbisongeebisongeeranarajput123ranarajput123ramanan-kaluzaramanan-kaluzatimothy.ajisafetimothy.ajisafemnolan.kaluzamnolan.kaluzaovonicktunstallovonicktunstalljadedarkojadedarkothomas.bingovothomas.bingovolesteslestesgraemefgraemefrui-alves-kaluzarui-alves-kaluzachris.clarkzzzchris.clarkzzzsallyemersonsallyemersonvigneshwaran.kalidvigneshwaran.kalidanuprasannaanuprasannadvoroniuc-ovodvoroniuc-ovotom.mottram.kaluzatom.mottram.kaluzakaluza-lckaluza-lcrafolo78rafolo78kristenkelly_kaluzakristenkelly_kaluzakrjjmkrjjmjensraaby-ovojensraaby-ovoeoinkellyeoinkellyranjithanatarajranjithanatarajdickensfandickensfanalexbkaluzaalexbkaluzaarturpolianskyiarturpolianskyishashankkushwahashashankkushwahasowruvadhanasekarsowruvadhanasekarkgouldkgouldds-ovods-ovovolodymyr-viniarvolodymyr-viniarazaspenkoazaspenkoedgranauedgranauovo-venkatovo-venkatmilitsa_tsvetkovamilitsa_tsvetkovachintogtokhchintogtokhjac-hughesjac-hughesmikaelgiacominikaluzamikaelgiacominikaluzaolikaluzaolikaluzasimon.pettysimon.pettyrenimihaylovarenimihaylovakaluza-billing-coordinatorkaluza-billing-coordinatormicael-camposmicael-camposstuharv-ovostuharv-ovosuttonkaluzasuttonkaluzaradinadinevaradinadinevas.slotskyi-ovos.slotskyi-ovolucafrancesclucafrancescmfiialko-ovomfiialko-ovolyuboslav.lyubenov.ovolyuboslav.lyubenov.ovocaal-botcaal-botpauldanielrichardpauldanielrichardrafal-macrafal-mactokict2tokict2borislav-draganov-ovoborislav-draganov-ovoowen1111owen1111a1nsleya1nsleymattbarkwaymattbarkwayirina.dimitriuirina.dimitriupuzzledbythewebpuzzledbythewebpaul.gallagherpaul.gallaghermike.hollowaymike.hollowaypedro.caldeirapedro.caldeiraharrisonbaxterharrisonbaxterrob.desboisrob.desboissophiar27sophiar27ion.nasuion.nasumanoj-ovomanoj-ovojeffer_ovojeffer_ovobohdan-kozeremabohdan-kozeremaryan.lee1ryan.lee1zolegovozolegovopablomuro-ovotechpablomuro-ovotechirena3888irena3888arpad.fesis.ovoarpad.fesis.ovopkoretsovopkoretsovomarknreynoldsmarknreynoldsgabriel.hulubeigabriel.hulubeijnysevillajnysevillapallaitpallaitmableyipmableyipshonnguenshonnguenik1004kaluzaik1004kaluzakseniya.belevichkseniya.belevichwillshawmediawillshawmediajoewhittlesjoewhittlesrachelknightkaluzarachelknightkaluzaphilip.fol.ovophilip.fol.ovozach-smith-kzazach-smith-kzaphala.kantanphala.kantanmikitadzianisevichmikitadzianisevichiain.rawson.ovoiain.rawson.ovokantan_m_rutterkantan_m_rutterruhi-choudhury-kaluzaruhi-choudhury-kaluzacohen990-ovocohen990-ovoandrew-brook-radandrew-brook-radsean-kantansean-kantangeorge.anthonygeorge.anthonyovoxovoxeloisechilverseloisechilverskaluzajianzukaluzajianzumikemchughmikemchughtrickkaluzatrickkaluzadavid.ovodavid.ovojubriljubrilsophiesillmanovosophiesillmanovoemmadavidsemmadavidsharry.faulknerharry.faulknerwillcorrigan-ovowillcorrigan-ovoedvinas.ovoedvinas.ovojadamiec-ovojadamiec-ovocrektekcrektekandrewinci-devandrewinci-devmbartish_ovombartish_ovosaamiyayousufsaamiyayousufveljko.popovicveljko.popovicvipul_vkvipul_vkcenkovic_ovocenkovic_ovozoelanhamzoelanhampedro.costa.kaluzapedro.costa.kaluzaekeith-kaluzaekeith-kaluzaiharea-ovoiharea-ovogracydegracydemihaidavidovomihaidavidovokupxckupxcwill.crickwill.crickandreiracasan-ovoandreiracasan-ovokim-wysocki-ovokim-wysocki-ovooep-accounts-botoep-accounts-botfiloseovofiloseovotombolineptombolinepnick.longnick.longmorris27skymorris27skylaurawadylaurawadydaniel-billing-foundationsdaniel-billing-foundationscallumdenbycallumdenbyabilash999abilash999tigranargittigranargitkelemensanyikelemensanyiwarren-ovowarren-ovocatalin.andreicatalin.andreibilaal-kaluzabilaal-kaluzajacktreblejacktreblenish1406nish1406hentielouwhentielouwdtheasby-kaluzadtheasby-kaluzaovo.backstage.adminsovo.backstage.adminsdlaird-ovodlaird-ovogarylaikaluzagarylaikaluzarsh-ovorsh-ovogabrielngovogabrielngovorobert-g-jrobert-g-jdarinakulishovodarinakulishovotommaso.brunotommaso.brunodjmelonzdjmelonzjamieovojamieovoluke.parsons.kaluzaluke.parsons.kaluzaolliebatchelorolliebatchelormikecsmith-ovomikecsmith-ovogordokgordokandymay44andymay44mark-b-ovomark-b-ovobrianbroughtonbrianbroughtonmaricel-ovomaricel-ovotc-kaluzatc-kaluzaiuna4eiuna4efulvio.ovofulvio.ovochris.brookeschris.brookesivan.mihov-ovoivan.mihov-ovoaleksandyraleksandyrmishabrumlmishabrumlmarkwood23markwood23lilbyteltdlilbyteltdfraserhamiltonovofraserhamiltonovothomas.finchthomas.finchbenjamin.goldingbenjamin.goldingmosman128mosman128wjbenfoldwjbenfoldovo-markswafferovo-markswafferjcholewajcholewabenaston13benaston13bookings-teambookings-teamvitalii_khudenkovitalii_khudenkoandbrssandbrssezio-intravaia-ovoezio-intravaia-ovostevendiplockstevendiplockgeorgexcollinsgeorgexcollinsshnistshnistmaieutiquermaieutiquerorion-botorion-botkingfruit85kingfruit85caolan.derrycaolan.derrystefan-dospinescu-ovostefan-dospinescu-ovobare7aovobare7aovojlucktayjlucktaylewisdick-ovolewisdick-ovophil-pinkowskiphil-pinkowskirekaelek-ovorekaelek-ovokaluziankaluziandyl349dyl349bizval-botbizval-botdangrebovicdangrebovicmwidurekmwidurekraluzaraluzabrettburman-codebrettburman-coderichard-mounterrichard-mountermiguel-catarinomiguel-catarinojrdavenportjrdavenportoeptariffsoeptariffsmikethorpe-ovomikethorpe-ovodavekaluzadavekaluzatarlingovotarlingovomesh00mesh00jthomasovojthomasovopropspropsadam-mcdevittadam-mcdevittvslepkanvslepkanmelcbuckovmelcbuckovdelaluzadelaluzarafael_kaluzarafael_kaluzararaujo-ovoraraujo-ovozyuriizyuriimarcuskiellymarcuskiellymichaelwheelermichaelwheelerxenjkexenjkesulgee.kimsulgee.kimcifdsocifdsoliam-chambersliam-chambersr0bturnerr0bturnerveselin.stamenovveselin.stamenovadamblance-kaluzaadamblance-kaluzakathryn.allankathryn.allanlewrightlewrightfriendigofriendigoovo-jamesovo-jamesovo-dcovo-dcsamrumley88samrumley88t.vytrykusht.vytrykushmetering-reads-health-botmetering-reads-health-botkuwotukuwotudarren_thomas_ovodarren_thomas_ovolughinolughinojchoskinsjchoskinsovotech-identityovotech-identityjamesnoble1jamesnoble1danmalydanmalyvasil.dininskivasil.dininskiandy-heywood-ovoandy-heywood-ovotom.harrison-ovotom.harrison-ovocristinapetrovcristinapetrovk-fernandezk-fernandezvukovovukovocarolinelywoodcarolinelywoodprtn-ovoprtn-ovom_healdm_healdlaurierwlaurierwcsillabarnacsillabarnamarina-ovomarina-ovojennyunchanjennyunchanpaceteamkaluzapaceteamkaluzatrading-and-dispatchtrading-and-dispatchpkaripkariretail-payg-techretail-payg-techcwkaluzacwkaluzaaccrecovoaccrecovolenardprattovolenardprattovoesra.kayaesra.kayaovo.trading.techovo.trading.techsimonmclean-ovosimonmclean-ovoqe-teamqe-teamjonnyleakaluzajonnyleakaluzaovotech-smart-thermostatovotech-smart-thermostatscott-thomson239scott-thomson239laranjoeduardolaranjoeduardoaga-ovoaga-ovogregshielkaluzagregshielkaluzarise-teamrise-teamnevenablagoevanevenablagoevascdfscdfandrewjtnandrewjtnmbrignallmbrignallronald.nsabiyeraronald.nsabiyerajcdclarkjcdclarkengagement-insightsengagement-insightsaskomaroaskomaroovo_steveovo_stevermcnovormcnovofreddybushboyfreddybushboyovo-aarongibbisonovo-aarongibbisonmadalinadulhacmadalinadulhacvcheban-ovovcheban-ovogordonmartingordonmartinievgen-paliichuk-ovoievgen-paliichuk-ovofahedarshadfahedarshadellafutkowskaellafutkowskachrisfordkaluzachrisfordkaluzajameswelshkaluzajameswelshkaluzapetro.pavlenkopetro.pavlenkovzahakailovzahakailomwzmwzdominicboston-kaluzadominicboston-kaluzajoepurnell-ovojoepurnell-ovoradhika-bijibillaradhika-bijibillag-tibbsg-tibbsjagreenwood1jagreenwood1vcobzaruvcobzarudwfullertondwfullertonper.linnettper.linnettedpatrick-ovoedpatrick-ovomattgrayovomattgrayovokimnilkimnilbenvaughanjonesbenvaughanjonessamwestsamwestmtardugno-ovomtardugno-ovogjain-npm-ovogjain-npm-ovoalexvicolovoalexvicolovorparkhomchukrparkhomchukweiliangc3weiliangc3mykola.pmykola.povo-joshovo-joshdavid.chellapah.ovodavid.chellapah.ovofranciscodiasovofranciscodiasovovmaryvmarya.calderwooda.calderwoodjamesbaumjamesbaumretrojetpacksretrojetpackssamcooper720xsamcooper720xlebaptistelebaptisteiovana.pavloviciiovana.pavlovicitom.shermantom.shermanmyovo-self-serve-service-accountmyovo-self-serve-service-accountkaluza-typescript-caretakers-botkaluza-typescript-caretakers-botovotarasrusyniakovotarasrusyniakedandrewovoedandrewovoovotech-air-source-heat-pumpovotech-air-source-heat-pumpconsumptionconsumptionsaravana16496saravana16496veenavveenavabiramiaabiramiacharlieinshawcharlieinshawvasileovovasileovokaluza-tariffs-and-chargingkaluza-tariffs-and-chargingserena-ahahserena-ahahalicia.bowersalicia.bowerskelvedenkelvedenmike.waltersmike.walterskhadra.ismail2khadra.ismail2tashacallowtashacallowalan_smith_ovoalan_smith_ovorohith-kaluzarohith-kaluzaylukomskyi-corgiylukomskyi-corgiachagan_kaluzaachagan_kaluzamike-gregory-kaluzamike-gregory-kaluzathomasgdanethomasgdaneangloxangloxmladjan-perceptivemladjan-perceptiveamolrindheamolrindhesujitkumar.shilsujitkumar.shilnathanmarshovonathanmarshovoandrixbandrixbtudor.harries-kaluzatudor.harries-kaluzabphenriqueskaluzabphenriqueskaluzaanthony_tonevanthony_tonevmichal-at-kantanmichal-at-kantannick-ovoxnick-ovoxasellickasellicknpmpwoonpmpwoostewart-kantanstewart-kantanjamie-ebjamie-ebluis.gashiluis.gashin-jeremic-npmn-jeremic-npmanthonykaluzaanthonykaluzajackbott-ovojackbott-ovoklaudia.marzecklaudia.marzecponchosbponchosboliwia-lakatoszoliwia-lakatoszluke-adams-ovoluke-adams-ovojgokjgokdela_kaluzadela_kaluzamaxandre.zilsmaxandre.zilschris-cooney-ovochris-cooney-ovoadam.vileadam.viledhasovodhasovosamrushtonsamrushtonmaxatkomaxatkomiksgmiksgjonnycundalljonnycundallmars-rovermars-roverape-teamape-teamkgray-kaluzakgray-kaluzakaluza-devexkaluza-devexohs-auroraohs-aurorakaluza-rnrkaluza-rnripa-botipa-botkawbotkawbotdata.discovery.ovodata.discovery.ovoovotech-sgovotech-sgovotech-qsovotech-qstomshawovotomshawovopotsecpotsecrosario-ovorosario-ovozoejmzoejmpeterh-ovopeterh-ovoapjmapjmovoenergyappsovoenergyappshomemoveshomemovesovo-oot-botovo-oot-botcp-ui-toolingcp-ui-toolingovo-bit-techovo-bit-techsir_hisssir_hiss

Keywords

Readme

Confluence search plugin backend

This plugin integrates Confluence documents to Backstage' search engine.

It is used in combination with its frontend counter-part.

Installation

Add the plugin to your backend app:

cd packages/backend && yarn add @k-phoen/backstage-plugin-confluence-backend

Configure the plugin in app-config.yaml:

# app-config.yaml
confluence:
  # Confluence base URL for wiki API
  # Typically: https://{org-name}.atlassian.net/wiki
  wikiUrl: https://org-name.atlassian.net/wiki

  # List of spaces to index
  # See https://confluence.atlassian.com/conf59/spaces-792498593.html
  spaces: [ENG]

  # Authentication credentials towards Confluence API
  auth:
    username: ${CONFLUENCE_USERNAME}
    # While Confluence supports BASIC authentication, using an API token is preferred.
    # See: https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/
    password: ${CONFLUENCE_PASSWORD}

It is also possible to use a Resource in the catalog to specify the spaces to index. The Resource should like like this:

apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
  name: company-confluence-spaces
  description: List of all company Confluence spaces to index
  annotations:
    atlassian.net/confluence-spaces: 'Eng, Sales, Marketing, BizDev'
spec:
  type: confluence-spaces
  owner: my-team

Enable Confluence documents indexing in the search engine:

// packages/backend/src/plugins/search.ts
import { ConfluenceCollatorFactory } from '@k-phoen/backstage-plugin-confluence-backend';

export default async function createPlugin({
  logger,
  permissions,
  discovery,
  config,
  tokenManager,
}: PluginEnvironment) {
  // Initialize a connection to a search engine.
  const searchEngine = await ElasticSearchSearchEngine.fromConfig({
    logger,
    config,
  });
  const indexBuilder = new IndexBuilder({ logger, searchEngine });

  // …

  // Confluence indexing
  const halfHourSchedule = env.scheduler.createScheduledTaskRunner({
    frequency: Duration.fromObject({ minutes: 30 }),
    timeout: Duration.fromObject({ minutes: 15 }),
    // A 3 second delay gives the backend server a chance to initialize before
    // any collators are executed, which may attempt requests against the API.
    initialDelay: Duration.fromObject({ seconds: 3 }),
  });
  indexBuilder.addCollator({
    schedule: halfHourSchedule,
    factory: ConfluenceCollatorFactory.fromConfig(env.config, {
      logger: env.logger,
    }),
  });

  // …

  // The scheduler controls when documents are gathered from collators and sent
  // to the search engine for indexing.
  const { scheduler } = await indexBuilder.build();

  // A 3 second delay gives the backend server a chance to initialize before
  // any collators are executed, which may attempt requests against the API.
  setTimeout(() => scheduler.start(), 3000);
  useHotCleanup(module, () => scheduler.stop());

  return await createRouter({
    engine: indexBuilder.getSearchEngine(),
    types: indexBuilder.getDocumentTypes(),
    permissions,
    config,
    logger,
  });
}

If you have decided to use the Catalog (Resource) to define the spaces to index then there is a small change to the initialisation code:

...
indexBuilder.addCollator({
  schedule: halfHourSchedule,
  factory: ConfluenceCollatorFactory.fromConfig(env.config, {
    logger: env.logger,
    catalogClient: new CatalogClient({ discoveryApi: env.discovery }),
  }),
});
...

This will ensure the Catalog Client is specified - and it can then get the Resources of the specified type.

License

This library is under the MIT license.