Skip to content
Projetos

Sobre

A self-hosted application for sharing wishlists and collaborating on gifts and presents.

Sistemas e infraestrutura

Como estes números são medidos

O que você pode fazer

  • Create wishlists and add wishes
  • Collaborate with friends & family on the shared wishlists
  • Create groups to share wishlists with multiple people
  • Claim wishes anonymously (others see it's taken - owner does not)

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+5
em 1 mês
+6

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Pønskelisten

CI Backend coverage Github Stars Github Forks Docker Pulls Newest Release Go Version


Donate

Like the project? Have too much money? Buy me a coffee or something! ☕️


What is Pønskelisten? 🎁

A self-hosted web app for creating, sharing and collaborating on wishlists - without ruining the surprise.
Share gift ideas, see which ones are already taken, and avoid the awkward “oh… you also bought that…” moment.

Main Features

  • Create wishlists and add wishes
  • Collaborate with friends & family on the shared wishlists
  • Create groups to share wishlists with multiple people
  • Claim wishes anonymously (others see it's taken - owner does not)
  • Ask for more than one of a wish ("3 × Set of four socks"), and let several people each claim some of them
  • Buy a gift together: open your claim so others can chip in, and see who you're buying it with (even when the list hides claimers from each other)
  • A claim is released when its claimer can no longer see the wish (it was taken off their lists, or they left the group), so it never blocks a wish they can't buy
  • Organise wishes into categories, and sort or group them on a wishlist
  • Show one wish on several of your wishlists, or on shared ones you collaborate on, with one claim that holds on all of them
  • Share a wishlist publicly with people who don't have an account
  • Sign in with a password, optionally with MFA (authenticator app), or through single sign-on (OpenID Connect)
  • Let an AI assistant read your wishlists and add, change or delete wishes through the built-in MCP server (optional)
  • Installable as a web app (PWA)

Wishlists screenshot



🚀 Installation

Pønskelisten is flexible to host. Choose your path:

Step 1: Choose how to run it

Method Difficulty Notes
⭐Docker Easiest You need to run your instance in a Docker container
Download executable Easy Choose the correct executable for your system
Build from source Medium You need to have Go installed

Step 2: Choose your Database

Pønskelisten currently supports:

Database Status Notes
⭐SQLite ✅ Fully supported DB file is handled by Pønskelisten
PostgreSQL ✅ Fully supported Requires a running PostgreSQL instance
MySQL ✅ Fully supported Requires a running MySQL instance

🧩 Configuration (Recommended: Environment Variables)

You can configure Pønskelisten in three different ways:

Method Ideal for Notes
⭐Environment variables Docker Add the environment variables to your Dockerfile or docker-compose.yaml
Startup flags Executables Adding a flags to the startup command alters something in the configuration file
config.json Access to file system Pønskelisten generates the file on the first run. Can be altered in a text editor afterward

📍 Available Configuration Options

Config file entry Startup flag Environment variable Type Description
poenskelisten_port port port int Port to run on (default: 8080)
poenskelisten_external_url externalurl externalurl string Required. The main URL users open in their browser, e.g. https://wishlist.example.com. Used for login, e-mail links, public wishlist links, single sign-on and as the OAuth issuer. If unset, only http://localhost:<port> can log in.
poenskelisten_additional_urls additionalurls additionalurls string Comma-separated extra URLs users can log in from, e.g. http://192.168.1.10:8080,http://wishlist.lan. Each must be just scheme, host and port. Links and single sign-on still use external_url (the SSO button switches to it). Sign-in, MFA, e-mail verification and OAuth consent requests sent from any page not on external_url or one of these URLs are refused with 403, so a page opened on an unlisted address (another hostname, a bare IP) cannot sign in.
poenskelisten_trusted_proxies trustedproxies trustedproxies string Comma-separated IP addresses or CIDR ranges of your reverse proxy, e.g. 172.18.0.2 or 172.16.0.0/12. Only these may report a visitor's IP through X-Forwarded-For. Set this when running behind a reverse proxy, see Behind a reverse proxy.
poenskelisten_environment environment environment string production or test
poenskelisten_test_email testemail testemail string E-mail destination when in test
poenskelisten_name name name string Display name of the app
poenskelisten_description description description string Description of the app
poenskelisten_log_level loglevel loglevel string How detailed the logs are. info, debug or trace
timezone timezone timezone string E.g. Europe/Oslo
N/A generateinvite generateinvite bool Generate an invite code on startup. Do generateinvite true
N/A resetpassword resetpassword string E-mail of a user to issue a password reset link for on startup. See Admin Access
N/A resetmfa resetmfa string E-mail of a user to remove MFA for on startup. See Admin Access
db_type dbtype dbtype string sqlite, postgres or mysql
db_ip dbip dbip string DB host
db_port dbport dbport int DB port
db_username dbusername dbusername string DB username
db_password dbpassword dbpassword string DB password
db_name dbname dbname string Database name
db_ssl dbssl dbssl bool Use SSL for DB
db_location dblocation dblocation string SQLite database file path (default: files/data.db)
smtp_enabled disablesmtp disablesmtp bool Disable/enable email functions
smtp_host smtphost smtphost string SMTP host
smtp_port smtpport smtpport int SMTP port
smtp_username smtpusername smtpusername string SMTP user
smtp_password smtppassword smtppassword string SMTP password
smtp_from smtpfrom smtpfrom string Sender email address
mfa_enforced mfaenforced mfaenforced bool Require all local users to enroll in MFA (TOTP)
mfa_recovery_codes_enabled mfarecoverycodes mfarecoverycodes bool Issue single-use recovery codes on MFA enrollment (default off; when off, an admin must remove MFA for locked-out users)
access_token_minutes accesstokenminutes accesstokenminutes int Minutes an access token is valid, 1–60 (default: 15). Signing out (or "sign out everywhere") takes effect once the current access token expires, so a longer lifetime delays it
refresh_token_days refreshtokendays refreshtokendays int Days a login lasts before users must sign in again, 1–365 (default: 7). Also applies to connected apps (MCP clients)
max_image_pixels maximagepixels maximagepixels int Most pixels (width × height) an uploaded image may have, 1000000–50000000 (default: 24000000, enough for a 12-megapixel phone photo). Checked before the image is decoded; progressive JPEGs and interlaced PNGs are held to fewer pixels. See Images and memory
oidc_enabled oidcenabled oidcenabled bool Enable OpenID Connect single sign-on
oidc_provider_name oidcprovidername oidcprovidername string Display name on the SSO login button (e.g. "Authelia")
oidc_issuer_url oidcissuerurl oidcissuerurl string OIDC issuer URL used for discovery (e.g. https://auth.example.com)
oidc_client_id oidcclientid oidcclientid string OIDC client ID
oidc_client_secret oidcclientsecret oidcclientsecret string OIDC client secret
oidc_redirect_url oidcredirecturl oidcredirecturl string OIDC callback URL; defaults to <external_url>/api/open/oidc/callback
oidc_auto_create_users oidcautocreateusers oidcautocreateusers bool Auto-provision unknown OIDC users (default off)
local_login_disabled disablelocallogin disablelocallogin bool OIDC-only mode: turn off password login, registration and password reset (default off; ignored unless OIDC is enabled and configured)
mcp_enabled mcpenabled mcpenabled bool Enable the MCP resource server, and with it registration of third-party apps (the OAuth authorization server is always on)
oauth_signing_key N/A N/A string PEM signing key; auto-generated + persisted on first run (config.json only)
oauth_signing_key_id N/A N/A string Key ID of oauth_signing_key; auto-generated alongside it (config.json only)
private_key N/A N/A string Secret for the login-session cookie; auto-generated on first run (config.json only)
poenskelisten_currency, poenskelisten_currency_left, poenskelisten_currency_pad N/A N/A string / bool Currency symbol and placement; set from the admin panel

📁 The files/ folder and config.json

Pønskelisten keeps its state in files/ (config, log and, with SQLite, the database) and wishes/profile pictures in images/. Both must be on persistent storage (the Docker volumes below), and files/ belongs in your backups.

  • config.json is created on the first run. Values given as startup flags or environment variables are written back into it whenever they differ from what's there, so it's always the full picture of your configuration.
  • It holds secrets: the auto-generated oauth_signing_key and private_key, plus any database, SMTP and OIDC passwords you configure, including ones passed as environment variables. Treat it as sensitive. Pønskelisten creates config.json and its log readable by its own user only (0600) and keeps files/ closed to other users (0700); on every start it tightens config.json and files/ if an older version left them readable. A backup job that reads the folder as a different, non-root user needs to run as the app's user instead.
  • Give dbpassword, smtppassword and oidcclientsecret as environment variables rather than startup flags: any user who can see a process can read its arguments. The app reads these three from its environment itself, on any install, not only in Docker: when set, they override config.json and are saved into it. The Docker image's entrypoint doesn't pass them as arguments.
  • Keep the signing keys. If config.json is lost or replaced, new keys are generated: everyone is logged out, and connected apps (MCP clients) have to be authorised again.

Images and memory

Uploaded images (JPG or PNG, up to 10 MB) are stored scaled down to at most 1000x1000, with a 250x250 thumbnail. Their width and height are read from the file before it is decoded, and an image with more pixels than max_image_pixels (default 24 million, such as 6000x4000, which covers 12-megapixel phone photos) is refused.

Decoding an image takes memory in proportion to its pixel count, not its file size, and how much per pixel depends on its format. Before decoding, the memory an image needs is estimated from its header, and one image may take at most what a 16-bit PNG at the pixel limit takes: about 380 MB at the default. For standard JPEGs, most progressive JPEGs and 8-bit PNGs the pixel limit is then the only limit. A few rarer kinds need more memory per pixel and are refused at fewer pixels, with a message suggesting a smaller image or a standard JPEG. At the default that is about 16 MP for a progressive JPEG without chroma subsampling, 15 MP for an interlaced 16-bit PNG and 11 MP for a progressive CMYK JPEG. An image stored by an earlier version that is over these limits is served as it is, without being resized.

Images being decoded share a budget of twice that amount, so decoding takes at most about 760 MB above the app's usual use at the default. Allow a little more in practice, since Go reuses freed memory rather than returning it to the system immediately. Further uploads wait for their turn for up to 30 seconds, then get a "server busy" error, and each account can have one upload being decoded at a time. Lowering max_image_pixels lowers all of this roughly in proportion, at the cost of refusing larger photos.

In a container with a memory limit, also set the GOMEMLIMIT environment variable a little below that limit, for example GOMEMLIMIT=900MiB for a 1 GiB limit, which is enough at the default max_image_pixels. Go then collects garbage harder as memory use nears that amount, rather than letting the container be killed for running out of memory. It cannot free memory that is still in use, so it complements a suitable limit rather than replacing it.


🔐 Single sign-on (OpenID Connect)

Pønskelisten can act as an OpenID Connect relying party, letting users log in through an external identity provider (Authelia, Keycloak, Authentik, Google, …). A successful SSO login mints a normal Pønskelisten session, so everything else works the same afterwards.

How accounts are resolved on SSO login:

  1. If the IdP subject (sub) is already linked to a user, that user logs in.
  2. Otherwise, if the IdP asserts a verified email that matches an existing local account, the OIDC identity is linked to it. An unverified email is refused.
  3. Otherwise a new account is created only if oidc_auto_create_users is on (default off); the account is created pre-verified with no local password.

Example with Authelia: register Pønskelisten as an OIDC client in your Authelia configuration:

identity_providers:
  oidc:
    clients:
      - client_id: poenskelisten
        client_secret: '<hashed-or-plaintext-per-your-authelia-version>'
        redirect_uris:
          - https://wishlist.example.com/api/open/oidc/callback
        scopes: [openid, profile, email]

Then configure Pønskelisten (env vars shown; flags/config.json equivalents exist):

    environment:
      externalurl: https://wishlist.example.com
      oidcenabled: true
      oidcprovidername: Authelia
      oidcissuerurl: https://auth.example.com
      oidcclientid: poenskelisten
      oidcclientsecret: <the-client-secret>
      # oidcredirecturl defaults to <externalurl>/api/open/oidc/callback
      oidcautocreateusers: false

The redirect URL registered with the IdP must match <external_url>/api/open/oidc/callback. Single sign-on therefore always runs on external_url: the SSO button on a page opened from one of the additional_urls sends the browser to external_url first, and the user ends up logged in there.

OIDC-only mode: set disablelocallogin: true to make SSO the only way in. Password login (including its MFA step), self-registration and password reset are then refused by the API, and the login page only shows the SSO button. Existing local accounts keep working through SSO once linked by a verified email, and local MFA enforcement no longer applies, since the IdP owns MFA. The setting is ignored, with a warning in the log, unless OIDC is enabled with an issuer URL and client ID, so a broken SSO setup can't lock everyone out. If the IdP is unavailable, set disablelocallogin: false and restart to get password login back.

🤖 MCP server (AI assistants)

Pønskelisten can expose an authenticated MCP (Model Context Protocol) endpoint so an AI client (e.g. Claude) can read and edit your wishlists on your behalf. It is a full OAuth 2.1 setup: the app is its own authorization server, and the MCP endpoint is a resource server that only accepts audience-scoped tokens.

Enable it with mcp_enabled: true (it's off by default). The endpoint lives at <external_url>/mcp; the client discovers everything else via <external_url>/.well-known/oauth-protected-resource, self-registers (/oauth/register), and runs the browser login + consent flow — no manual client setup. Set external_url to the public HTTPS address the client connects to, since the OAuth issuer and the MCP resource identifier are derived from it.

Tools, each gated by a scope you approve on the consent screen:

Tool Scope What it does
list_wishlists mcp:wishlists.read Lists the wishlists you own
list_wishes mcp:wishlists.read Lists the wishes on one of your wishlists
list_groups mcp:groups.read Lists the groups you belong to
add_wish mcp:wishlists.write Adds a wish (name, and optionally a note, link, price and how many are wanted) to a wishlist you own or collaborate on
update_wish mcp:wishlists.write Changes a wish's name, note, link, price or how many are wanted, on every wishlist it is on; lowering it below what is claimed e-mails the claimers when SMTP is set up
delete_wish mcp:wishlists.write Deletes a wish from every wishlist it is on; whoever claimed it is told by e-mail when SMTP is set up

The write tools follow the same rules as the web app: only a wishlist's owner and its collaborators can change its wishes, names must be at least five characters and unique on the wishlist (ignoring case), prices can't be negative, and links must be http/https. An app connected before the write tools existed may hold a token without mcp:wishlists.write; disconnect and reconnect it to approve the new scope. Connected apps only ever get access to the MCP endpoint, never to the rest of Pønskelisten's API, and app registration is switched off along with MCP. Registration is open while MCP is on, so it is bounded: at most 10 redirect URIs of up to 2000 characters each, without a fragment or credentials, and a single-line client_name of up to 100 characters. Users can disconnect an app under "Connected apps" on their account page, and admins can revoke any registered client from the admin panel.

🐳 Docker Setup

Minimal docker-compose.yml for SQLite (recommended)

services:
  poenskelisten-app:
    container_name: poenskelisten-app
    image: ghcr.io/aunefyren/poenskelisten:latest
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      PUID: 1000
      PGID: 1000
      externalurl: http://localhost:8080 # the URL you open Pønskelisten on
      dbtype: sqlite
      timezone: Europe/Oslo
      generateinvite: true
    volumes:
      - ./files/:/app/files/:rw
      - ./images/:/app/images/:rw

Remove generateinvite after first run to stop generating codes on start up.

PUID/PGID pick the user and group the app runs as (default 1000). The container starts as root, gives that user ownership of /app/files and /app/images (including any bind-mounted folder Docker created as root), and then drops to it. Set them to match the owner of your host folders. If you'd rather the container never runs as root, set user: "1000:1000" on the service instead. In that case PUID/PGID are ignored, and the host folders must already be writable by that user.

Minimal docker-compose.yml for postgres

services:
  db:
    container_name: poenskelisten-db
    image: postgres:16
    restart: unless-stopped
    environment:
      POSTGRES_DB: poenskelisten
      POSTGRES_USER: myuser
      POSTGRES_PASSWORD: mypassword
    volumes:
      - ./db/:/var/lib/postgresql/data/:rw

  poenskelisten-app:
    container_name: poenskelisten-app
    image: ghcr.io/aunefyren/poenskelisten:latest
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      PUID: 1000
      PGID: 1000
      externalurl: http://localhost:8080 # the URL you open Pønskelisten on
      dbtype: postgres
      dbip: db
      dbport: 5432
      dbname: poenskelisten
      dbusername: myuser
      dbpassword: mypassword
      timezone: Europe/Oslo
      generateinvite: true
    depends_on:
      - db
    volumes:
      - ./files/:/app/files/:rw
      - ./images/:/app/images/:rw

Remove generateinvite after first run to stop generating codes on start up.

Optional Add-ons

  • Reverse proxy for HTTPS and access outside of home network (Caddy, Traefik, Nginx), see HTTPS and Behind a reverse proxy

  • Adminer or phpMyAdmin (if you like UI DB tools, but not required anymore)

Behind a reverse proxy

Login, MFA, password reset and the OAuth endpoints are rate-limited per visitor IP. Behind a reverse proxy, every request reaches Pønskelisten from the proxy's address, so set trustedproxies to that address for the real visitor IP to be used:

    environment:
      trustedproxies: 172.16.0.0/12 # Docker's default bridge networks; or the proxy's exact IP

Without it, X-Forwarded-For is ignored and all visitors share one rate limit, and the log warns about this once after startup. Only list proxies you run: any address in the list can claim to be any visitor.

Pønskelisten's access log, on its standard output, leaves out query strings and the codes some URLs carry: password reset and e-mail verification codes, and public wishlist links. Your proxy's access log, if you keep one, may record whole URLs, so reset links: keep it as private as the app's data.

HTTPS

Pønskelisten serves plain HTTP. When it's reachable from the internet, put a reverse proxy in front of it to handle HTTPS. Otherwise passwords and login cookies cross the network unencrypted. Caddy is the simplest choice: it gets and renews a free Let's Encrypt certificate on its own.

You need a domain whose DNS points at your server, with ports 80 and 443 forwarded to it (Let's Encrypt uses port 80 to verify the domain).

docker-compose.yml:

services:
  caddy:
    container_name: poenskelisten-caddy
    image: caddy:2
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
      - "443:443/udp" # HTTP/3
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - ./caddy/data/:/data/:rw     # certificates, keep this
      - ./caddy/config/:/config/:rw

  poenskelisten-app:
    container_name: poenskelisten-app
    image: ghcr.io/aunefyren/poenskelisten:latest
    restart: unless-stopped
    # No "ports:" here: only Caddy can reach the app, so nobody can skip HTTPS.
    environment:
      PUID: 1000
      PGID: 1000
      externalurl: https://wishlist.example.com # must match the domain in the Caddyfile
      trustedproxies: 172.16.0.0/12 # Docker's default bridge networks, where Caddy lives
      dbtype: sqlite
      timezone: Europe/Oslo
      generateinvite: true
    volumes:
      - ./files/:/app/files/:rw
      - ./images/:/app/images/:rw

Caddyfile, next to the compose file:

wishlist.example.com {
	reverse_proxy poenskelisten-app:8080
}

Run docker compose up -d and open https://wishlist.example.com. Caddy redirects plain HTTP to HTTPS and passes the visitor's address and the original scheme on to Pønskelisten, so rate limiting and secure cookies work without further setup.

Using a different proxy (Nginx Proxy Manager, Traefik, a Cloudflare Tunnel)? The same rules apply: set externalurl to the public https:// address, set trustedproxies to the proxy's address, keep the original Host header, and don't publish Pønskelisten's own port to the internet.

🔑 Admin Access

  • First registered user becomes admin

  • Additional invite codes can be created in the admin panel

  • The admin panel lists every account, including ones created through single sign-on or without an invite. Click one to make it an administrator (or remove the rights), create a password reset link to pass on, remove its MFA, sign it out everywhere or delete it

  • If you lose access: restart with generateinvite=true (in OIDC-only mode, also set disablelocallogin: false, since invites are used through self-registration)

Recovering an account from the server

If a user (including yourself) has lost their password or their MFA device, anyone who can start Pønskelisten can recover the account. Neither option needs SMTP.

  • resetpassword <e-mail> issues a password reset link and writes it to the log (files/poenskelisten.log and the console/docker logs). Open the link to choose a new password. It works like the e-mailed reset link: valid for 24 hours, single-use, and the normal password rules apply. In OIDC-only mode, also set disablelocallogin: false, since password reset is part of local login.
  • resetmfa <e-mail> removes MFA and the recovery codes for the user, the same as the admin panel's "remove MFA". If MFA is enforced, the user sets it up again at their next login.

The e-mail is matched ignoring case. Surrounding whitespace and quotes are trimmed, and anything that isn't a plain address is refused before any account is touched.

./poenskelisten -resetmfa [email protected] -resetpassword [email protected]
    environment:
      resetmfa: [email protected]
      resetpassword: [email protected]

Remove the flag or variable once you're back in. Both run on every start: resetpassword issues a new link each time, and resetmfa would remove MFA again after the user re-enrols. The reset link also stays in the log file until it expires, so treat the log as sensitive in the meantime.

🔧 Building from Source

Requires Go installed:

go build
./poenskelisten

Add flags to configure:

./poenskelisten -port 9000 -dbtype postgres -generateinvite true

❓ FAQ

What does “Pønskelisten” mean?

A Norwegian wordplay. “Ønskeliste” = wishlist, “pønske” = plot/plan. So… “The plotting list”.

Is a demo available?

Not at the moment.

🙌 Contributing

Contributions, issues and feature requests are welcome. See CONTRIBUTING.md before opening a Pull Request.

☕️ Donate

If you enjoy using Pønskelisten and want to support development:
Buy me a coffee

Explore projetos relacionados

Carregando…