logomarks 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +21 -0
  3. package/README.md +56 -2
  4. package/bin/logomarks.js +4 -0
  5. package/data/fonts/BricolageGrotesque-SemiBold.ttf +0 -0
  6. package/data/fonts/Cagliostro-Regular.ttf +0 -0
  7. package/data/fonts/Fraunces-SemiBold.ttf +0 -0
  8. package/data/fonts/IBMPlexMono-Regular.ttf +0 -0
  9. package/data/fonts/IBMPlexMono-SemiBold.ttf +0 -0
  10. package/data/fonts/InstrumentSans-SemiBold.ttf +0 -0
  11. package/data/fonts/InstrumentSerif-Regular.ttf +0 -0
  12. package/data/fonts/Inter-SemiBold.ttf +0 -0
  13. package/data/fonts/Limelight-Regular.ttf +0 -0
  14. package/data/fonts/OFL.txt +103 -0
  15. package/data/fonts/Shrikhand-Regular.ttf +0 -0
  16. package/data/fonts/SpaceGrotesk-SemiBold.ttf +0 -0
  17. package/data/index.bin +0 -0
  18. package/docs/api.md +31 -0
  19. package/docs/commands.md +412 -0
  20. package/docs/editing.md +61 -0
  21. package/docs/mcp.md +45 -0
  22. package/package.json +94 -4
  23. package/src/brand/brand.d.ts +23 -0
  24. package/src/brand/brand.js +29 -0
  25. package/src/brand/fonts.d.ts +61 -0
  26. package/src/brand/fonts.js +93 -0
  27. package/src/brand/mark.d.ts +53 -0
  28. package/src/brand/mark.js +151 -0
  29. package/src/checks/finding.d.ts +56 -0
  30. package/src/checks/finding.js +57 -0
  31. package/src/checks/fit.d.ts +5 -0
  32. package/src/checks/fit.js +46 -0
  33. package/src/checks/index.d.ts +33 -0
  34. package/src/checks/index.js +57 -0
  35. package/src/checks/specks.d.ts +5 -0
  36. package/src/checks/specks.js +38 -0
  37. package/src/checks/widths.d.ts +7 -0
  38. package/src/checks/widths.js +48 -0
  39. package/src/cli/args.d.ts +20 -0
  40. package/src/cli/args.js +35 -0
  41. package/src/cli/commands/check.d.ts +10 -0
  42. package/src/cli/commands/check.js +66 -0
  43. package/src/cli/commands/combine.d.ts +10 -0
  44. package/src/cli/commands/combine.js +54 -0
  45. package/src/cli/commands/cover.d.ts +10 -0
  46. package/src/cli/commands/cover.js +53 -0
  47. package/src/cli/commands/edit.d.ts +10 -0
  48. package/src/cli/commands/edit.js +70 -0
  49. package/src/cli/commands/find.d.ts +10 -0
  50. package/src/cli/commands/find.js +61 -0
  51. package/src/cli/commands/get.d.ts +10 -0
  52. package/src/cli/commands/get.js +57 -0
  53. package/src/cli/commands/glitch.d.ts +10 -0
  54. package/src/cli/commands/glitch.js +57 -0
  55. package/src/cli/commands/index.d.ts +15 -0
  56. package/src/cli/commands/index.js +24 -0
  57. package/src/cli/commands/kit.d.ts +10 -0
  58. package/src/cli/commands/kit.js +66 -0
  59. package/src/cli/commands/mcp.d.ts +9 -0
  60. package/src/cli/commands/mcp.js +36 -0
  61. package/src/cli/commands/mockup.d.ts +10 -0
  62. package/src/cli/commands/mockup.js +61 -0
  63. package/src/cli/commands/parts.d.ts +10 -0
  64. package/src/cli/commands/parts.js +44 -0
  65. package/src/cli/commands/sheet.d.ts +10 -0
  66. package/src/cli/commands/sheet.js +66 -0
  67. package/src/cli/commands/similar.d.ts +10 -0
  68. package/src/cli/commands/similar.js +111 -0
  69. package/src/cli/commands/social.d.ts +10 -0
  70. package/src/cli/commands/social.js +65 -0
  71. package/src/cli/commands/specks.d.ts +20 -0
  72. package/src/cli/commands/specks.js +103 -0
  73. package/src/cli/edited.d.ts +6 -0
  74. package/src/cli/edited.js +32 -0
  75. package/src/cli/files.d.ts +4 -0
  76. package/src/cli/files.js +27 -0
  77. package/src/cli/help.d.ts +20 -0
  78. package/src/cli/help.js +55 -0
  79. package/src/cli/index.d.ts +10 -0
  80. package/src/cli/index.js +104 -0
  81. package/src/cli/options.d.ts +30 -0
  82. package/src/cli/options.js +155 -0
  83. package/src/cli/report.d.ts +4 -0
  84. package/src/cli/report.js +28 -0
  85. package/src/cli/style.d.ts +4 -0
  86. package/src/cli/style.js +34 -0
  87. package/src/cover/index.d.ts +49 -0
  88. package/src/cover/index.js +63 -0
  89. package/src/edit/combine.d.ts +31 -0
  90. package/src/edit/combine.js +103 -0
  91. package/src/edit/doc.d.ts +34 -0
  92. package/src/edit/doc.js +96 -0
  93. package/src/edit/glitch.d.ts +48 -0
  94. package/src/edit/glitch.js +43 -0
  95. package/src/edit/index.d.ts +8 -0
  96. package/src/edit/index.js +11 -0
  97. package/src/edit/ops.d.ts +51 -0
  98. package/src/edit/ops.js +90 -0
  99. package/src/edit/preview.d.ts +8 -0
  100. package/src/edit/preview.js +51 -0
  101. package/src/find/index.d.ts +54 -0
  102. package/src/find/index.js +88 -0
  103. package/src/index.d.ts +30 -0
  104. package/src/index.js +28 -0
  105. package/src/kit/index.d.ts +26 -0
  106. package/src/kit/index.js +31 -0
  107. package/src/mcp/content.d.ts +30 -0
  108. package/src/mcp/content.js +56 -0
  109. package/src/mcp/edited.d.ts +5 -0
  110. package/src/mcp/edited.js +25 -0
  111. package/src/mcp/index.d.ts +41 -0
  112. package/src/mcp/index.js +72 -0
  113. package/src/mcp/inputs.d.ts +46 -0
  114. package/src/mcp/inputs.js +122 -0
  115. package/src/mcp/preview.d.ts +4 -0
  116. package/src/mcp/preview.js +24 -0
  117. package/src/mcp/tools/check.d.ts +15 -0
  118. package/src/mcp/tools/check.js +47 -0
  119. package/src/mcp/tools/combine.d.ts +15 -0
  120. package/src/mcp/tools/combine.js +42 -0
  121. package/src/mcp/tools/cover.d.ts +20 -0
  122. package/src/mcp/tools/cover.js +46 -0
  123. package/src/mcp/tools/edit.d.ts +21 -0
  124. package/src/mcp/tools/edit.js +73 -0
  125. package/src/mcp/tools/find.d.ts +14 -0
  126. package/src/mcp/tools/find.js +36 -0
  127. package/src/mcp/tools/get.d.ts +15 -0
  128. package/src/mcp/tools/get.js +44 -0
  129. package/src/mcp/tools/glitch.d.ts +12 -0
  130. package/src/mcp/tools/glitch.js +39 -0
  131. package/src/mcp/tools/index.d.ts +4 -0
  132. package/src/mcp/tools/index.js +23 -0
  133. package/src/mcp/tools/kit.d.ts +28 -0
  134. package/src/mcp/tools/kit.js +51 -0
  135. package/src/mcp/tools/mockup.d.ts +22 -0
  136. package/src/mcp/tools/mockup.js +51 -0
  137. package/src/mcp/tools/sheet.d.ts +15 -0
  138. package/src/mcp/tools/sheet.js +43 -0
  139. package/src/mcp/tools/similar.d.ts +13 -0
  140. package/src/mcp/tools/similar.js +42 -0
  141. package/src/mcp/tools/social.d.ts +5 -0
  142. package/src/mcp/tools/social.js +68 -0
  143. package/src/mockup/index.d.ts +52 -0
  144. package/src/mockup/index.js +152 -0
  145. package/src/raster/render.d.ts +30 -0
  146. package/src/raster/render.js +100 -0
  147. package/src/rules.d.ts +73 -0
  148. package/src/rules.js +139 -0
  149. package/src/sheet/card.d.ts +20 -0
  150. package/src/sheet/card.js +190 -0
  151. package/src/sheet/draw.d.ts +26 -0
  152. package/src/sheet/draw.js +94 -0
  153. package/src/sheet/grid.d.ts +2 -0
  154. package/src/sheet/grid.js +32 -0
  155. package/src/sheet/index.d.ts +31 -0
  156. package/src/sheet/index.js +47 -0
  157. package/src/sheet/theme.d.ts +8 -0
  158. package/src/sheet/theme.js +45 -0
  159. package/src/similar/folder.d.ts +20 -0
  160. package/src/similar/folder.js +66 -0
  161. package/src/similar/nearest.d.ts +32 -0
  162. package/src/similar/nearest.js +60 -0
  163. package/src/similar/signature.d.ts +12 -0
  164. package/src/similar/signature.js +42 -0
  165. package/src/similar/store.d.ts +67 -0
  166. package/src/similar/store.js +88 -0
  167. package/src/util/color.d.ts +2 -0
  168. package/src/util/color.js +23 -0
  169. package/src/util/files.d.ts +8 -0
  170. package/src/util/files.js +60 -0
  171. package/src/util/round.d.ts +2 -0
  172. package/src/util/round.js +14 -0
  173. package/src/util/version.d.ts +2 -0
  174. package/src/util/version.js +10 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,25 @@
1
+ # Changelog
2
+
3
+ All notable changes to `logomarks` are documented here.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.0.0] — 2026-11-06
9
+
10
+ The first public release (0.2.0 was never published).
11
+
12
+ ### Added
13
+
14
+ - **Find and get.** `find` searches the bundled Logomarks set (CC0) as logomarks.ai does: every word must match, with synonyms, plurals and UK and US trade names, and `--style`, `--tag`, `--industry` and `--letter` filters. `get` writes a live mark's SVG in a colour, or a PNG at a size.
15
+ - **Check.** `check` runs every house rule (fit to the 512 grid, markup, specks, slivers, pin-holes, clipping, thin parts, narrow and uneven gaps), each finding with an id and a box; `--fix` refits. `similar` scores a mark against every live mark (`--letters`, `--against`, `--each`, `--all`). `specks` is the set's speck review. `sheet` draws review cards, or a plain grid with `--plain`.
16
+ - **Edit.** `parts` lists a mark's parts by index; `edit` runs a JSON list of ops by part (delete, move, rotate, scale, flip, round, offset, mirror, radial, union, subtract, colour, two-tone); `glitch` makes glitch editions (`shear`, `slice`, `bands`, `stepped`, `lane`; the same seed gives the same bytes); `combine` makes two marks one (union, subtract, intersect, exclude, place). Every result is fitted to the grid and checked, and a failing result exits 1.
17
+ - **Build.** `kit` writes a brand kit from `@logomarks/brand-kit`: the mark's files, favicons and app icons, lockups, an OKLCH palette with WCAG pairings, a Tailwind theme and tokens, a brand sheet, a guidelines deck (slides and a PDF), a seal lockup, `brand.json` and a social pack (`--styles` adds an opt-in `gradient` style). `social` writes the social pack alone. `mockup` puts the brand on one of 20 objects; `cover` draws an Open Graph image, header or post.
18
+ - **MCP server.** `logomarks mcp` runs every command as a tool on stdio: `find_marks`, `get_mark`, `check_mark`, `similar_marks`, `review_sheet`, `list_parts`, `edit_mark`, `glitch_mark`, `combine_marks`, `build_brand_kit`, `build_social_pack`, `render_mockup` and `render_cover`. Tools that make images return a preview to look at; given `out`, they write the file and return its path rather than the SVG text. Each tool carries read-only and destructive hints.
19
+ - **Typefaces.** Ten bundled faces for a brand's name (`--font`), all SIL OFL: Inter, Space Grotesk, Instrument Sans, Bricolage Grotesque, Instrument Serif, IBM Plex Mono, and for restaurants Fraunces, Cagliostro, Limelight and Shrikhand. The faces with a Reserved Font Name (Cagliostro, Limelight, IBM Plex Mono) are the unmodified upstream files, pinned by sha256.
20
+ - **Help.** `logomarks <command> --help` (or `logomarks help <command>`) for every command, with its options, defaults and examples; `--version`.
21
+ - **Errors.** Exit codes 0 ok, 1 a check failed or the command failed, 2 usage. Errors are one line naming the command; `LOGOMARKS_DEBUG=1` adds the stack.
22
+ - **Library.** Every function behind the commands is exported (`logomarks`), and the MCP server too (`logomarks/mcp`), with TypeScript declarations.
23
+ - Docs in `docs/`: commands, editing, MCP tools and the API.
24
+
25
+ Built on `@logomarks/core`, `@logomarks/editor`, `@logomarks/brand-kit`, `@logomarks/mockups`, `@arraypress/covers` and `@arraypress/search`. Pure JavaScript: PNGs are drawn by resvg in WebAssembly, with no native binaries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ArrayPress Limited
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,57 @@
1
- # Temporary Holding Version
1
+ # logomarks
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Find, check, edit and build on free geometric logomarks from the command line or an AI agent. The [Logomarks](https://logomarks.ai) set is bundled (CC0, searched offline); the CLI checks marks against the set's house rules, edits and glitches them, and builds a brand kit, social pack, mockups and covers. It also runs as an MCP server. Pure JavaScript (resvg in WebAssembly), no native binaries, Node 20 or later.
4
+
5
+ ```bash
6
+ npx logomarks find coffee
7
+ ```
8
+
9
+ ## Commands
10
+
11
+ ```bash
12
+ npx logomarks find calm hexagon # search the set: slugs, styles, descriptions
13
+ npx logomarks get hex-gem --color '#ff5c3a' -o logo.svg
14
+ npx logomarks check mark.svg # every house rule; exit 1 on errors
15
+ npx logomarks similar mark.svg # the nearest live marks, with scores
16
+ npx logomarks edit quad-cove --ops '[{"op":"round","radius":18}]' -o mine.svg
17
+ npx logomarks glitch quad-cove --preset shear --seed 3 -o glitched.svg
18
+ npx logomarks kit hex-gem --name "Hexa Labs" --color '#ff5c3a' -o hexa/
19
+ npx logomarks mockup hex-gem --name "Hexa Labs" --object card -o card.png
20
+ ```
21
+
22
+ Also `specks`, `sheet`, `parts`, `combine`, `social`, `cover` and `mcp`. Run `logomarks --help` for the list and `logomarks <command> --help` for a command's options. A mark is a live slug or name, or the path to your own `.svg`. Every edit comes back fitted to the grid and checked. Every command takes `--json`. Exit codes: 0 ok, 1 a check failed or the command failed, 2 usage.
23
+
24
+ ## AI agents
25
+
26
+ As a Claude Code plugin, with the two Logomarks skills (picking a mark, designing new ones) and this MCP server:
27
+
28
+ ```
29
+ /plugin marketplace add logomarks/skills
30
+ /plugin install logomarks@logomarks
31
+ ```
32
+
33
+ The skills alone, for any agent that reads skills (Claude Code, Cursor, Codex and more):
34
+
35
+ ```bash
36
+ npx skills add logomarks/skills
37
+ ```
38
+
39
+ The MCP server alone:
40
+
41
+ ```bash
42
+ claude mcp add logomarks -- npx -y logomarks mcp
43
+ codex mcp add logomarks -- npx -y logomarks mcp
44
+ ```
45
+
46
+ ## Docs
47
+
48
+ - [Commands](docs/commands.md): every command, its options and exit codes, and the checks.
49
+ - [Editing](docs/editing.md): glitch presets, edit ops and combining.
50
+ - [MCP tools](docs/mcp.md): each tool, its arguments and what it returns.
51
+ - [API](docs/api.md): the functions behind them, for use as a library.
52
+
53
+ Built on [`@logomarks/core`](https://github.com/Logomarks/core), [`@logomarks/editor`](https://github.com/Logomarks/editor), [`@logomarks/brand-kit`](https://github.com/Logomarks/brand-kit), [`@logomarks/mockups`](https://github.com/Logomarks/mockups) and [`@arraypress/covers`](https://github.com/arraypress/covers).
54
+
55
+ ## Licence
56
+
57
+ The CLI is MIT © ArrayPress Limited. The marks are CC0 (public domain). The bundled typefaces are SIL Open Font License 1.1 (`data/fonts/OFL.txt`).
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { main } from '../src/cli/index.js';
3
+
4
+ process.exitCode = await main(process.argv.slice(2));
Binary file
Binary file
Binary file
@@ -0,0 +1,103 @@
1
+ Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
+ Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk)
3
+ Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) InstrumentSans-Italic[wdth,wght].ttf: Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans)
4
+ Copyright 2022 The Bricolage Grotesque Project Authors (https://github.com/ateliertriay/bricolage)
5
+ Copyright 2022 The Instrument Serif Project Authors (https://github.com/Instrument/instrument-serif) InstrumentSerif-Italic.ttf: Copyright 2022 The Instrument Serif Project Authors (https://github.com/Instrument/instrument-serif)
6
+ Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces) Fraunces-Italic[SOFT,WONK,opsz,wght].ttf: Copyright 2020 The Fraunces Project Authors (github.com/undercasetype/Fraunces)
7
+ Copyright (c) 2011, Matthew Desmond (http://www.madtype.com | mattdesmond@gmail.com),with Reserved Font Name Cagliostro.
8
+ Copyright (c) 2011 by Sorkin Type Co (www.sorkintype.com),
9
+ with Reserved Font Name "Limelight".
10
+ Copyright (c) 2015 Jonny Pinhorn (jonpinhorn.typedesign@gmail.com)
11
+ Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
12
+
13
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
14
+ This license is copied below, and is also available with a FAQ at:
15
+ http://scripts.sil.org/OFL
16
+
17
+
18
+ -----------------------------------------------------------
19
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
20
+ -----------------------------------------------------------
21
+
22
+ PREAMBLE
23
+ The goals of the Open Font License (OFL) are to stimulate worldwide
24
+ development of collaborative font projects, to support the font creation
25
+ efforts of academic and linguistic communities, and to provide a free and
26
+ open framework in which fonts may be shared and improved in partnership
27
+ with others.
28
+
29
+ The OFL allows the licensed fonts to be used, studied, modified and
30
+ redistributed freely as long as they are not sold by themselves. The
31
+ fonts, including any derivative works, can be bundled, embedded,
32
+ redistributed and/or sold with any software provided that any reserved
33
+ names are not used by derivative works. The fonts and derivatives,
34
+ however, cannot be released under any other type of license. The
35
+ requirement for fonts to remain under this license does not apply
36
+ to any document created using the fonts or their derivatives.
37
+
38
+ DEFINITIONS
39
+ "Font Software" refers to the set of files released by the Copyright
40
+ Holder(s) under this license and clearly marked as such. This may
41
+ include source files, build scripts and documentation.
42
+
43
+ "Reserved Font Name" refers to any names specified as such after the
44
+ copyright statement(s).
45
+
46
+ "Original Version" refers to the collection of Font Software components as
47
+ distributed by the Copyright Holder(s).
48
+
49
+ "Modified Version" refers to any derivative made by adding to, deleting,
50
+ or substituting -- in part or in whole -- any of the components of the
51
+ Original Version, by changing formats or by porting the Font Software to a
52
+ new environment.
53
+
54
+ "Author" refers to any designer, engineer, programmer, technical
55
+ writer or other person who contributed to the Font Software.
56
+
57
+ PERMISSION & CONDITIONS
58
+ Permission is hereby granted, free of charge, to any person obtaining
59
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
60
+ redistribute, and sell modified and unmodified copies of the Font
61
+ Software, subject to the following conditions:
62
+
63
+ 1) Neither the Font Software nor any of its individual components,
64
+ in Original or Modified Versions, may be sold by itself.
65
+
66
+ 2) Original or Modified Versions of the Font Software may be bundled,
67
+ redistributed and/or sold with any software, provided that each copy
68
+ contains the above copyright notice and this license. These can be
69
+ included either as stand-alone text files, human-readable headers or
70
+ in the appropriate machine-readable metadata fields within text or
71
+ binary files as long as those fields can be easily viewed by the user.
72
+
73
+ 3) No Modified Version of the Font Software may use the Reserved Font
74
+ Name(s) unless explicit written permission is granted by the corresponding
75
+ Copyright Holder. This restriction only applies to the primary font name as
76
+ presented to the users.
77
+
78
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
79
+ Software shall not be used to promote, endorse or advertise any
80
+ Modified Version, except to acknowledge the contribution(s) of the
81
+ Copyright Holder(s) and the Author(s) or with their explicit written
82
+ permission.
83
+
84
+ 5) The Font Software, modified or unmodified, in part or in whole,
85
+ must be distributed entirely under this license, and must not be
86
+ distributed under any other license. The requirement for fonts to
87
+ remain under this license does not apply to any document created
88
+ using the Font Software.
89
+
90
+ TERMINATION
91
+ This license becomes null and void if any of the above conditions are
92
+ not met.
93
+
94
+ DISCLAIMER
95
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
96
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
97
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
98
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
99
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
100
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
101
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
102
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
103
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
package/data/index.bin ADDED
Binary file
package/docs/api.md ADDED
@@ -0,0 +1,31 @@
1
+ # API
2
+
3
+ ```js
4
+ import { check, glitchMark, kit } from 'logomarks';
5
+ import { createServer, TOOLS } from 'logomarks/mcp';
6
+ ```
7
+
8
+ | Export | |
9
+ |---|---|
10
+ | `check(svg, { name, ignore, strict })` | `{ ok, errors, warnings, notes, size, findings }`. |
11
+ | `fix(svg)` | The mark refitted, or `null` when there's nothing safe to fix. |
12
+ | `similar(svg, { top, letters, exclude })` | `[{ slug, name, score, verdict }]`, closest first. |
13
+ | `sheet([{ name, svg }])` | `{ png, svg, marks }`. |
14
+ | `findMarks(query, { style, tags, industry, letter, limit })`, `facets()` | `{ total, marks }`; the filters' values. |
15
+ | `fitMark(svg)`, `loadIndex()`, `FINDINGS`, `rules` | The fitter, the live set, every finding id, the house rules. |
16
+ | `loadMark(ref)`, `paint(svg, color)`, `markPng(svg, { size, color })` | A mark by slug, name or file; as a file in a colour; as a PNG. |
17
+ | `glitchMark(svg, { preset, angle, place, slide, gap, cuts, seed })` | `{ svg, checks, glitch }`. |
18
+ | `editMark(svg, ops)`, `markParts(svg)` | `{ svg, checks, parts }`; the parts by index. |
19
+ | `combineMarks(a, b, { op, transform })` | `{ svg, checks }`. |
20
+ | `markPreview(svg)`, `partsPreview(svg, parts)` | 512 px PNGs: the result; the parts numbered. |
21
+ | `PRESETS`, `OPS`, `COMBINE_OPS` | The glitch presets, the edit ops, the combine ops. |
22
+ | `kit({ mark, name, color, font, tagline, url, handle, styles, platforms, animated, social })` | brand-kit's `{ files, brand }`: every file by path, in memory. |
23
+ | `social({ mark, name, …, platforms, styles, animated })` | brand-kit's `{ files, brand }`. |
24
+ | `brandInput(o)`, `brandFont(id)` | The brand as brand-kit takes it; a bundled face as bytes. |
25
+ | `mockup({ mark, object, … })`, `cover({ mark, recipe, … })` | `{ png, svg, width, height }`. |
26
+ | `parseColor`, `FONTS`, `OBJECTS`, `RECIPES` | The parts they're built from. |
27
+ | `createServer({ cwd })`, `TOOLS` from `logomarks/mcp` | The MCP server (not connected) and its tools. |
28
+
29
+ The palette, lockups and artwork are [`@logomarks/brand-kit`](https://github.com/Logomarks/brand-kit)'s (`palette`, `lockup`, `artwork`), and the edits are [`@logomarks/editor`](https://github.com/Logomarks/editor)'s.
30
+
31
+ The live set is bundled (`data/index.bin`: each mark's SVG, tags, style, mood, description and industries, and its signatures; rebuilt with `npm run index`). The marks are CC0. The typefaces (IBM Plex Mono for labels; Inter, Space Grotesk, Instrument Sans, Bricolage Grotesque, Instrument Serif, and for restaurants Fraunces, Cagliostro, Limelight and Shrikhand, for names) are SIL OFL, in `data/fonts/` (`OFL.txt`; `scripts/fonts.js` writes them): latin subsets, except the faces with a Reserved Font Name (Cagliostro, Limelight, IBM Plex Mono), bundled whole and pinned by sha256.