staticforge 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +49 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +4 -0
- package/dist/bin.js.map +1 -0
- package/dist/browser.d.ts +3 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +18 -0
- package/dist/browser.js.map +1 -0
- package/dist/cloud.d.ts +31 -0
- package/dist/cloud.d.ts.map +1 -0
- package/dist/cloud.js +102 -0
- package/dist/cloud.js.map +1 -0
- package/dist/command.d.ts +54 -0
- package/dist/command.d.ts.map +1 -0
- package/dist/command.js +70 -0
- package/dist/command.js.map +1 -0
- package/dist/commands/build.d.ts +4 -0
- package/dist/commands/build.d.ts.map +1 -0
- package/dist/commands/build.js +54 -0
- package/dist/commands/build.js.map +1 -0
- package/dist/commands/check.d.ts +4 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +100 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/config.d.ts +4 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +27 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/deploy.d.ts +4 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +184 -0
- package/dist/commands/deploy.js.map +1 -0
- package/dist/commands/dev.d.ts +4 -0
- package/dist/commands/dev.d.ts.map +1 -0
- package/dist/commands/dev.js +81 -0
- package/dist/commands/dev.js.map +1 -0
- package/dist/commands/iac.d.ts +4 -0
- package/dist/commands/iac.d.ts.map +1 -0
- package/dist/commands/iac.js +64 -0
- package/dist/commands/iac.js.map +1 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +55 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/mcp.d.ts +4 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +46 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/new.d.ts +4 -0
- package/dist/commands/new.d.ts.map +1 -0
- package/dist/commands/new.js +30 -0
- package/dist/commands/new.js.map +1 -0
- package/dist/commands/preview.d.ts +4 -0
- package/dist/commands/preview.d.ts.map +1 -0
- package/dist/commands/preview.js +34 -0
- package/dist/commands/preview.js.map +1 -0
- package/dist/commands/provision.d.ts +11 -0
- package/dist/commands/provision.d.ts.map +1 -0
- package/dist/commands/provision.js +133 -0
- package/dist/commands/provision.js.map +1 -0
- package/dist/commands/schema.d.ts +4 -0
- package/dist/commands/schema.d.ts.map +1 -0
- package/dist/commands/schema.js +21 -0
- package/dist/commands/schema.js.map +1 -0
- package/dist/commands/version.d.ts +4 -0
- package/dist/commands/version.d.ts.map +1 -0
- package/dist/commands/version.js +17 -0
- package/dist/commands/version.js.map +1 -0
- package/dist/context.d.ts +27 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +19 -0
- package/dist/context.js.map +1 -0
- package/dist/io.d.ts +19 -0
- package/dist/io.d.ts.map +1 -0
- package/dist/io.js +34 -0
- package/dist/io.js.map +1 -0
- package/dist/main.d.ts +10 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +81 -0
- package/dist/main.js.map +1 -0
- package/dist/mcp/invoke.d.ts +29 -0
- package/dist/mcp/invoke.d.ts.map +1 -0
- package/dist/mcp/invoke.js +82 -0
- package/dist/mcp/invoke.js.map +1 -0
- package/dist/mcp/server.d.ts +25 -0
- package/dist/mcp/server.d.ts.map +1 -0
- package/dist/mcp/server.js +531 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/output.d.ts +17 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/output.js +37 -0
- package/dist/output.js.map +1 -0
- package/dist/paths.d.ts +3 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/paths.js +9 -0
- package/dist/paths.js.map +1 -0
- package/dist/project.d.ts +10 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +20 -0
- package/dist/project.js.map +1 -0
- package/dist/schemas.d.ts +16 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +241 -0
- package/dist/schemas.js.map +1 -0
- package/dist/server-options.d.ts +12 -0
- package/dist/server-options.d.ts.map +1 -0
- package/dist/server-options.js +26 -0
- package/dist/server-options.js.map +1 -0
- package/dist/version.d.ts +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +4 -0
- package/dist/version.js.map +1 -0
- package/dist/workers.d.ts +7 -0
- package/dist/workers.d.ts.map +1 -0
- package/dist/workers.js +20 -0
- package/dist/workers.js.map +1 -0
- package/package.json +64 -3
- package/schema/diagnostics.schema.json +183 -0
- package/schema/output.schema.json +1537 -0
- package/schema/staticforge.schema.json +649 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Eleftherios Chaniotakis
|
|
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,50 @@
|
|
|
1
|
-
#
|
|
1
|
+
# staticforge
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`sforge` is a command-line static site generator that scripts and AI agents can drive. It:
|
|
4
|
+
|
|
5
|
+
- builds accessible, well-formed HTML from Markdown or HTML content and a theme, with
|
|
6
|
+
collections, tags, RSS/Atom feeds, a sitemap, responsive images and client-side search,
|
|
7
|
+
- checks the output against WCAG 2.2 AA (html-validate and axe-core in headless Chromium), and
|
|
8
|
+
repairs what it safely can,
|
|
9
|
+
- serves a local preview with live reload and a problems overlay,
|
|
10
|
+
- provisions and deploys to AWS (private S3 + CloudFront) and Azure Static Web Apps with
|
|
11
|
+
OpenTofu or Terraform, with versions, rollbacks and PR previews,
|
|
12
|
+
- offers all of this to AI agents as an MCP server, and to scripts as JSON with schemas.
|
|
13
|
+
|
|
14
|
+
## Install
|
|
15
|
+
|
|
16
|
+
Requires Node.js 22.22+ or 24.8+.
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npm install --save-dev staticforge
|
|
20
|
+
npx sforge init my-site --title "My Site" --base-url https://www.example.com
|
|
21
|
+
cd my-site
|
|
22
|
+
npx sforge dev # http://127.0.0.1:4321, rebuilds and reloads on every change
|
|
23
|
+
npx sforge check # accessibility and link checks; --fix repairs what it safely can
|
|
24
|
+
npx sforge build # → dist/
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The rendered checks need Chromium: `npx playwright-core install --only-shell chromium` (sforge
|
|
28
|
+
prints the exact command when it is missing). Provisioning downloads a checksum-verified
|
|
29
|
+
OpenTofu on first use, or uses Terraform from your PATH.
|
|
30
|
+
|
|
31
|
+
## AI agents
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
claude mcp add sforge -- npx sforge mcp
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Every command also accepts `--json` and writes one JSON document described by
|
|
38
|
+
`sforge schema output`.
|
|
39
|
+
|
|
40
|
+
## Documentation
|
|
41
|
+
|
|
42
|
+
- [Content](https://github.com/elchanio-76/sforge/blob/main/docs/content/content.md)
|
|
43
|
+
- [Themes](https://github.com/elchanio-76/sforge/blob/main/docs/content/themes.md)
|
|
44
|
+
- [Checking a site](https://github.com/elchanio-76/sforge/blob/main/docs/content/checker.md)
|
|
45
|
+
- [Provisioning and deploying](https://github.com/elchanio-76/sforge/blob/main/docs/content/deploy.md)
|
|
46
|
+
- [AI agents: MCP server and JSON output](https://github.com/elchanio-76/sforge/blob/main/docs/content/mcp.md)
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|