npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

lovable-eject

v0.1.0

Published

Migrate Lovable.dev projects to free-tier hosting (Vercel + Supabase)

Readme

lovable-eject

Migrate Lovable.dev projects to free-tier hosting — one command, zero manual edits.

npm version license tests


Why

Lovable.dev charges £22/month. When you're ready to leave, you'll find proprietary auth wrappers baked into your code, SQL migrations that break on a fresh Supabase instance, and zero documentation on how to decouple. Nobody has automated this — until now.

lovable-eject scans your project, rewrites the proprietary bits, fixes your migrations, and walks you through deploying to Vercel + your own Supabase. The whole process takes minutes, not days.

Quick Start

# 1. Analyse — read-only scan, safe to run anytime
npx lovable-eject analyse ./my-lovable-project

# 2. Transform — rewrite code, fix SQL, remove Lovable deps
npx lovable-eject transform ./my-lovable-project

# 3. Deploy — interactive Supabase + Vercel walkthrough
npx lovable-eject deploy ./my-lovable-project

What It Does

| Command | What happens | |---------|-------------| | analyse | Scans dependencies, file references (imports, OAuth, deep links, OG images), SQL migration issues, Supabase schema, Capacitor config. Outputs a risk score: simple, moderate, or complex. | | transform | Runs 10 automated fixes with full backup. Removes Lovable deps, replaces OAuth calls, fixes migrations, strips tagger, cleans domain refs, generates .env.example + vercel.json + health endpoint. | | deploy | Interactive guide: link Supabase project, push migrations, configure Vercel env vars, set up DNS, verify with health check, set up UptimeRobot monitoring. |

Web UI

A local dashboard for the full workflow — analyse, transform with live code diffs, and deploy.

npm run web    # Starts API (5174) + UI (5175)

Open localhost:5175 to:

  • Analyse your project with a visual risk assessment and grouped findings
  • Transform with one click, watching each step complete with before/after code previews
  • Deploy with an interactive checklist, copy-to-clipboard env vars, and health check

Landing page Paste your project path and hit Analyse — the file tree scanner shows progress in real-time.

Analysis dashboard The dashboard shows risk level, dependency pills, health grid, and collapsible code references.

Transform in progress The neural network visualization shows data flowing through each transform step with activity feed.

Transform complete All transforms landed — check off next steps and deploy.

Dev mode Switch to Dev mode for file paths, line numbers, and technical descriptions.

Flags

| Flag | Command | Description | |------|---------|-------------| | --json | analyse | Output results as JSON | | --report | analyse | Generate an HTML report and open in browser | | --dry-run | transform | Preview changes without modifying files | | --no-backup | transform | Skip creating .bak backup files |

What Gets Transformed

| Find | Replace | |------|---------| | @lovable.dev/cloud-auth-js in package.json | Removed | | @lovable.dev/sdk in package.json | Removed | | lovable-tagger in package.json + vite config | Removed | | src/integrations/lovable/ folder | Deleted | | import { lovable } from '@/integrations/lovable' | import { supabase } from '@/integrations/supabase/client' | | lovable.auth.signInWithOAuth(provider, { redirect_uri }) | supabase.auth.signInWithOAuth({ provider, options: { redirectTo } }) | | lovable.auth.* calls | supabase.auth.* | | CREATE TABLE without IF NOT EXISTS | CREATE TABLE IF NOT EXISTS | | DROP FUNCTION IF EXISTS without CASCADE | Adds CASCADE | | jsonb_set(col, ...) without null guard | jsonb_set(COALESCE(col, '{}'::jsonb), ...) | | app.lovable.<UUID> (Capacitor app ID) | com.yourapp.name placeholder | | *.lovable.app domain references | YOUR_DOMAIN.com placeholder | | lovable.dev/opengraph-image* URLs | YOUR_DOMAIN.com/og-image.png placeholder | | mode === 'development' && componentTagger() | Removed | | (generates) .env.example | Supabase env var template | | (generates) vercel.json | SPA rewrite rules + API cache headers | | (generates) api/health.js | Keep-alive endpoint for monitoring |

Development

git clone https://github.com/ABS-Projects-2026/lovable-eject.git
cd lovable-eject
npm install
npm test                                     # Run tests (vitest)
npm run build                                # Compile to dist/
npm run dev -- analyse ./path/to/project     # Run in dev mode
npm run web                                  # Start web UI

Project Structure

src/
  cli.ts              — Entry point, Commander setup
  commands/           — analyse, transform, deploy
  analysers/          — Dependency, reference, migration, schema, capacitor, risk
  transforms/         — 8 transform modules (deps, oauth, tagger, migrations, etc.)
  utils/              — File helpers, logger, report generator
web/
  server.ts           — Express API (analyse, transform, deploy endpoints)
  src/                — React + Tailwind dashboard
tests/                — Mirrors src/ structure, vitest

Contributing

See CONTRIBUTING.md for setup instructions and guidelines.

Disclaimer

lovable-eject is provided as-is, without warranty of any kind. This tool modifies source code, configuration files, and SQL migration files in your project. While every transform creates a .bak backup of original files, you should:

  • Always commit your code to git before running any transforms
  • Review all changes before deploying to production
  • Test your application thoroughly after migration
  • Keep your own backups of critical data

This tool is not affiliated with, endorsed by, or associated with Lovable.dev or Supabase. All trademarks belong to their respective owners.

The authors and contributors are not responsible for any data loss, service disruption, or other damages resulting from the use of this tool. Use at your own risk.

License

MIT