anthropic-fonts 1.1.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.
- package/CHANGELOG.md +83 -0
- package/LICENSE +21 -0
- package/README.md +682 -0
- package/cdn/v1/css/advanced.css +37 -0
- package/cdn/v1/css/all-ie.css +108 -0
- package/cdn/v1/css/all.css +125 -0
- package/cdn/v1/css/all.min.css +18 -0
- package/cdn/v1/css/anthropicmono.css +13 -0
- package/cdn/v1/css/anthropicsans.css +61 -0
- package/cdn/v1/css/anthropicserif.css +61 -0
- package/cdn/v1/data.json +150 -0
- package/cdn/v1/fonts/AnthropicMono@400.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@300.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@400.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@500.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@600.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@700.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@800.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSans@900.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@300.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@400.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@500.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@600.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@700.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@800.woff2 +0 -0
- package/cdn/v1/fonts/AnthropicSerif@900.woff2 +0 -0
- package/docs/API.md +477 -0
- package/docs/DEPLOYMENT.md +622 -0
- package/docs/PERFORMANCE.md +545 -0
- package/docs/USAGE.md +682 -0
- package/index.js +149 -0
- package/package.json +61 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Anthropic Fonts CDN will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.0] - 2026-04-01
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- ✅ Initial release of Anthropic Fonts CDN
|
|
10
|
+
- ✅ Three font families:
|
|
11
|
+
- Anthropic Sans (7 weights: 300-900)
|
|
12
|
+
- Anthropic Serif (7 weights: 300-900)
|
|
13
|
+
- Anthropic Mono (1 weight: 400)
|
|
14
|
+
- ✅ Multi-weight WOFF2 font files
|
|
15
|
+
- ✅ Auto-generated @font-face CSS rules
|
|
16
|
+
- ✅ Dynamic CSS API endpoint
|
|
17
|
+
- ✅ Font metadata endpoint
|
|
18
|
+
- ✅ Development server with hot reload
|
|
19
|
+
- ✅ Production-ready CDN deployment guides
|
|
20
|
+
- ✅ Comprehensive documentation:
|
|
21
|
+
- Usage guide with framework examples
|
|
22
|
+
- Performance optimization guide
|
|
23
|
+
- API reference
|
|
24
|
+
- Deployment instructions for multiple platforms
|
|
25
|
+
- ✅ Font processing scripts
|
|
26
|
+
- ✅ Validation and testing suite
|
|
27
|
+
- ✅ CORS headers support
|
|
28
|
+
- ✅ Aggressive caching strategy (1 year immutable)
|
|
29
|
+
- ✅ jsDelivr CDN integration
|
|
30
|
+
- ✅ Support for GitHub Pages, Cloudflare R2, AWS S3, self-hosted, Vercel/Netlify
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
- Dynamic CSS generation for selective weight loading
|
|
35
|
+
- Unicode range declarations for subsetting
|
|
36
|
+
- Font display swap for optimal rendering
|
|
37
|
+
- Minified CSS variants
|
|
38
|
+
- IE fallback CSS
|
|
39
|
+
- Metadata API for discovering available fonts
|
|
40
|
+
- Health check endpoint
|
|
41
|
+
- Comprehensive CLI scripts
|
|
42
|
+
|
|
43
|
+
### Performance
|
|
44
|
+
|
|
45
|
+
- WOFF2 format (60% smaller than TTF)
|
|
46
|
+
- Gzip-optimized CSS
|
|
47
|
+
- Cache-busting via URL versioning
|
|
48
|
+
- Font preload support
|
|
49
|
+
- Preconnect recommendations
|
|
50
|
+
|
|
51
|
+
### Documentation
|
|
52
|
+
|
|
53
|
+
- Quick start guide
|
|
54
|
+
- Integration examples for React, Vue, Next.js, Tailwind, Svelte
|
|
55
|
+
- Performance best practices
|
|
56
|
+
- Troubleshooting guide
|
|
57
|
+
- API endpoint documentation
|
|
58
|
+
- Deployment guides for 5+ platforms
|
|
59
|
+
|
|
60
|
+
## Planned Features
|
|
61
|
+
|
|
62
|
+
- [ ] Font subsetting by Unicode range
|
|
63
|
+
- [ ] Italic and oblique styles
|
|
64
|
+
- [ ] Variable font format (single file, all weights)
|
|
65
|
+
- [ ] WebP image fallback
|
|
66
|
+
- [ ] Usage analytics API
|
|
67
|
+
- [ ] CloudFlare Workers integration
|
|
68
|
+
- [ ] Precomputed font pairs
|
|
69
|
+
- [ ] Font preview generator
|
|
70
|
+
|
|
71
|
+
## Known Issues
|
|
72
|
+
|
|
73
|
+
None at release.
|
|
74
|
+
|
|
75
|
+
## Support
|
|
76
|
+
|
|
77
|
+
- Documentation: See `docs/` folder
|
|
78
|
+
- Issues: https://github.com/devchauhann/AnthropicFont/issues
|
|
79
|
+
- Discussions: https://github.com/devchauhann/AnthropicFont/discussions
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
For upgrade instructions, see [DEPLOYMENT.md](docs/DEPLOYMENT.md)
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Anthropic Fonts Contributors
|
|
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.
|