diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..1903f93 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,33 @@ +name: Pages + +# Publishes docs/ to GitHub Pages. Repository settings: Pages > Source: GitHub Actions. + +on: + push: + branches: [main] + paths: ["docs/**", ".github/workflows/pages.yml"] + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - uses: actions/checkout@v5 + - uses: actions/configure-pages@v5 + - uses: actions/upload-pages-artifact@v3 + with: + path: docs + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..b869386 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,340 @@ + + +
+ + +langstats is a Claude Code plugin. It records the programming languages Claude reads and edits while it works for you, and turns them into a block of text bars for your GitHub profile README.
+/langstats:style barsWhat it measures: the time Claude spends working in each language. It does not measure the time you spend typing in your own editor.
+ +Screenshots, PDFs and binaries are never recorded. Data, config and prose formats (Markdown, JSON, YAML…) are left out by default.
+Connected, it updates your README by itself. Not connected, it gives you the block to paste by hand.
+The hook is asynchronous, takes about 25 ms, and never touches the network or git.
+Bars, flowers 🌸, rockets 🚀, hearts 💖, moons 🌕 or any symbols you like.
+Turn on sharing and the stats of every computer add up instead of replacing each other.
+macOS, Linux and Windows. Only Python 3.9 or newer is needed.
+Install the plugin. In Claude Code:
+/plugin marketplace add codecruz/langstats +/plugin install langstats@codecruz+
Then start a new session, or run /reload-plugins.
Run the guided setup. It detects whether GitHub is connected and asks a few questions.
+/langstats:setup+
Work as usual. Check your stats at any time:
+/langstats:stats+
Publish to your README, or let it publish by itself:
+/langstats:publish+
~/.claude/langstats/.