An open API service indexing awesome lists of open source software.

https://github.com/timscodebase/doc-2-llm


https://github.com/timscodebase/doc-2-llm

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Docs to LLM (doc-2-llm)

Effortlessly generate Svelte-style documentation for your projects with **doc-2-llm** – the NPM package that bridges your code to LLM-friendly formats! Inspired by Svelte's own [llms-small.txt](https://svelte.dev/llms-small.txt), this tool creates both human-readable markdown documentation and minimized text files optimized for language models.

## Overview

**doc-2-llm** simplifies the process of generating documentation for SvelteKit projects (and beyond). It produces two key outputs:
- `project_documentation.md`: A comprehensive markdown file with a table of contents and code blocks for easy navigation.
- `[project-name]-llm.txt`: A minimized text file in the "llms-small.txt" format, with each file's content prefixed by `/// file: [path]`, preserving whitespace for LLM compatibility.

Whether you're a Svelte developer looking to streamline your documentation or a team integrating AI-driven workflows, **doc-2-llm** ensures your project is ready for the next generation of development tools.

## Installation

Install **doc-2-llm** globally using npm:

```bash
npm install -g doc-2-llm