Skip to content

Repository files navigation

Postdirekt Autocomplete Monorepo

Deprecation Notice

In agreement with Deutsche Post Direkt GmbH, the ADDRESSFACTORY and AUTOCOMPLETE modules have been discontinued and are entering end-of-life.

  • No new customers will be onboarded for these modules by Deutsche Post Direkt.
  • Existing customers may continue to access the GitHub source code until approximately June 2027.
  • Official support for existing users will end on December 31, 2026.

This monorepo contains the @netresearch/postdirekt-autocomplete-library and @netresearch/postdirekt-autocomplete-sdk npm packages.

Developer and Contribution Workflow

Prerequisites

Node.js

Before you can start working on the Autocomplete monorepo, you need to have Node.js installed on your machine. The required version is pinned in .nvmrc (currently Node 22).

To download Node.js visit https://nodejs.org/en/download/.

NOTE: You can use a tool like NVM or N to install and manage multiple node versions. With NVM, run nvm install in the repo root to automatically install and switch to the correct version.

Yarn

This project uses Yarn 4 via Node.js corepack. Enable it with:

corepack enable

Yarn will be automatically resolved from the packageManager field in package.json -- no separate installation needed.

Verify Prerequisites

You can verify your setup by running the following commands in your terminal at the root of the repo:

node -v
yarn -v

Your Node.js version should match .nvmrc, and yarn -v should show 4.x.

Install Dependencies

Once you have Node.js and corepack enabled, set up the development environment by running the following at the root of the repo:

yarn

Once you have installed all the dependencies, you can build both packages by running the following command at the root of the repo:

yarn build

Packages

packages/autocomplete-sdk

This folder contains the @netresearch/postdirekt-autocomplete-sdk, responsible for abstracting away the Deutsche Post Direkt Autocomplete 2.0 API.

See Readme.

packages/autocomplete-library

This folder contains the @netresearch/postdirekt-autocomplete-library, responsible for registering input listeners on given input fields (street address, city and postcode) and fetching address suggestions from the Autocomplete API via the autocomplete-sdk package.

See Readme.

Testing the packages

You can run the tests with:

yarn test

To run the linter:

yarn lint

Building the packages

You can build ES2017 compatible artifacts (this is what's published on npm) with:

yarn build

You can also build ES5 compatible artifacts (output in <rootDir>/dist) with:

yarn build:es5

About

Deutsche Post Direkt DATAFACTORY Autocomplete Frontend Library

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages