SShortSingh.
Back to feed

Tool Lets Businesses Verify Norwegian Supplier VAT Status Before Paying Invoices

0
·1 views

A developer tool called registry-mcp allows businesses and agents to verify whether a Norwegian supplier is VAT-registered before approving an invoice. The tool queries Brønnøysundregistrene's Enhetsregisteret using a supplier's organisasjonsnummer and returns key details including VAT registration status, registration date, and whether the business is active. It also validates the organisation number format locally before making any network call, flagging transposed digits or malformed inputs immediately. If an invoice is dated before the supplier's VAT registration date, the tool flags that the supplier was not entitled to collect VAT at that time. The tool is available via HTTP or locally over stdio, and its data is sourced from Enhetsregisteret under the NLOD 2.0 open licence.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Queue Depth-Based Router Proposed to Stop Secret Prompts Leaking to Cloud

A workflow proposal suggests that AI coding agents on shared workstations need a router that classifies prompts before deciding where to send them. The problem arises when local GPU queues become congested, prompting developers to redirect all requests — including those containing sensitive data like API keys — to remote hosted endpoints. The proposed router uses four signals — secret classification, local queue depth, offline status, and a wait-time budget — to determine whether a prompt should be processed locally or remotely. Only prompts classified as non-secret are permitted to leave the machine, and only when local waiting would exceed a defined time threshold. The design prioritises explainability and auditability, with each routing decision stored as serialisable JSON so incident reviews can trace exactly why a prompt was sent off-device.

0
ProgrammingDEV Community ·

How to Spot and Fix Fail-Open Defaults in AI-Generated Code PRs

AI agent-generated pull requests can introduce unverified default values — such as hardcoded URLs and timeout figures — that have no traceable source in the existing codebase. A key risk is 'fail-open' behavior, where error-handling code silently returns a success response even when a critical service like billing is unreachable. Reviewers are advised to audit every new environment variable, endpoint, and return shape introduced by an agent patch, building a provenance table that cites a verified source for each default or strips it entirely. Automated scanning scripts and targeted regex searches can help surface swallowed errors and invented fallback values that visual review might miss. The recommended standard is fail-closed behavior by default, meaning errors should throw exceptions rather than return false success signals, unless a written SLA explicitly permits deferral.

0
ProgrammingDEV Community ·

JSON.stringify Edge Cases That Silently Break Production JavaScript Apps

JavaScript's JSON.stringify is widely used but carries several silent failure modes that can cause hard-to-trace production bugs. Undefined values, functions, and Symbols are quietly dropped from objects or converted to null in arrays, with no error or warning thrown. Special numeric values like NaN and Infinity are all serialized as null, erasing their original meaning, while Map and Set objects serialize as empty objects by default. Dates serialize correctly only because they implement a toJSON method, a hook developers can use in their own classes. BigInt values are the exception, triggering an outright TypeError rather than a silent conversion, making them easier to catch but still a common stumbling block.

0
ProgrammingDEV Community ·

Developer Builds Open-Source Library for Particle-Based DOM Element Animations

A developer has released Vanilla Disintegrate, an open-source JavaScript library that animates the removal and restoration of DOM elements using particle effects, inspired by the so-called 'Thanos snap' effect seen in messaging apps. The library is framework-agnostic and works directly with standard DOM elements, requiring no special markup or mandatory CSS files. It ships with ready-to-use presets and an interactive web playground where developers can fine-tune particle movement, timing, and sound before copying the generated configuration into their code. The project grew out of a real-world 'remove from favorites' interaction problem the developer encountered at work, where common fade and scale animations felt too familiar to be memorable. Custom rendering support is also available for developers who need to go beyond the built-in particle renderer.

Tool Lets Businesses Verify Norwegian Supplier VAT Status Before Paying Invoices · ShortSingh