Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kindspells/astro-shield
Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.
https://github.com/kindspells/astro-shield
astro astro-integration content-security-policy hacktoberfest hacktoberfest2024 javascript security subresource-integrity withastro xss-protection
Last synced: 4 days ago
JSON representation
Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.
- Host: GitHub
- URL: https://github.com/kindspells/astro-shield
- Owner: kindspells
- License: mit
- Created: 2024-02-10T20:26:48.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T07:47:47.000Z (3 months ago)
- Last Synced: 2024-11-24T20:08:35.597Z (2 months ago)
- Topics: astro, astro-integration, content-security-policy, hacktoberfest, hacktoberfest2024, javascript, security, subresource-integrity, withastro, xss-protection
- Language: TypeScript
- Homepage: https://astro-shield.kindspells.dev
- Size: 966 KB
- Stars: 57
- Watchers: 2
- Forks: 6
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Astro-Shield
[![NPM Version](https://img.shields.io/npm/v/%40kindspells%2Fastro-shield)](https://www.npmjs.com/package/@kindspells/astro-shield)
![NPM Downloads](https://img.shields.io/npm/dw/%40kindspells%2Fastro-shield)
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/kindspells/astro-shield)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/kindspells/astro-shield/tests.yml)
[![Socket Badge](https://socket.dev/api/badge/npm/package/@kindspells/astro-shield)](https://socket.dev/npm/package/@kindspells/astro-shield)
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8733/badge)](https://www.bestpractices.dev/projects/8733)## Introduction
Astro-Shield helps you to enhance the security of your Astro site.
## How to install
```bash
# 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:
```javascript
import { defineConfig } from 'astro/config'
import { shield } from '@kindspells/astro-shield'export default defineConfig({
integrations: [
shield({})
]
})
```## Learn more
- [Astro-Shield Documentation](https://astro-shield.kindspells.dev)
## Other Relevant Guidelines
- [Code of Conduct](https://github.com/KindSpells/astro-shield?tab=coc-ov-file)
- [Contributing Guidelines](https://github.com/KindSpells/astro-shield/blob/main/CONTRIBUTING.md)
- [Security Policy](https://github.com/KindSpells/astro-shield/security/policy)## Main Contributors
This library has been created and is being maintained by
[KindSpells Labs](https://kindspells.dev/?utm_source=github&utm_medium=astro_sri_scp&utm_campaign=floss).## License
This library is released under [MIT License](https://github.com/KindSpells/astro-shield?tab=MIT-1-ov-file).