# minimaxir/big-list-of-naughty-strings architecture

> Architecture diagram of the GitHub repository minimaxir/big-list-of-naughty-strings, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/minimaxir/big-list-of-naughty-strings
- Repository: https://github.com/minimaxir/big-list-of-naughty-strings

## Overview

This repository is a reusable corpus of unusual and potentially troublesome user-input strings, not an application that processes a user request. QA users obtain the test corpus in a human-readable text form, JSON form, or through the Python and Go accessors; the Go package also exposes Base64-encoded entries. The graph focuses on these distribution and access paths. The README documents text-to-JSON generation, but the conversion script is excluded as maintenance tooling. The Go resource implementation is generated and its excerpt is incomplete, so only relationships visible in the package source and README are shown.

Main entry points: [`naughtystrings/naughtystrings.go`](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/naughtystrings.go) (Go accessors), [`naughtystrings/internal/resource.go`](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/internal/resource.go) (Embedded assets), [`blns.json`](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.json) (JSON strings), [`naughtystrings/__init__.py`](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/__init__.py) (Python accessor)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_corpus["String corpus"]
  node_text["Readable strings<br/>[blns.txt]"]
end

subgraph group_formats["Data formats"]
  node_json["JSON strings<br/>[blns.json]"]
  node_base64json["Base64 JSON<br/>[blns.base64.json]"]
end

subgraph group_access["Library access"]
  node_pyapi["Python accessor<br/>[__init__.py]"]
  node_goapi["Go accessors<br/>[naughtystrings.go]"]
  node_goassets["Embedded assets<br/>[resource.go]"]
end

node_qa(("QA user"))

node_qa -->|"uses for testing"| node_text
node_qa -->|"loads for testing"| node_json
node_qa -->|"calls accessor"| node_pyapi
node_qa -->|"calls accessor"| node_goapi
node_pyapi -->|"reads lines"| node_text
node_goapi -->|"loads assets"| node_goassets
node_goassets -->|"embeds data"| node_json
node_goassets -->|"embeds data"| node_base64json
node_goapi -->|"decodes strings"| node_json
node_goapi -->|"decodes strings"| node_base64json

click node_text "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt"
click node_json "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.json"
click node_base64json "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.base64.json"
click node_pyapi "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/__init__.py"
click node_goapi "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/naughtystrings.go"
click node_goassets "https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/internal/resource.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_text,node_qa toneBlue
class node_json,node_base64json toneAmber
class node_pyapi,node_goapi,node_goassets toneMint
```

## Components

### String corpus

- [Readable strings](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.txt): `blns.txt`

### Data formats

- [JSON strings](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.json): `blns.json`
- [Base64 JSON](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/blns.base64.json): `blns.base64.json`

### Library access

- [Python accessor](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/__init__.py): `naughtystrings/__init__.py`
- [Go accessors](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/naughtystrings.go): `naughtystrings/naughtystrings.go`
- [Embedded assets](https://github.com/minimaxir/big-list-of-naughty-strings/blob/master/naughtystrings/internal/resource.go): `naughtystrings/internal/resource.go`

### Other components

- **QA user**

## Connections

- QA user → Readable strings: uses for testing (evidence: `README.md`)
- QA user → JSON strings: loads for testing (evidence: `README.md`)
- QA user → Python accessor: calls accessor (evidence: `naughtystrings/__init__.py`)
- QA user → Go accessors: calls accessor (evidence: `naughtystrings/naughtystrings.go`)
- Python accessor → Readable strings: reads lines (evidence: `naughtystrings/__init__.py`)
- Go accessors → Embedded assets: loads assets (evidence: `naughtystrings/naughtystrings.go`)
- Embedded assets → JSON strings: embeds data (evidence: `naughtystrings/internal/resource.go`)
- Embedded assets → Base64 JSON: embeds data (evidence: `naughtystrings/internal/resource.go`)
- Go accessors → JSON strings: decodes strings (evidence: `naughtystrings/naughtystrings.go`)
- Go accessors → Base64 JSON: decodes strings (evidence: `naughtystrings/naughtystrings.go`)
