db-hafas-daemon

Run a daemon that can query the Deutsche Bahn HAFAS endpoint.

Usage no npm install needed!

<script type="module">
  import dbHafasDaemon from 'https://cdn.skypack.dev/db-hafas-daemon';
</script>

README

db-hafas-daemon

Run a daemon that can query the Deutsche Bahn HAFAS endpoint.

npm version build status ISC-licensed minimum Node.js version chat with me on Gitter support me via GitHub Sponsors

Note: This tool is intended to be a low-level tool that allows locally running programs to query as if they ran the hafas-client instance. If you want to expose a HAFAS endpoint to remote or third-party clients as an API, use hafas-rest-api instead.

Installation

npm install db-hafas-daemon -g

Usage

Usage:
    db-hafas-daemon
      [--socket]
      [--ws]
      [--no-cache]
      <user-agent>
Options:
    --socket           Listen on a local socket.
    --ws               Listen for WebSocket connections on port 8080.
    --no-cache         Don't cache data in Redis using cached-hafas-client.
Examples:
    db-hafas-daemon --ws 8080 --no-cache my-awesome-program

Related

  • hafas-rest-api – Expose a HAFAS client via an HTTP REST API.
  • db-hafas – JavaScript client for the Deutsche Bahn HAFAS API.

Contributing

If you have a question or need support using db-hafas-daemon, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.