.ASTRO

ASTRO-bestand

Astro Website Component
Stel een vraag
SNEL ANTWOORD

Een .astro-bestand is een component-sjabloon voor het Astro webframework. Het bevat HTML-achtige markup plus een optionele JavaScript- of TypeScript-scriptsectie, en Astro compileert dit naar platte HTML tijdens de build. Open en bewerk .astro-bestanden in elke code-editor; Visual Studio Code met de officiële Astro-extensie biedt syntax-highlighting en IntelliSense. Je opent deze bestanden nooit rechtstreeks in een browser, omdat Astro ze eerst rendert.

Ontwikkelaar: Astro Technology Company (Fred K. Schott); acquired by Cloudflare in January 2026 Categorie: Internet-bestanden MIME: text/plain
OPENT OP Windows macOS Linux
Gerelateerd: .CRDOWNLOAD · .JNLP · .WEBARCHIVE · .PART

Op deze pagina

19k+ extensies geïndexeerd
Laatst beoordeeld op Aug 29, 2026

Niet zeker wat uw bestand is?

Sleep een bestand naar onze identificatietool - we lezen alleen de eerste bytes om het formaat te benoemen.

Identificeer een bestand

Wat is het ASTRO-bestandsformaat?

Een .astro-bestand is een component die wordt gebruikt door Astro, een open-source webframework voor contentgerichte sites zoals blogs, documentatie en marketingpagina's. Fred K. Schott creëerde Astro in 2021, en het bereikte een stabiele 1.0 in augustus 2022. Het project wordt nu onderhouden onder de MIT-licentie nadat Cloudflare de Astro Technology Company overnam in januari 2026.

Elk bestand heeft twee delen die gescheiden worden door een --- code-omheining. Boven de omheining bevindt zich het componentscript, of frontmatter, geschreven in JavaScript of TypeScript. Dit wordt uitgevoerd tijdens de build om andere componenten te importeren, gegevens op te halen en variabelen te declareren. Onder de omheining bevindt zich het sjabloon, een HTML-achtig blok dat {} expressies, <slot /> placeholders en gescopete <style> en <script> tags accepteert. De syntaxis is een uitbreiding van .html en leest grotendeels als JSX, hoewel het standaard kebab-case attributen gebruikt.

Astro rendert componenten vooraf naar HTML en verzendt standaard geen client-side JavaScript. Interactieve onderdelen worden selectief toegevoegd via de „islands architecture” met behulp van client:* richtlijnen op framework-componenten.

Beveiliging & veiligheid

RISICO: LOW

An .astro file is human-readable source text and cannot run on its own by double-clicking. It only executes when compiled by the Astro toolchain during a build. As with any project source, its frontmatter can contain JavaScript, so review files from untrusted repositories before running npm install or a build, since build scripts and dependencies (not the .astro file itself) are the real risk.

Formaatdetails

in een notendop
VOLLEDIGE NAAMAstro Website Componentook bekend als Astro component file, Astro component
ONTWIKKELAARAstro Technology Company (Fred K. Schott); acquired by Cloudflare in January 2026sinds 2021
MIME-TYPEtext/plain
TYPEText-based source file (component template)
Deze extensie wordt ook gebruikt door…
  • ASTRO-VISION LifeSign / horoscope data - Some astrology software has used .astro for chart or profile data files. Unrelated to the web framework.
  • Generic astronomy/astrology data exports - Occasionally seen as an ad hoc extension for star-chart or ephemeris data in niche tools.

Programma's die ASTRO-bestanden openen

Windows4 apps
Sublime Text Freemium Open the file to read and edit it as text; add an Astro syntax package for highlighting.
Visual Studio Code + Astro extension Gratis Install VS Code and the official Astro extension for syntax highlighting, IntelliSense, and formatting of .astro files.
WebStorm Betaald Open the Astro project folder; WebStorm has built-in Astro support for editing and refactoring .astro components.
Astro CLI (Node.js) Open-source Run npm run dev or astro build to compile .astro files into HTML and preview the site.
macOS4 apps
Visual Studio Code + Astro extension Gratis Install VS Code and the official Astro extension to edit .astro files with full language support.
WebStorm Betaald Open the project and edit .astro components with built-in Astro tooling.
Zed Open-source Open the file in Zed and install the Astro language extension for highlighting and completions.
Astro CLI (Node.js) Open-source Use astro dev and astro build in Terminal to run and compile the project.
Linux3 apps
Visual Studio Code + Astro extension Gratis Install VS Code (or VSCodium) plus the Astro extension to edit .astro files.
Neovim + astro language server Open-source Configure the Astro language server (@astrojs/language-server) with an LSP client for highlighting and diagnostics.
Astro CLI (Node.js) Open-source Run npm run dev or npx astro build from the terminal to serve or compile .astro files.

