lemlist-smartlead-plan-fit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f6055ce06de82c14b488f030c1d210a35feacd1b68ac96a8928af228163abbb5
4
+ data.tar.gz: 1b95d06896f322f48c7cb80831263e355abe2349f1cc5853e516d4323f69719e
5
+ SHA512:
6
+ metadata.gz: 2e47068e40b5f0ead149c5fdec31ad5e6875bc3fc58dbb93431ccbe44f362d7114d4b50d466dca2cb38a1b5cef68329d40ab12898233217a3aadfac1895b14fa
7
+ data.tar.gz: d6816602580739e0b5f3f5c4d134c828846fc6bab5f251d534d3c43ad808f263528c1faabc969e8b16d87f576d62755e7abd721929dec3e776a7b4563a26554a
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OneGTMLab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # lemlist-smartlead-plan-fit
2
+
3
+ A Ruby command-line tool for the comparison
4
+ [lemlist vs Smartlead](https://www.onegtmlab.dev/tool-directory/compare/lemlist-vs-smartlead) in the OneGTMLab tool directory.
5
+ Give it the emails you send a month, the contacts you keep stored, and whether you need the API, webhooks, LinkedIn steps, agency client workspaces or the vendors' own lead data. It prints the cheapest plan on each vendor that covers the job, what that costs over the period, and how many API calls it takes to load your leads.
6
+ The page was verified on 25 Oct 2026 and read again on 28 Nov 2026; where it is silent the tool prints "not stated".
7
+
8
+ What the page says, and what the tool does with it:
9
+
10
+ - **lemlist** has two paths. The Email plan is priced by emails a month, with unlimited users and senders and the API, webhooks and MCP included: 50,000 emails $69 monthly or $55 annual, 100k $89 or $71, 200k $159 or $127, 500k $359 or $287, 1M $659 or $527. Multichannel (LinkedIn, SMS, calls) is $109 per user a month monthly or $87 annual, with 5 senders per user and unlimited emails and messages; the tool switches to it when you pass `--linkedin`. The lead data add-on is $20 a month ($16 annual) for 2,000 credits, about 400 emails or 100 phones, so the tool counts 5 credits an email.
11
+ - **Smartlead** is priced by sends and stored contacts: Base $39 or $32 annual (6,000 sends, 2,000 contacts, no API), Pro $94 or $78 (90,000 sends, 30,000 contacts, API and webhooks), Smart $174 or $144 (150,000+ sends, unlimited contacts, 50,000 verified prospect emails), Prime $379 or $315 (500,000+ sends, unlimited contacts, 170,000 verified prospect emails, 3 or more client workspaces). Client workspaces are $29 a month each on Pro and Smart. SmartProspect is a flat $59 a month on Base (2,000 emails) or Pro (30,000), monthly billing only. The tool picks the cheapest plan whose total, including those extras, covers the job.
12
+ - **API limits:** lemlist takes bulk enrichment of up to 500 records a call (async) at 20 requests per 2 seconds per key. Smartlead imports up to 400 leads a request and documents 60 a minute (Standard) or 120 a minute (Pro) without saying which plans map to which tier, so the tool prints both. LinkedIn steps on Smartlead and any client price on lemlist are not on the page, so the tool prints "not stated".
13
+
14
+ ```bash
15
+ ruby bin/lemlist-smartlead-plan-fit --sends 40000 --contacts 8000 --api --billing annual
16
+ ruby bin/lemlist-smartlead-plan-fit --sends 60000 --linkedin --users 3 --prospect-emails 800 --billing monthly --months 3
17
+ ruby bin/lemlist-smartlead-plan-fit --sends 80000 --clients 4 --webhooks --import 9000 --json
18
+ ```
19
+
20
+ Prices change; re-read the page before you rely on a figure. Ruby 2.7 or later, standard library only.
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ gem install lemlist-smartlead-plan-fit
26
+ ```
27
+
28
+ ## Test
29
+
30
+ ```bash
31
+ ruby test/plan_fit_test.rb
32
+ ```
33
+
34
+ The email volumes and counts in `examples/` are made up for illustration. MIT licensed.
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "optparse"
5
+ require "json"
6
+ require_relative "../lib/lemlist_smartlead_plan_fit"
7
+
8
+ o = { contacts: 0, api: false, webhooks: false, linkedin: false, users: 1, clients: 0, prospect_emails: 0, billing: :annual, months: 1, import: 0 }
9
+ OptionParser.new do |op|
10
+ op.banner = "usage: lemlist-smartlead-plan-fit --sends N [--contacts N] [--api] [--webhooks] [--linkedin --users N] [--clients N] [--prospect-emails N] [--import N] [--billing annual|monthly] [--months N] [--json]"
11
+ op.on("--sends N", Integer, "emails you send a month") { |v| o[:sends] = v }
12
+ op.on("--contacts N", Integer, "contacts you keep stored (Smartlead plans cap these)") { |v| o[:contacts] = v }
13
+ op.on("--api", "you need the API") { o[:api] = true }
14
+ op.on("--webhooks", "you need webhooks") { o[:webhooks] = true }
15
+ op.on("--linkedin", "you need LinkedIn, SMS or calls in the sequence (lemlist Multichannel)") { o[:linkedin] = true }
16
+ op.on("--users N", Integer, "paid users on lemlist Multichannel, default 1") { |v| o[:users] = v }
17
+ op.on("--clients N", Integer, "agency clients (Smartlead client workspaces)") { |v| o[:clients] = v }
18
+ op.on("--prospect-emails N", Integer, "verified emails a month from the vendor's own lead database") { |v| o[:prospect_emails] = v }
19
+ op.on("--import N", Integer, "leads you will load by API") { |v| o[:import] = v }
20
+ op.on("--billing B", %w[annual monthly]) { |v| o[:billing] = v.to_sym }
21
+ op.on("--months N", Integer, "months to total on monthly billing, default 1") { |v| o[:months] = v }
22
+ op.on("--json") { o[:json] = true }
23
+ end.parse!
24
+
25
+ abort "need --sends N" unless o[:sends]
26
+ begin
27
+ need = LemlistSmartleadPlanFit::Need.new(**o.slice(:sends, :contacts, :api, :webhooks, :linkedin, :users, :clients, :prospect_emails, :billing, :months, :import))
28
+ q = LemlistSmartleadPlanFit.quote(need)
29
+ rescue ArgumentError => e
30
+ abort "error: #{e.message}"
31
+ end
32
+ puts o[:json] ? JSON.pretty_generate(q) : LemlistSmartleadPlanFit.render(q)
@@ -0,0 +1,182 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Plan and API arithmetic for the OneGTMLab comparison "lemlist vs Smartlead".
4
+ # Every figure is what that page states (verified 25 Oct 2026, read again 28 Nov 2026).
5
+ # Where the page is silent the value is nil and the report prints "not stated".
6
+ module LemlistSmartleadPlanFit
7
+ SOURCE = "https://www.onegtmlab.dev/tool-directory/compare/lemlist-vs-smartlead"
8
+ READ = "page verified 25 Oct 2026, read 28 Nov 2026"
9
+
10
+ # lemlist Email plan: priced by emails a month, unlimited users and email senders, API and MCP included.
11
+ LEMLIST_EMAIL = [
12
+ { name: "lemlist Email 50k", emails: 50_000, monthly: 69.0, annual: 55.0 },
13
+ { name: "lemlist Email 100k", emails: 100_000, monthly: 89.0, annual: 71.0 },
14
+ { name: "lemlist Email 200k", emails: 200_000, monthly: 159.0, annual: 127.0 },
15
+ { name: "lemlist Email 500k", emails: 500_000, monthly: 359.0, annual: 287.0 },
16
+ { name: "lemlist Email 1M", emails: 1_000_000, monthly: 659.0, annual: 527.0 }
17
+ ].freeze
18
+
19
+ # lemlist Multichannel: per user a month, 5 senders per user, unlimited emails and messages,
20
+ # LinkedIn automation, SMS and a dialer. Extra sender $9 a month, WhatsApp add-on $20 per user a month.
21
+ LEMLIST_MULTI = { name: "lemlist Multichannel", monthly: 109.0, annual: 87.0, senders_per_user: 5 }.freeze
22
+ LEMLIST_EXTRA_SENDER = 9.0
23
+ LEMLIST_WHATSAPP = 20.0
24
+ LEMLIST_SMS_NUMBER = 15.0
25
+
26
+ # lemlist lead data add-on: 2,000 credits a month, "about 400 emails or 100 phones" (5 and 20 credits each).
27
+ LEMLIST_LEADS = { monthly: 20.0, annual: 16.0, credits: 2_000, email_credits: 5, phone_credits: 20 }.freeze
28
+
29
+ # Smartlead: plans by send volume and stored contacts; contacts nil = unlimited.
30
+ # api: API and webhooks start on Pro. included_prospect_emails: verified SmartProspect emails a month included.
31
+ SMARTLEAD = [
32
+ { name: "Smartlead Base", sends: 6_000, contacts: 2_000, monthly: 39.0, annual: 32.0, api: false, prospect: 0, clients: :paid },
33
+ { name: "Smartlead Pro", sends: 90_000, contacts: 30_000, monthly: 94.0, annual: 78.0, api: true, prospect: 0, clients: :paid },
34
+ { name: "Smartlead Smart", sends: 150_000, contacts: nil, monthly: 174.0, annual: 144.0, api: true, prospect: 50_000, clients: :paid },
35
+ { name: "Smartlead Prime", sends: 500_000, contacts: nil, monthly: 379.0, annual: 315.0, api: true, prospect: 170_000, clients: :three_included }
36
+ ].freeze
37
+ SMARTLEAD_CLIENT = 29.0 # a month each, on Pro and Smart; Prime includes 3 or more
38
+ # SmartProspect add-on: flat $59 a month (monthly billing only) on Base (2,000 emails) or Pro (30,000).
39
+ SMARTPROSPECT = { fee: 59.0, base: 2_000, pro: 30_000 }.freeze
40
+
41
+ # Published API limits
42
+ LEMLIST_BULK_ENRICH = 500 # records per call, async
43
+ LEMLIST_PER_2S = 20 # requests per 2 seconds per key
44
+ SMARTLEAD_LEADS_PER_CALL = 400 # leads per import request
45
+ SMARTLEAD_TIERS = [60, 120].freeze # requests a minute; the docs do not say which plan maps to which
46
+
47
+ Need = Struct.new(:sends, :contacts, :api, :webhooks, :linkedin, :users, :clients, :prospect_emails,
48
+ :billing, :months, :import, keyword_init: true)
49
+
50
+ module_function
51
+
52
+ def validate!(n)
53
+ raise ArgumentError, "sends must be a positive integer" unless n.sends.is_a?(Integer) && n.sends.positive?
54
+ %i[contacts users clients prospect_emails import].each do |k|
55
+ v = n.public_send(k)
56
+ raise ArgumentError, "#{k} must be 0 or more" unless v.is_a?(Integer) && v >= 0
57
+ end
58
+ raise ArgumentError, "months must be positive" unless n.months.is_a?(Integer) && n.months.positive?
59
+ raise ArgumentError, "billing must be annual or monthly" unless %i[annual monthly].include?(n.billing)
60
+ n
61
+ end
62
+
63
+ def ceil_div(a, b)
64
+ (a + b - 1) / b
65
+ end
66
+
67
+ def months_paid(n)
68
+ n.billing == :annual ? 12 : n.months
69
+ end
70
+
71
+ def rate(item, n)
72
+ item[n.billing]
73
+ end
74
+
75
+ # lemlist: Multichannel when LinkedIn is needed, otherwise the cheapest Email tier that covers the sends.
76
+ def lemlist_plan(n)
77
+ m = months_paid(n)
78
+ notes = []
79
+ notes << "API, webhooks and MCP are on every plan; webhooks are created through the API" if n.api || n.webhooks
80
+ notes << "one API key per account: agencies hold one key per client account, no client price on the page" if n.clients.positive?
81
+ notes << "no limit on stored contacts is stated" if n.contacts.positive?
82
+ if n.linkedin
83
+ users = [n.users, 1].max
84
+ plan = (rate(LEMLIST_MULTI, n) * users * m).round(2)
85
+ senders = users * LEMLIST_MULTI[:senders_per_user]
86
+ notes << "Multichannel: #{senders} senders included for #{users} user(s), unlimited emails and messages"
87
+ base = { name: LEMLIST_MULTI[:name], plan_cost: plan }
88
+ else
89
+ tier = LEMLIST_EMAIL.find { |p| p[:emails] >= n.sends }
90
+ return { status: "over 1M emails a month, the top listed tier: Enterprise is a custom quote" } unless tier
91
+
92
+ base = { name: tier[:name], plan_cost: (rate(tier, n) * m).round(2) }
93
+ end
94
+ leads = 0.0
95
+ if n.prospect_emails.positive?
96
+ credits = n.prospect_emails * LEMLIST_LEADS[:email_credits]
97
+ units = ceil_div(credits, LEMLIST_LEADS[:credits])
98
+ leads = (rate(LEMLIST_LEADS, n) * units * m).round(2)
99
+ notes << "lead data: #{credits} credits a month = #{units} add-on(s) of 2,000; the page does not say the add-on can be bought more than once" if units > 1
100
+ end
101
+ base.merge(months_paid: m, leads: leads, cost: (base[:plan_cost] + leads).round(2), status: "ok", notes: notes)
102
+ end
103
+
104
+ # Smartlead: the cheapest plan that covers sends, contacts, API and webhooks, with client workspaces and SmartProspect added.
105
+ def smartlead_plan(n)
106
+ m = months_paid(n)
107
+ options = SMARTLEAD.select do |p|
108
+ p[:sends] >= n.sends && (p[:contacts].nil? || p[:contacts] >= n.contacts) && (!(n.api || n.webhooks) || p[:api]) &&
109
+ (n.clients.zero? || p[:api])
110
+ end.map { |p| smartlead_cost(p, n, m) }.compact
111
+ return { status: "over every listed plan: Prime is 500,000+ sends and the page lists no higher tier" } if options.empty?
112
+
113
+ best = options.min_by { |o| o[:cost] }
114
+ best[:notes] << "LinkedIn steps: the page lists only email sends and stored contacts per plan, so this is not stated" if n.linkedin
115
+ best
116
+ end
117
+
118
+ def smartlead_cost(p, n, m)
119
+ notes = []
120
+ plan = (rate(p, n) * m).round(2)
121
+ clients = 0.0
122
+ if n.clients.positive?
123
+ if p[:clients] == :three_included
124
+ extra = [n.clients - 3, 0].max
125
+ notes << "Prime includes 3 or more client workspaces; the price of #{extra} more is not stated" if extra.positive?
126
+ else
127
+ clients = (SMARTLEAD_CLIENT * n.clients * m).round(2)
128
+ end
129
+ end
130
+ prospect = 0.0
131
+ if n.prospect_emails.positive?
132
+ if n.prospect_emails <= p[:prospect]
133
+ notes << "verified prospect emails included (#{p[:prospect]} a month)"
134
+ elsif p[:name].end_with?("Base") && n.prospect_emails <= SMARTPROSPECT[:base]
135
+ prospect = (SMARTPROSPECT[:fee] * m).round(2)
136
+ elsif p[:name].end_with?("Pro") && n.prospect_emails <= SMARTPROSPECT[:pro]
137
+ prospect = (SMARTPROSPECT[:fee] * m).round(2)
138
+ else
139
+ return nil
140
+ end
141
+ end
142
+ notes << "SmartProspect add-on is monthly billing only, charged at $59 a month" if prospect.positive? && n.billing == :annual
143
+ { name: p[:name], months_paid: m, plan_cost: plan, clients: clients, leads: prospect,
144
+ cost: (plan + clients + prospect).round(2), status: "ok", notes: notes }
145
+ end
146
+
147
+ # Calls and time to load n.import leads by API.
148
+ def import_load(n)
149
+ return nil if n.import.zero?
150
+
151
+ sl_calls = ceil_div(n.import, SMARTLEAD_LEADS_PER_CALL)
152
+ ll_calls = ceil_div(n.import, LEMLIST_BULK_ENRICH)
153
+ { lemlist_calls: ll_calls, lemlist_seconds: ceil_div(ll_calls, LEMLIST_PER_2S) * 2,
154
+ smartlead_calls: sl_calls, smartlead_minutes: SMARTLEAD_TIERS.map { |t| ceil_div(sl_calls, t) } }
155
+ end
156
+
157
+ def quote(n)
158
+ validate!(n)
159
+ { source: SOURCE, read: READ, lemlist: lemlist_plan(n), smartlead: smartlead_plan(n), import: import_load(n) }
160
+ end
161
+
162
+ def money(v)
163
+ v.nil? ? "not stated" : format("$%.2f", v)
164
+ end
165
+
166
+ def render(q)
167
+ out = ["Source: #{q[:source]} (#{q[:read]})", ""]
168
+ l = q[:lemlist]
169
+ out << (l[:name] ? "#{l[:name]}: #{money(l[:cost])} for #{l[:months_paid]} months (plan #{money(l[:plan_cost])}, lead data #{money(l[:leads])})" : "lemlist: #{l[:status]}")
170
+ Array(l[:notes]).each { |x| out << " - #{x}" }
171
+ s = q[:smartlead]
172
+ out << (s[:name] ? "#{s[:name]}: #{money(s[:cost])} for #{s[:months_paid]} months (plan #{money(s[:plan_cost])}, client workspaces #{money(s[:clients])}, SmartProspect #{money(s[:leads])})" : "Smartlead: #{s[:status]}")
173
+ Array(s[:notes]).each { |x| out << " - #{x}" }
174
+ if q[:import]
175
+ m = q[:import]
176
+ out << ""
177
+ out << "Lead load by API: lemlist #{m[:lemlist_calls]} bulk enrichment calls (500 each, async), at least #{m[:lemlist_seconds]} s at 20 requests per 2 s; " \
178
+ "Smartlead #{m[:smartlead_calls]} import calls (400 each), #{m[:smartlead_minutes][0]} min at 60 a minute or #{m[:smartlead_minutes][1]} min at 120 a minute (the docs do not say which plans get which tier)"
179
+ end
180
+ out.join("\n")
181
+ end
182
+ end
metadata ADDED
@@ -0,0 +1,49 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lemlist-smartlead-plan-fit
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Jainendra Ojha
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: "Give it your monthly sends, stored contacts and whether you need the API, webhooks, LinkedIn steps, agency client workspaces or the vendors' own lead data. It prints the cheapest lemlist plan (Email tier or Multichannel per user, API on every plan) beside the cheapest Smartlead plan (API and webhooks from Pro, $29 client workspaces, SmartProspect add-on) and the API calls to load your leads. Figures come from the OneGTMLab lemlist vs Smartlead page; where it is silent the tool prints not stated."
13
+ email:
14
+ - account@onegtmlab.dev
15
+ executables:
16
+ - lemlist-smartlead-plan-fit
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - LICENSE
21
+ - README.md
22
+ - bin/lemlist-smartlead-plan-fit
23
+ - lib/lemlist_smartlead_plan_fit.rb
24
+ homepage: "https://www.onegtmlab.dev/tool-directory/compare/lemlist-vs-smartlead"
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ source_code_uri: "https://github.com/jaizendra-netizen/lemlist-smartlead-plan-fit"
29
+ homepage_uri: "https://www.onegtmlab.dev/tool-directory/compare/lemlist-vs-smartlead"
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ -
36
+ - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: "2.7"
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ -
42
+ - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ requirements: []
46
+ rubygems_version: 4.1.0
47
+ specification_version: 4
48
+ summary: "Ruby CLI: cheapest lemlist plan beside Smartlead for your sends, contacts, API, LinkedIn and client workspaces, from the published rules on the OneGTMLab comparison page."
49
+ test_files: []