seo-suite 0.0.0-stage → 0.0.1
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 +45 -2
- package/index.d.ts +19 -0
- package/index.js +7 -0
- package/package.json +49 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aqib
|
|
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,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# seo-suite
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A framework-agnostic SEO toolkit for modern web apps.
|
|
4
|
+
|
|
5
|
+
> **Status: early placeholder.** The name is reserved and the API is not stable
|
|
6
|
+
> yet. Do not depend on this in production.
|
|
7
|
+
|
|
8
|
+
## What it will do
|
|
9
|
+
|
|
10
|
+
- **Metadata** — titles, descriptions, Open Graph and Twitter cards from one config
|
|
11
|
+
- **Canonicals and hreflang** — declare the rules once, correct output everywhere
|
|
12
|
+
- **Sitemaps and robots** — generated from your real routes, split automatically when large
|
|
13
|
+
- **Structured data** — type-safe JSON-LD builders (Product, Article, FAQ, LocalBusiness, Breadcrumb)
|
|
14
|
+
- **Programmatic pages** — generate landing pages from data, with internal linking and duplicate checks
|
|
15
|
+
- **CI checks** — fail the build on broken canonicals, duplicate titles, invalid JSON-LD, 404s in the sitemap
|
|
16
|
+
- **AI crawlers** — generate and keep `llms.txt` in sync with your content
|
|
17
|
+
|
|
18
|
+
## Planned packages
|
|
19
|
+
|
|
20
|
+
| Package | Purpose |
|
|
21
|
+
| --- | --- |
|
|
22
|
+
| `seo-suite` | Core logic, config and validators |
|
|
23
|
+
| `seo-suite-next` | Next.js App Router adapter |
|
|
24
|
+
| `seo-suite-cli` | Crawl and check from the terminal or CI |
|
|
25
|
+
|
|
26
|
+
## Install
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npm install seo-suite
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Usage (preview)
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
import { defineSeoConfig } from 'seo-suite';
|
|
36
|
+
|
|
37
|
+
export default defineSeoConfig({
|
|
38
|
+
siteUrl: 'https://example.com',
|
|
39
|
+
defaultLocale: 'en',
|
|
40
|
+
locales: ['en', 'de'],
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const version: string;
|
|
2
|
+
|
|
3
|
+
export interface SeoCoreConfig {
|
|
4
|
+
/** Canonical site origin, e.g. "https://example.com" (no trailing slash). */
|
|
5
|
+
siteUrl: string;
|
|
6
|
+
/** Default locale, e.g. "en". */
|
|
7
|
+
defaultLocale?: string;
|
|
8
|
+
/** All supported locales, used for hreflang output. */
|
|
9
|
+
locales?: string[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Identity helper that gives you type-checking on your SEO config. */
|
|
13
|
+
export declare function defineSeoConfig(config: SeoCoreConfig): SeoCoreConfig;
|
|
14
|
+
|
|
15
|
+
declare const _default: {
|
|
16
|
+
version: string;
|
|
17
|
+
defineSeoConfig: typeof defineSeoConfig;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seo-suite",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Framework-agnostic SEO toolkit: metadata, sitemaps, structured data and CI checks. Early placeholder release, API not stable yet.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"seo",
|
|
7
|
+
"sitemap",
|
|
8
|
+
"robots",
|
|
9
|
+
"metadata",
|
|
10
|
+
"opengraph",
|
|
11
|
+
"canonical",
|
|
12
|
+
"hreflang",
|
|
13
|
+
"structured-data",
|
|
14
|
+
"json-ld",
|
|
15
|
+
"schema-org",
|
|
16
|
+
"llms-txt",
|
|
17
|
+
"nextjs"
|
|
18
|
+
],
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"author": "Aqib",
|
|
21
|
+
"homepage": "https://seosuite.dev",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/aqib-io/seo-suite.git"
|
|
25
|
+
},
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/aqib-io/seo-suite/issues"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"main": "./index.js",
|
|
31
|
+
"types": "./index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./index.d.ts",
|
|
35
|
+
"default": "./index.js"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"index.js",
|
|
40
|
+
"index.d.ts",
|
|
41
|
+
"README.md",
|
|
42
|
+
"LICENSE"
|
|
43
|
+
],
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18"
|
|
47
|
+
},
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"access": "public"
|
|
50
|
+
}
|
|
51
|
+
}
|