Skip to content
LordVayronPublic

About

Self-hosted Instagram comment-to-DM automation. Free, zero dependencies.

Topics

Resources

Contributing

Security policy

Stars

27 stars

Watchers

0 watching

Forks

Repository files navigation

DMLand: turn Instagram comments into DMs

License: MIT Node 24+ Zero dependencies Self-hosted

DMLand is a free, self-hosted tool that turns Instagram and Facebook Page comments into DMs. Someone comments a keyword on your reel or post ("Comment GUIDE"), DMLand replies under the comment and sends them your link by DM. It can ask for their email first, tracks every step, and shows what works.

It runs on your own computer with Node 24 and no npm dependencies. Your token and your contacts never leave your machine.

Not affiliated with Meta, Instagram, Facebook or ManyChat. DMLand uses the official Meta Graph API (Instagram and Messenger) with your own Meta app.

Features

  • Comment → public reply + DM on any reel or post, or on all of them. Keyword rules: contains, whole word, exact, or any comment.
  • Ask for email first. Optional mode: DMLand asks for an email, reads the answer, saves it and then sends the resource. Edit the consent line, export emails as CSV.
  • Ask for a follow first (Instagram). Optional: the first DM asks people to follow you, with an «I follow you» button. When they tap it, DMLand checks that they follow you and then sends the resource (or asks for their email). Needs the Facebook Page linked to the Instagram account connected in DMLand. See docs/HOW-IT-WORKS.md.
  • A/B test two versions of the message that asks for the email and see which wins.
  • UTM links. Add campaign parameters to every link you send.
  • Instagram and Facebook Pages. Connect Instagram Professional accounts, Facebook Pages (DMs through Messenger), or both. Reading a real Page and sending Messenger DMs to real commenters are both checked. Pages get a slower sending pace (see Limits).
  • Multi-brand. Connect several accounts and group them by brand.
  • Safe sending. Stays under Meta's hourly limit, sends the DM before the public reply, never answers a comment twice, and pauses and retries if Meta slows you down.
  • Analytics. Reels with views and DMs, funnel, best times to post, email list growth, speed to DM, uptime, and people who wrote back.
  • Content report. Which reels, hooks and posting times work, judged against your typical reel, with actions for next week. Optional AI reading through OpenRouter. See docs/CONTENT-REPORT.md.
  • Any language. The dashboard is in English and ships with Spanish. Add another language by translating one file (docs/LANGUAGES.md); an AI agent can do it for you at install time. Dark glass theme, light mode included.
  • Zero dependencies, zero build. One Node process, SQLite file, one HTML file.

Screenshots

Home: reels, trends and KPIs

Automations
Automations. One card per reel with its keyword and results.
Automation editor with phone preview
Editor. Live preview of what the commenter sees.
Analytics
Analytics. Reels, speed, emails, A/B tests and health.
Contacts
Contacts. Tags and collected emails, exportable as CSV.

All screenshots use made-up demo data.

Quick start

You need Node 24 or newer.

git clone https://github.com/LordVayron/dmland.git
cd dmland
npm test        # optional: runs the tests, no Meta account needed
npm start       # opens on http://localhost:3000

On first run DMLand creates a .env file with a random dashboard password. Open http://localhost:3000, use any username and that password.

Just want to look around? Run the demo with made-up data (two Instagram accounts and one Facebook Page) and no Meta account:

npm run demo    # http://localhost:3100, password: demo

Connect Instagram or a Facebook Page

DMLand uses your own Meta app (free, about 15 minutes, no Meta review needed for your own account). Follow docs/META-SETUP.md; it has a section for Facebook Pages.

Let an AI agent do the setup

Using Claude Code, Codex or a similar agent? Open this folder with it and say:

Install DMLand and guide me through the setup.

The agent follows AGENTS.md: it asks your language, installs and starts DMLand, looks up Meta's current documentation, and walks you through creating the Meta app step by step. You paste your token yourself; the agent never handles your secrets.

Limits you should know

Limit Value
Replies per hour per Instagram account Meta allows about 750. DMLand stays at 600.
Replies per Facebook Page Meta publishes no number. DMLand sends at most 2 per minute and 60 per hour per Page, and 1 per minute and 30 per hour for an automation whose video goes viral. See below.
Comment age Only comments under 7 days old can get a DM (both platforms).
One DM per comment A comment is answered once.
Message size 1000 bytes per DM.
Facebook Page analytics Views and reach are not available for Pages yet.

If Meta pauses sending, DMLand waits and retries by itself; comments are not lost while they are under 7 days old. Details in docs/HOW-IT-WORKS.md.

Warning

Facebook Pages get restricted much faster than Instagram accounts. In real use, a Page that sent about 40 near-identical DMs with links in 12 minutes (a backlog after the computer slept, on a video that was getting a lot of comments) was restricted by Meta (#10/1893063: "temporarily restricted from sending messages"). That is why DMLand paces Pages slowly, slows down a single automation when its video goes viral, and pauses only that Page for an hour if Meta restricts it. People still get their DM, just later (Meta allows 7 days). If your Page gets restricted, check Meta Business Suite → Page quality for the notice. You can change the pace in .env; raising it is at your own risk. Details in docs/HOW-IT-WORKS.md.

DMLand only works while your computer and the program are on. To use the dashboard from your phone, use a private network such as Tailscale. Do not expose it directly to the internet.

Privacy

Everything is stored in data/app.db on your machine. DMLand talks only to the Meta Graph API, unless you turn on the optional AI reading of the content report: then it also sends numbers and reel scripts (never usernames, emails or comments) to OpenRouter. Emails you collect are personal data: you are responsible for consent and local privacy laws. See SECURITY.md.

Documentation

License

MIT

About

Self-hosted Instagram comment-to-DM automation. Free, zero dependencies.

Topics

Resources

Contributing

Security policy

Stars

27 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages