You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@mintlify/astro

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mintlify/astro

Mintlify integration for Astro

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
9
Created
Source

@mintlify/astro

Mintlify integration for Astro. Syncs Mintlify-style docs content into Astro content collections and provides MDX components for rendering docs pages.

Install

npm install @mintlify/astro

Peer dependencies: astro, @astrojs/react, @astrojs/mdx, @mintlify/components, and react.

Usage

1. Configure the Astro integration

// astro.config.mjs
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import { mintlify } from '@mintlify/astro';

export default defineConfig({
  integrations: [mintlify({ docsDir: './docs' }), react(), mdx()],
});

2. Use MDX components in a docs page

---
import { render } from 'astro:content';
import { components } from '@mintlify/astro/components';
---

<Content components={components} />

Expected docs structure

  • ./docs/docs.json — navigation and site configuration
  • ./docs/**/*.mdx — page content
  • ./docs/snippets/* — reusable content snippets (optional)
  • Static assets anywhere in ./docs/** (.png, .jpg, .jpeg, .gif, .webp, .svg, .ico, .mp4, .webm, .mp3, .wav, .css, .woff, .woff2, .ttf, .eot)

At build setup time, the integration generates files under .mintlify/:

DirectoryContents
.mintlify/docs/Synced page content
.mintlify/components/Extracted React components
.mintlify/static/Static assets from docs

These are generated build artifacts and should not be edited manually.

Contributing

See CONTRIBUTING.md and DEVELOPMENT.md.

License

MIT

FAQs

Package last updated on 18 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts