Skip to content

conorbronsdon/avoid-ai-writing-app

Repository files navigation

Avoid AI Writing — Web App

Burn $avoid tokens on Solana to audit your text for AI writing patterns and get a clean rewrite.

GitHub stars Skill X


Powered by the avoid-ai-writing open-source AI writing detector. Part of the $avoid community project on Solana.

Star History — avoid-ai-writing skill

The open-source skill powering this app gained 500+ stars in under 24 hours:

Star History Chart

About $avoid

$avoid is a community-created pump.fun project supporting the avoid-ai-writing GitHub project.

CA: BsidWuYJnayqMXVsLGr34524vmZ1BrWFhPer3198pump

Link
Creator https://github.com/conorbronsdon
DexScreener https://dexscreener.com/solana/4b5mprekzapcwybrsbbaiewtk4amck62rpcznjcxz69m
pump.fun https://pump.fun/coin/BsidWuYJnayqMXVsLGr34524vmZ1BrWFhPer3198pump
Telegram https://t.me/avoidaiwriting
X Community https://x.com/i/communities/2036440377356591415
Mobile app (in development) https://github.com/conorbronsdon/avoid-ai-writing-mobile

How it works

  1. Connect your Solana wallet (Phantom, Solflare)
  2. Paste text you want audited
  3. Burn ~$0.25 worth of $avoid tokens (amount adjusts to live price, permanently removed from circulation)
  4. Get a full AI writing audit with rewritten text

Architecture

User                    Frontend (Next.js)              Solana              API Route (Vercel)
 |                           |                            |                        |
 |  paste text + connect     |                            |                        |
 |  wallet                   |                            |                        |
 |-------------------------->|                            |                        |
 |                           |  GET /api/price            |                        |
 |                           |----------------------------------------------->|
 |                           |  { burnAmount, priceUsd }  |                        |
 |                           |<-----------------------------------------------|
 |                           |  build SPL burn tx         |                        |
 |                           |--------------------------->|                        |
 |  sign transaction         |                            |                        |
 |<--------------------------|                            |                        |
 |-------------------------->|                            |                        |
 |                           |  confirm burn on-chain     |                        |
 |                           |--------------------------->|                        |
 |                           |        confirmed           |                        |
 |                           |<---------------------------|                        |
 |                           |                            |                        |
 |                           |  POST {signature, text,    |                        |
 |                           |   wallet, burnAmountRaw}   |                        |
 |                           |----------------------------------------------->|
 |                           |                            |  verify burn tx  |
 |                           |                            |<-----------------|
 |                           |                            |  valid           |
 |                           |                            |----------------->|
 |                           |                            |                  |
 |                           |                            |  call Claude API |
 |                           |                            |  (SKILL.md as    |
 |                           |                            |   system prompt) |
 |                           |                            |                  |
 |                           |  return audit result       |                  |
 |                           |<-----------------------------------------------|
 |  display result           |                            |                        |
 |<--------------------------|                            |                        |

Burn mechanism: Tokens are burned using Solana's native SPL Token burn instruction -- not transferred to a dead wallet. This permanently reduces the total supply of $avoid, verifiable on-chain. The API route independently verifies the burn transaction (correct mint, minimum amount, not replayed) before calling the Claude API.

Dynamic pricing: The burn amount adjusts to maintain a ~$0.25 USD cost per audit. Price feeds from DexScreener (primary) and Jupiter (fallback) update every 60 seconds server-side. The client fetches a quote, the user signs at that price, and the server verifies the on-chain burn meets a floor of max(MIN_BURN_AMOUNT, 50% of current quote) -- tolerating normal price movement without re-quoting.

Security:

  • Replay protection prevents reusing a burn transaction for multiple audits
  • Text capped at 5,000 words per submission
  • IP rate limiting (10 audits/hr)
  • Kill switch via AUDIT_ENABLED environment variable
  • Burn amount floor prevents abuse via manipulated client requests

Setup

npm install
cp .env.example .env.local
# Add your ANTHROPIC_API_KEY to .env.local
npm run dev

Deploy

Deploy to Vercel -- connect the repo, set environment variables, done.

Environment Variables

Variable Required Default
ANTHROPIC_API_KEY Yes --
NEXT_PUBLIC_AVOID_MINT No BsidWuYJnayqMXVsLGr34524vmZ1BrWFhPer3198pump
NEXT_PUBLIC_BURN_AMOUNT No 10000 (fallback when price APIs fail)
NEXT_PUBLIC_SOLANA_RPC No https://api.mainnet-beta.solana.com
AUDIT_ENABLED No true
NEXT_PUBLIC_TARGET_USD_COST No 0.25 (target USD cost per audit)
NEXT_PUBLIC_MIN_BURN_AMOUNT No 100 (absolute minimum tokens per audit)
NEXT_PUBLIC_MAX_BURN_AMOUNT No 1000000 (cap to prevent extreme values)

License

Copyright (c) 2026 Conor Bronsdon. All rights reserved. See LICENSE.

About

Burn $avoid tokens on Solana to audit your text for AI writing patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors