svelte5-ai-digest

Svelte5 Ai Digest

Svelte 5 AI context files 👽

Svelte 5 AI Digest

Svelte 5 AI context file for smarter code generation :alien:

TL;DR

This repo contains the contents of the new Svelte 5 docs site packaged as a single Markdown file.

Why

AI tools such as Cody and Codeium are great for generating code snippets, but they can be difficult to use if context is not provided to the tooling.

Svelte 4 - use content JSON 🔗

Svelte 5 - the Svelte 5 docs site is not yet available in JSON format. Manual aggregation of the Svelte 5 docs using ai-digest is straight forward. Alternatively, you could just use our codebase.md 📂

Usage

Simply drop codebase.md into the AI tool of your choice as context for code generation.

You are all set to go :fireworks:

Check back for updates to the codebase.md file as the Svelte 5 docs are updated.

Add more Context

If you are running Svelte 5 locally, or money for AI tooling is not an issue, consider using codebase.src.md 📂 which is an aggregation of /src content from the latest Svelte 5 release on GitHub.

By adding more content we end up with additional contextual tokens in the output file and hopefully better AI code generation as a result 🤞

The downside of larger contextual files is the potential cost associated with using all of those additional tokens. In the case of Svelte 5 a rough doubling of the number of tokens in the output file is seen. Something to be aware of if you pay for AI tooling.

The repo uses the brilliant ai-digest Npm package, show it some love on GitHub if you use this repo please.

The ingest output contains file and token metrics for codebase.md.

For comparison see ingest.src which contains the output for the larger /src manifest.

Run it Yourself

Local Clone

To generate your own manifest file.

# Clone the repo
git clone https://github.com/kevinobee/svelte5-ai-digest.git
cd svelte5-ai-digest.git

The run the process-release.sh script.

# Run the process-release.sh script to generate the manifest files for AI tooling
# __ As with any script downloaded from the internet.. exercise caution!
# __ Read it before you Run it 🙏
./process-release.sh

Fork it

You are welcome to just fork the repo, add any other dependencies you require to enrich the AI context further.

Run it all on GitHub yourself 🎇

Top categories

Loading Svelte Themes