MCPcopy Index your code
hub / github.com/TeaCoder52/patcode

github.com/TeaCoder52/patcode @v1.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.1 ↗ · + Follow
63 symbols 160 edges 19 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Patcode

Patcode is a generator of short, structured, human-friendly numeric codes designed for high usability and strong memorability. The library produces predictable, readable patterns suitable for authentication flows such as OTP, SMS verification, 2FA, PIN codes, and onboarding confirmation steps.

Documentation

The full documentation is available in the /docs directory:

License

This project is licensed under the MIT License.

Extension points exported contracts — how you extend this code

CustomStrategyContext (Interface)
(no doc)
src/types.ts
CodeAnalysis (Interface)
(no doc)
src/types.ts
CodePrediction (Interface)
(no doc)
src/types.ts
GenerateOptions (Interface)
(no doc)
src/types.ts

Core symbols most depended-on inside this repo

fromDigits
called by 15
src/types.ts
pickDigit
called by 13
src/types.ts
pickDigit
called by 10
src/utils.ts
pickTwoDifferentDigits
called by 9
src/types.ts
isCodeAllowed
called by 7
src/validator.ts
pickThreeDifferentDigits
called by 6
src/types.ts
generateCode
called by 5
src/index.ts
getRng
called by 4
src/utils.ts

Shape

Function 52
Method 6
Interface 4
Enum 1

Languages

TypeScript100%

Modules by API surface

src/types.ts11 symbols
src/utils.ts10 symbols
src/patterns4.ts8 symbols
src/patterns6.ts7 symbols
src/analyze.ts7 symbols
src/rng.ts5 symbols
src/profile.ts4 symbols
src/index.ts4 symbols
src/predictor.ts3 symbols
test/random.test.ts2 symbols
src/validator.ts1 symbols
src/strategy.ts1 symbols

For agents

$ claude mcp add patcode \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact