Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques. https://astro-shield.kindspells.dev
  • TypeScript 91.8%
  • JavaScript 3.1%
  • Astro 2.9%
  • CSS 2.1%
Find a file
Andrés Correa Casablanca 6cb8dff18d
fix: accept empty script blocks with spaces
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
2024-11-02 17:51:23 +01:00
.github chore: upgrade deps 2024-10-06 10:09:03 +02:00
.hooks docs: enable sri in docs site 2024-03-31 14:45:12 +02:00
.moon chore: upgrade deps 2024-10-06 10:09:03 +02:00
@kindspells/astro-shield fix: accept empty script blocks with spaces 2024-11-02 17:51:23 +01:00
docs fix: regression or integration execution ordering 2024-11-02 17:10:03 +01:00
.editorconfig fix: ensure that allowed scripts are in hashes module 2024-03-31 03:37:15 +02:00
.gitignore refactor: optimise package size 2024-09-14 11:39:52 +02:00
.node-version chore: upgrade deps 2024-09-22 15:12:29 +02:00
biome.json chore: upgrade deps 2024-11-02 17:10:03 +01:00
CODE_OF_CONDUCT.md docs: add spdx license annotations 2024-02-16 21:26:52 +01:00
CONTRIBUTING.md docs: add spdx license annotations 2024-02-16 21:26:52 +01:00
LICENSE docs: duplicate license & readme for now 2024-03-28 13:16:26 +01:00
package.json chore: upgrade deps 2024-11-02 17:10:03 +01:00
pnpm-lock.yaml fix: regression or integration execution ordering 2024-11-02 17:10:03 +01:00
pnpm-workspace.yaml refactor: optimise package size 2024-09-14 11:39:52 +02:00
README.md docs: openssf badge 2024-09-12 01:22:31 +02:00
SECURITY.md feat!: rename library 2024-02-27 10:17:45 +01:00

Astro-Shield

NPM Version NPM Downloads GitHub commit activity GitHub Actions Workflow Status Socket Badge OpenSSF Best Practices

Introduction

Astro-Shield helps you to enhance the security of your Astro site.

How to install

# With NPM
npm install --save-dev @kindspells/astro-shield

# With Yarn
yarn add --dev @kindspells/astro-shield

# With PNPM
pnpm add --save-dev @kindspells/astro-shield

How to use

In your astro.config.mjs file:

import { defineConfig } from 'astro/config'
import { shield } from '@kindspells/astro-shield'

export default defineConfig({
  integrations: [
    shield({})
  ]
})

Learn more

Other Relevant Guidelines

Main Contributors

This library has been created and is being maintained by KindSpells Labs.

License

This library is released under MIT License.