Technische details

diepe specificaties
EncodingUTF-8 plain text
Byte orderNot applicable (text)
ContainerNone; single source file
Typical sizeA few hundred bytes to tens of kilobytes
StructureTwo sections separated by a --- code fence: an optional component script (frontmatter) written in JavaScript/TypeScript that runs at build time or on the server, followed by a component template made of HTML-like markup with {} expressions, directives, <slot />, <style> and <script> tags.
IntegrityNone built in
PlatformsWindows, macOS, Linux
NotesAstro components render to HTML ahead of time and ship no client-side JavaScript runtime by default. Interactive framework components can be hydrated selectively using client:* directives (the islands architecture). The Astro compiler parses .astro files and outputs HTML plus any scoped CSS and hydration code.
Syntax BasisSuperset of HTML, close to JSX but using standard kebab-case HTML attributes
RuntimeServer/build-time rendering; no default client runtime
Language SupportJavaScript and TypeScript in the frontmatter, including top-level await
Uitgebracht2021
Laatste versieAstro 6 (March 2026)
Specificatiedocs.astro.build

ASTRO conversies

Community V&A

gevraagd door gebruikers
Stel een korte vraag
Krijg hulp van mensen die met ASTRO-bestanden werken. Wees specifiek - vermeld uw systeem en softwareversie.
Geen account nodig · antwoorden meestal binnen een dag

Nog geen vragen - wees de eerste om iets te vragen over ASTRO-bestanden.

Veelgestelde vragen

Hoe open ik een .astro-bestand?
Open het in een willekeurige code-editor. Visual Studio Code met de officiële Astro-extensie is de meest gebruikte keuze en biedt highlighting en automatische aanvulling. Het bestand is platte tekst, dus zelfs Notepad of TextEdit zal de inhoud tonen.
Kan ik een .astro-bestand in een browser bekijken?
Niet rechtstreeks. Een browser kan Astro-syntaxis niet renderen. Je start het project met npm run dev of bouwt het met astro build, waarna Astro de component omzet in HTML die de browser vervolgens weergeeft.
Welk programma maakt .astro-bestanden?
Ontwikkelaars maken ze handmatig in een code-editor als onderdeel van een Astro-project. De Astro CLI genereert startprojecten die al voorbeeld-.astro-bestanden bevatten.
Is een .astro-bestand hetzelfde als HTML?
Nee. Het is een uitbreiding van HTML met een toegevoegde JavaScript/TypeScript frontmatter-sectie en sjabloon-expressies. Astro compileert het naar standaard HTML tijdens de build.
Waarom heeft mijn .astro-bestand JavaScript bovenaan?
Dat bovenste gedeelte, tussen de twee --- lijnen, is het componentscript of de frontmatter. Het wordt uitgevoerd tijdens de build om componenten te importeren, gegevens op te halen en variabelen in te stellen die in het onderstaande sjabloon worden gebruikt.
Is het .astro-formaat veilig om te openen?
Ja. Het bestand is leesbare tekst en wordt niet uitgevoerd wanneer je het opent. Wees alleen voorzichtig voordat je dependencies bouwt of installeert van een project dat je niet vertrouwt.

Referenties

1Astro Docs - Componentsdocs.astro.build
2Astro Docs - Template expressions referencedocs.astro.build

Blijf ontdekken

door de database

Populaire extensies deze week

1.AQQAQQ Instant Messenger File
2.BINCD/DVD Disc Image (BIN/CUE)
3.PARTPartial Download File
4.MDMarkdown Document
5.RPMSGRestricted Permission Message
6.CRDOWNLOADChrome Partial Download File
7.NOMEDIAAndroid No-Media Marker File
8.PRDXSoftMaker Presentations Document
9.PRO6XProPresenter 6 Bundle File
10.SWFSmall Web Format (Shockwave Flash)

Gerelateerde extensies

.CRDOWNLOADChrome Partial Download File
.JNLPJava Network Launch Protocol file
.WEBARCHIVESafari Web Archive
.PARTPartial Download File
.DOWNLOADPartial / Incomplete Download File
.ASPXActive Server Page Extended (ASP.NET Web Form)

Gratis bestandstools

Een bestandsidentificatie en afbeeldingsconverter in de browser - alles draait op uw eigen apparaat.

Open de gereedschapskist

Blader door bestandsextensies A-Z