Publieke Code — Open Source Publicatie voor de Overheid
Publiceer overheidssoftware als open source conform de Standard for Public Code en Nederlandse richtlijnen.
Bron: Standard for Public Code | REUSE | developer.overheid.nl
Waarom publieke code?
| Aspect |
Detail |
| Beleid |
"Open, tenzij" — overheidscode is openbaar tenzij er zwaarwegende redenen zijn |
| Wet |
Wet hergebruik overheidsinformatie (Who); Motie Vendrik (2002) |
| EU |
Interoperable Europe Act; EU OSPO; Joinup platform |
| Voordelen |
Hergebruik, transparantie, leveranciersonafhankelijkheid, samenwerking, innovatie |
| Kader |
Standard for Public Code (Foundation for Public Code) |
| Licentie |
EUPL-1.2 (aanbevolen), Apache-2.0, MIT |
Standard for Public Code — criteria
| Criterium |
Beschrijving |
Vereist |
| Code in the open |
Repository is publiek toegankelijk |
Ja |
| Bundle policy and source code |
Beleid en code in dezelfde repository |
Ja |
| Create reusable and portable code |
Configureerbaar, geen hardcoded aannames |
Ja |
| Welcome contributors |
CONTRIBUTING.md, CODE_OF_CONDUCT.md, issue templates |
Ja |
| Require review of contributions |
Code review via pull requests |
Ja |
| Document codebase objectives |
README met doel, installatie, gebruik |
Ja |
| Document the code |
Inline documentatie, API-docs |
Ja |
| Use plain English |
Documentatie in het Engels (of tweetalig) |
Aanbevolen |
| Use open standards |
Geen proprietary standaarden of formaten |
Ja |
| Use continuous integration |
CI/CD pipeline die automatisch test en valideert |
Ja |
| Publish with an open license |
Open-source licentie (EUPL, Apache, MIT) |
Ja |
| Make the codebase findable |
publiccode.yml, registratie op softwarecatalogus |
Ja |
| Use a coherent style |
Linting, formattering, style guide |
Ja |
| Document codebase maturity |
Lifecycle status (concept, beta, stable, deprecated) |
Ja |
publiccode.yml
Elke publieke codebase bevat een publiccode.yml in de root van de repository:
publiccodeYmlVersion: "0.4"
name: Open Zaak
url: "https://github.com/open-zaak/open-zaak"
releaseDate: "2026-02-01"
developmentStatus: stable
softwareType: standalone/backend
description:
nl:
shortDescription: "Zaakregistratiecomponent conform ZGW API-standaarden"
longDescription: >
Open Zaak is een moderne, open-source implementatie van de
ZGW API-standaarden voor zaakgericht werken bij gemeenten.
documentation: "https://open-zaak.readthedocs.io/"
features:
- Zaken API
- Documenten API
- Catalogi API
- Besluiten API
- Autorisaties API
legal:
license: EUPL-1.2
mainCopyrightOwner: Dimpact
repoOwner: open-zaak
maintenance:
type: community
contacts:
- name: Maykin Media
email: info@maykinmedia.nl
platforms:
- web
- linux
categories:
- case-management
- document-management
dependsOn:
open:
- name: Python
versionMin: "3.10"
- name: PostgreSQL
versionMin: "14"
- name: Redis
intendedAudience:
countries:
- nl
scope:
- government
localisation:
localisationReady: true
availableLanguages:
- nl
- en
REUSE-compliance
REUSE zorgt ervoor dat elke file in de repository duidelijke licentie-informatie heeft.
REUSE instellen
# Installeer de REUSE tool
pip install reuse
# Voeg licentie-headers toe aan alle bestanden
reuse annotate --license EUPL-1.2 --copyright "Gemeente Amsterdam" src/**/*.py
# Voeg de licentietekst toe
reuse download EUPL-1.2
# Controleer REUSE-compliance
reuse lint
Bestandsstructuur
project/
LICENSES/
EUPL-1.2.txt # Volledige licentietekst
CC-BY-4.0.txt # Voor documentatie
CC0-1.0.txt # Voor configuratie/data
.reuse/
dep5 # Bulk-licentie-toewijzing
src/
app.py # SPDX header in elk bestand
docs/
handleiding.md # CC-BY-4.0 licentie
publiccode.yml
README.md
CONTRIBUTING.md
CODE_OF_CONDUCT.md
CHANGELOG.md
SPDX-headers
# SPDX-FileCopyrightText: 2026 Gemeente Amsterdam
# SPDX-License-Identifier: EUPL-1.2
"""Zaakregistratie module."""
.reuse/dep5 (bulk-toewijzing)
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *.json *.yaml *.yml *.toml
Copyright: 2026 Gemeente Amsterdam
License: EUPL-1.2
Files: docs/*
Copyright: 2026 Gemeente Amsterdam
License: CC-BY-4.0
Files: .gitignore .editorconfig
Copyright: 2026 Gemeente Amsterdam
License: CC0-1.0
Licentiekeuze
| Licentie |
Type |
Aanbevolen voor |
Copyleft |
| EUPL-1.2 |
Copyleft |
Overheidssoftware (aanbevolen) |
Ja (weak) |
| Apache-2.0 |
Permissive |
Libraries, API-clients |
Nee |
| MIT |
Permissive |
Kleine tools, scripts |
Nee |
| CC-BY-4.0 |
Creative Commons |
Documentatie |
N.v.t. |
| CC0-1.0 |
Public Domain |
Configuratie, open data |
N.v.t. |
Waarom EUPL-1.2?
| Voordeel |
Detail |
| Europees |
Officieel vertaald in alle EU-talen; rechtsgeldig in NL |
| Compatibel |
Upstream-compatible met GPL, LGPL, AGPL, MPL, EUPL |
| Copyleft |
Wijzigingen moeten ook open source zijn (beschermt investering) |
| SaaS |
EUPL copyleft geldt ook bij netwerk-interactie (zoals AGPL) |
| Geen patentoorlog |
Expliciet patentvergunning |
Repository-inrichting
Verplichte bestanden
| Bestand |
Inhoud |
README.md |
Doel, installatie, gebruik, bijdragen, licentie |
LICENSE of LICENSES/ |
Licentietekst(en) |
CONTRIBUTING.md |
Hoe bijdragen; review-proces; code of conduct |
CODE_OF_CONDUCT.md |
Gedragscode (bijv. Contributor Covenant) |
CHANGELOG.md |
Wijzigingslog (Keep a Changelog) |
publiccode.yml |
Machine-leesbare metadata |
.reuse/dep5 |
REUSE bulk-licentietoewijzing |
SECURITY.md |
Responsible disclosure beleid |
GitHub repository template
# Security policy
cat > SECURITY.md << 'EOF'
# Security Policy
## Responsible Disclosure
Meld beveiligingsproblemen via [security@organisatie.nl](mailto:security@organisatie.nl).
Maak **geen** GitHub issue aan voor beveiligingsproblemen.
## Supported Versions
| Version | Supported |
|---------|-----------|
| 2.x | Yes |
| 1.x | No |
## Response Time
We streven ernaar om binnen 5 werkdagen te reageren.
EOF
CI/CD voor publieke code
# .github/workflows/public-code.yml
name: Public Code Compliance
on: [push, pull_request]
jobs:
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v4
publiccode:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate publiccode.yml
uses: italia/publiccode-parser-action@v2
with:
publiccode: publiccode.yml
standard-for-public-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Standard for Public Code
run: |
# Controleer verplichte bestanden
for f in README.md LICENSE CONTRIBUTING.md CODE_OF_CONDUCT.md CHANGELOG.md publiccode.yml SECURITY.md; do
if [ ! -f "$f" ] && [ ! -d "LICENSES" ]; then
echo "ONTBREEKT: $f"
exit 1
fi
done
echo "Alle verplichte bestanden aanwezig"
Publicatie en vindbaarheid
| Platform |
Doel |
URL |
| developer.overheid.nl |
API- en softwarecatalogus |
developer.overheid.nl |
| Softwarecatalogus (VNG) |
Gemeentelijke software |
softwarecatalogus.nl |
| Joinup (EU) |
Europees hergebruik |
joinup.ec.europa.eu |
| GitHub/GitLab |
Broncode hosting |
github.com / gitlab.com |
Implementatie-checklist
Gerelateerde skills
| Skill |
Wanneer te gebruiken |
| nora-architectuur |
Verplichte open standaarden en architectuurprincipes |
| digitoegankelijk |
WCAG-toegankelijkheid voor publieke interfaces |
| nl-design-system |
Herbruikbare UI-componenten als open source |
| gemma-common-ground |
Common Ground open-source componenten |
Meer informatie
1---
2name: publieke-code
3description: >-
4 Helpt bij het open-source publiceren van overheidssoftware conform de
5 Standard for Public Code, publiccode.yml, REUSE-compliance en de
6 Nederlandse open-sourcerichtlijnen. Biedt richtlijnen voor codebase
7 governance, licentiekeuze, community-opbouw en publicatie op
8 developer.overheid.nl. Gebruik deze skill wanneer de gebruiker vraagt
9 over 'publieke code', 'public code', 'Standard for Public Code',
10 'publiccode.yml', 'publiccode yaml', 'REUSE', 'REUSE compliance',
11 'REUSE-compliant', 'open source overheid', 'open source government',
12 'EUPL', 'EUPL licentie', 'EUPL-1.2', 'open source licentie overheid',
13 'code publiceren overheid', 'broncode publiceren', 'source code publish',
14 'softwarecatalogus', 'developer overheid', 'code.overheid.nl',
15 'GitHub overheid', 'GitLab overheid',
16 'open source compliance', 'licentiekeuze overheid',
17 'open source beleid', 'open source policy',
18 'hergebruik software', 'software reuse government',
19 'community management open source', 'OSPO', 'OSPO overheid',
20 'CONTRIBUTING.md', 'CODE_OF_CONDUCT.md',
21 of wanneer de gebruiker overheidssoftware open source wil publiceren
22 of wil voldoen aan de Standard for Public Code.
23model: sonnet
24allowed-tools:
25 - WebFetch(*)
26 - Bash(gh api *)
27 - Bash(gh search *)
28metadata:
29 source: https://skillmd.com/skills/aibot88/publieke-code
30---
31
32# Publieke Code — Open Source Publicatie voor de Overheid
33
34Publiceer overheidssoftware als open source conform de Standard for Public Code en Nederlandse richtlijnen.
35
36Bron: [Standard for Public Code](https://standard.publiccode.net/) | [REUSE](https://reuse.software/) | [developer.overheid.nl](https://developer.overheid.nl/)
37
38## Waarom publieke code?
39
40| Aspect | Detail |
41|--------|--------|
42| **Beleid** | "Open, tenzij" — overheidscode is openbaar tenzij er zwaarwegende redenen zijn |
43| **Wet** | Wet hergebruik overheidsinformatie (Who); Motie Vendrik (2002) |
44| **EU** | Interoperable Europe Act; EU OSPO; Joinup platform |
45| **Voordelen** | Hergebruik, transparantie, leveranciersonafhankelijkheid, samenwerking, innovatie |
46| **Kader** | Standard for Public Code (Foundation for Public Code) |
47| **Licentie** | EUPL-1.2 (aanbevolen), Apache-2.0, MIT |
48
49## Standard for Public Code — criteria
50
51| Criterium | Beschrijving | Vereist |
52|----------|-------------|---------|
53| **Code in the open** | Repository is publiek toegankelijk | Ja |
54| **Bundle policy and source code** | Beleid en code in dezelfde repository | Ja |
55| **Create reusable and portable code** | Configureerbaar, geen hardcoded aannames | Ja |
56| **Welcome contributors** | CONTRIBUTING.md, CODE_OF_CONDUCT.md, issue templates | Ja |
57| **Require review of contributions** | Code review via pull requests | Ja |
58| **Document codebase objectives** | README met doel, installatie, gebruik | Ja |
59| **Document the code** | Inline documentatie, API-docs | Ja |
60| **Use plain English** | Documentatie in het Engels (of tweetalig) | Aanbevolen |
61| **Use open standards** | Geen proprietary standaarden of formaten | Ja |
62| **Use continuous integration** | CI/CD pipeline die automatisch test en valideert | Ja |
63| **Publish with an open license** | Open-source licentie (EUPL, Apache, MIT) | Ja |
64| **Make the codebase findable** | publiccode.yml, registratie op softwarecatalogus | Ja |
65| **Use a coherent style** | Linting, formattering, style guide | Ja |
66| **Document codebase maturity** | Lifecycle status (concept, beta, stable, deprecated) | Ja |
67
68## publiccode.yml
69
70Elke publieke codebase bevat een `publiccode.yml` in de root van de repository:
71
72```yaml
73publiccodeYmlVersion: "0.4"
74
75name: Open Zaak
76url: "https://github.com/open-zaak/open-zaak"
77releaseDate: "2026-02-01"
78developmentStatus: stable
79softwareType: standalone/backend
80
81description:
82 nl:
83 shortDescription: "Zaakregistratiecomponent conform ZGW API-standaarden"
84 longDescription: >
85 Open Zaak is een moderne, open-source implementatie van de
86 ZGW API-standaarden voor zaakgericht werken bij gemeenten.
87 documentation: "https://open-zaak.readthedocs.io/"
88 features:
89 - Zaken API
90 - Documenten API
91 - Catalogi API
92 - Besluiten API
93 - Autorisaties API
94
95legal:
96 license: EUPL-1.2
97 mainCopyrightOwner: Dimpact
98 repoOwner: open-zaak
99
100maintenance:
101 type: community
102 contacts:
103 - name: Maykin Media
104 email: info@maykinmedia.nl
105
106platforms:
107 - web
108 - linux
109
110categories:
111 - case-management
112 - document-management
113
114dependsOn:
115 open:
116 - name: Python
117 versionMin: "3.10"
118 - name: PostgreSQL
119 versionMin: "14"
120 - name: Redis
121
122intendedAudience:
123 countries:
124 - nl
125 scope:
126 - government
127
128localisation:
129 localisationReady: true
130 availableLanguages:
131 - nl
132 - en
133```
134
135## REUSE-compliance
136
137REUSE zorgt ervoor dat elke file in de repository duidelijke licentie-informatie heeft.
138
139### REUSE instellen
140
141```bash
142# Installeer de REUSE tool
143pip install reuse
144
145# Voeg licentie-headers toe aan alle bestanden
146reuse annotate --license EUPL-1.2 --copyright "Gemeente Amsterdam" src/**/*.py
147
148# Voeg de licentietekst toe
149reuse download EUPL-1.2
150
151# Controleer REUSE-compliance
152reuse lint
153```
154
155### Bestandsstructuur
156
157```
158project/
159 LICENSES/
160 EUPL-1.2.txt # Volledige licentietekst
161 CC-BY-4.0.txt # Voor documentatie
162 CC0-1.0.txt # Voor configuratie/data
163 .reuse/
164 dep5 # Bulk-licentie-toewijzing
165 src/
166 app.py # SPDX header in elk bestand
167 docs/
168 handleiding.md # CC-BY-4.0 licentie
169 publiccode.yml
170 README.md
171 CONTRIBUTING.md
172 CODE_OF_CONDUCT.md
173 CHANGELOG.md
174```
175
176### SPDX-headers
177
178```python
179# SPDX-FileCopyrightText: 2026 Gemeente Amsterdam
180# SPDX-License-Identifier: EUPL-1.2
181
182"""Zaakregistratie module."""
183```
184
185### .reuse/dep5 (bulk-toewijzing)
186
187```
188Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
189
190Files: *.json *.yaml *.yml *.toml
191Copyright: 2026 Gemeente Amsterdam
192License: EUPL-1.2
193
194Files: docs/*
195Copyright: 2026 Gemeente Amsterdam
196License: CC-BY-4.0
197
198Files: .gitignore .editorconfig
199Copyright: 2026 Gemeente Amsterdam
200License: CC0-1.0
201```
202
203## Licentiekeuze
204
205| Licentie | Type | Aanbevolen voor | Copyleft |
206|----------|------|----------------|----------|
207| **EUPL-1.2** | Copyleft | Overheidssoftware (aanbevolen) | Ja (weak) |
208| **Apache-2.0** | Permissive | Libraries, API-clients | Nee |
209| **MIT** | Permissive | Kleine tools, scripts | Nee |
210| **CC-BY-4.0** | Creative Commons | Documentatie | N.v.t. |
211| **CC0-1.0** | Public Domain | Configuratie, open data | N.v.t. |
212
213### Waarom EUPL-1.2?
214
215| Voordeel | Detail |
216|---------|--------|
217| **Europees** | Officieel vertaald in alle EU-talen; rechtsgeldig in NL |
218| **Compatibel** | Upstream-compatible met GPL, LGPL, AGPL, MPL, EUPL |
219| **Copyleft** | Wijzigingen moeten ook open source zijn (beschermt investering) |
220| **SaaS** | EUPL copyleft geldt ook bij netwerk-interactie (zoals AGPL) |
221| **Geen patentoorlog** | Expliciet patentvergunning |
222
223## Repository-inrichting
224
225### Verplichte bestanden
226
227| Bestand | Inhoud |
228|---------|--------|
229| `README.md` | Doel, installatie, gebruik, bijdragen, licentie |
230| `LICENSE` of `LICENSES/` | Licentietekst(en) |
231| `CONTRIBUTING.md` | Hoe bijdragen; review-proces; code of conduct |
232| `CODE_OF_CONDUCT.md` | Gedragscode (bijv. Contributor Covenant) |
233| `CHANGELOG.md` | Wijzigingslog (Keep a Changelog) |
234| `publiccode.yml` | Machine-leesbare metadata |
235| `.reuse/dep5` | REUSE bulk-licentietoewijzing |
236| `SECURITY.md` | Responsible disclosure beleid |
237
238### GitHub repository template
239
240```bash
241# Security policy
242cat > SECURITY.md << 'EOF'
243# Security Policy
244
245## Responsible Disclosure
246
247Meld beveiligingsproblemen via [security@organisatie.nl](mailto:security@organisatie.nl).
248
249Maak **geen** GitHub issue aan voor beveiligingsproblemen.
250
251## Supported Versions
252
253| Version | Supported |
254|---------|-----------|
255| 2.x | Yes |
256| 1.x | No |
257
258## Response Time
259
260We streven ernaar om binnen 5 werkdagen te reageren.
261EOF
262```
263
264## CI/CD voor publieke code
265
266```yaml
267# .github/workflows/public-code.yml
268name: Public Code Compliance
269
270on: [push, pull_request]
271
272jobs:
273 reuse:
274 runs-on: ubuntu-latest
275 steps:
276 - uses: actions/checkout@v4
277 - uses: fsfe/reuse-action@v4
278
279 publiccode:
280 runs-on: ubuntu-latest
281 steps:
282 - uses: actions/checkout@v4
283 - name: Validate publiccode.yml
284 uses: italia/publiccode-parser-action@v2
285 with:
286 publiccode: publiccode.yml
287
288 standard-for-public-code:
289 runs-on: ubuntu-latest
290 steps:
291 - uses: actions/checkout@v4
292 - name: Check Standard for Public Code
293 run: |
294 # Controleer verplichte bestanden
295 for f in README.md LICENSE CONTRIBUTING.md CODE_OF_CONDUCT.md CHANGELOG.md publiccode.yml SECURITY.md; do
296 if [ ! -f "$f" ] && [ ! -d "LICENSES" ]; then
297 echo "ONTBREEKT: $f"
298 exit 1
299 fi
300 done
301 echo "Alle verplichte bestanden aanwezig"
302```
303
304## Publicatie en vindbaarheid
305
306| Platform | Doel | URL |
307|----------|------|-----|
308| **developer.overheid.nl** | API- en softwarecatalogus | developer.overheid.nl |
309| **Softwarecatalogus (VNG)** | Gemeentelijke software | softwarecatalogus.nl |
310| **Joinup (EU)** | Europees hergebruik | joinup.ec.europa.eu |
311| **GitHub/GitLab** | Broncode hosting | github.com / gitlab.com |
312
313## Implementatie-checklist
314
315- [ ] **Repository publiek**: code is openbaar op GitHub/GitLab
316- [ ] **Licentie**: EUPL-1.2 (of Apache-2.0/MIT) toegepast
317- [ ] **REUSE-compliant**: elke file heeft SPDX-header; `reuse lint` slaagt
318- [ ] **publiccode.yml**: machine-leesbare metadata in repo-root
319- [ ] **README.md**: doel, installatie, gebruik, bijdragen, licentie
320- [ ] **CONTRIBUTING.md**: bijdrage-richtlijnen en review-proces
321- [ ] **CODE_OF_CONDUCT.md**: gedragscode (Contributor Covenant)
322- [ ] **CHANGELOG.md**: wijzigingslog (Keep a Changelog)
323- [ ] **SECURITY.md**: responsible disclosure beleid
324- [ ] **CI/CD**: pipeline die test, lint en valideert
325- [ ] **Code review**: pull request vereist voor alle wijzigingen
326- [ ] **Catalogus**: geregistreerd op developer.overheid.nl en/of softwarecatalogus
327- [ ] **Documentatie**: installatie, configuratie, API-docs bijgewerkt
328
329## Gerelateerde skills
330
331| Skill | Wanneer te gebruiken |
332|-------|---------------------|
333| **nora-architectuur** | Verplichte open standaarden en architectuurprincipes |
334| **digitoegankelijk** | WCAG-toegankelijkheid voor publieke interfaces |
335| **nl-design-system** | Herbruikbare UI-componenten als open source |
336| **gemma-common-ground** | Common Ground open-source componenten |
337
338## Meer informatie
339
340- [Standard for Public Code](https://standard.publiccode.net/) | [Criteria](https://standard.publiccode.net/criteria/)
341- [Foundation for Public Code](https://publiccode.net/)
342- [REUSE](https://reuse.software/) | [REUSE FAQ](https://reuse.software/faq/)
343- [EUPL-1.2](https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12)
344- [publiccode.yml standaard](https://yml.publiccode.tools/)
345- [developer.overheid.nl](https://developer.overheid.nl/)
346- [Joinup (EU)](https://joinup.ec.europa.eu/) — Europees hergebruik platform
347- [Open Source beleid Rijksoverheid](https://www.digitaleoverheid.nl/overzicht-van-alle-onderwerpen/open-source/)