oss-to-hosted
Skill0 starsChanged 5 months agoMITView on GitHub
Structure the open-source package → hosted platform funnel — the OSS/platform layer split, finding an honest upsell boundary, README-as-landing-page, telemetry ethics, license choice (MIT/Apache vs AGPL vs BSL), demo apps, and funnel metrics. Use when the user wants to open-source part of their product, add a cloud/hosted tier to an OSS project, decide what to gate, pick a license, or add telemetry to a CLI or library. Also use when they mention "open core", "cloud version", "self-hosted vs managed", or worry about AWS reselling their server, even if they never say "open source funnel".
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- api-keysSkill
- billing-entitlementsSkill
- devtool-contextSkill
- event-taxonomySkill
- integration-pagesSkill
- sdk-designSkill
- security-pageSkill
- webhook-deliverySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Check for .agents/devtool-context.md and read it if present (stage, pricing, and positioning change every answer here).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OSS → Hosted Funnel
Open-sourcing the core of a developer tool is a distribution strategy: the package earns trust and installs, the platform earns revenue by absorbing operational pain. The whole machine runs on one belief, that the OSS layer is genuinely good standalone. The bar is Supabase: the open thing is real Postgres, and the cloud sells you not running it. Every decision below either protects that trust or spends it.
Before you start
Check for .agents/devtool-context.md and read it if present (stage, pricing, and positioning change every answer here). If absent, ask:
- What's the artifact: a library/SDK, a CLI, or a self-hostable server? (The telemetry and license answers differ by type.)
- What does the hosted platform do that self-hosters would otherwise build themselves?
- Who are you actually afraid of: big clouds reselling you, competitors forking, or nobody yet?
The layer split
Decide once what lives on each side, and write it down publicly, in a docs/open-source.md or FAQ entry that states the boundary in plain language.
OSS gets the primitive. The library, protocol, or runtime, working fully standalone: every core feature, no license keys, no "contact sales" dead-ends in the code path. A crippled OSS layer poisons the funnel: developers evaluate the package first, and if the evaluation experience is a demo, they leave and tell others. Calibration points:
- Supabase: the primitive is Postgres plus real open components (Auth, Realtime, Storage); the cloud sells managed operations, not features held hostage.
- PostHog: open-source product analytics; the cloud sells scale, data infrastructure, and not babysitting ClickHouse. (They walked back supported self-hosting in 2023 to an unsupported hobby deployment, itself a lesson in how much operational weight the platform layer really carries.)
- Cal.com: the scheduling engine is open; the platform sells hosting, teams, and the app ecosystem around it.
Platform gets the operational burden. Hosting, scale, HA, backups, upgrades, dashboards, team/org management, SSO/SAML, audit logs, compliance (SOC 2, HIPAA), and managed infrastructure. The pattern: OSS is what it does, platform is someone else runs it and your boss can see it.
Enterprise-only features (SSO, audit logs) may live in a separately-licensed /ee directory à la PostHog and Cal.com. That's acceptable, but keep the boundary visible in the repo, not smuggled into the core.
Finding the honest upsell
The upsell boundary is where genuine pain shows up when OSS users succeed, not a gate you drilled into the package. Successful OSS users hit: running it in production (monitoring, upgrades, on-call), multi-tenant isolation, scale beyond one node, and team workflows. Those pains are yours to sell relief from.
The test: would you feel comfortable explaining the boundary in a GitHub issue? "Rate limiting is cloud-only because it requires our distributed edge network" survives daylight. "The OSS version caps at 100 requests/day" does not. That's sabotage, and the funnel dies with the trust. Sabotage gets discovered in issues, hard-forked, and remembered.
A worked example: "Flagpole," a fictional feature-flag service that ships an OSS flag-evaluation server.
| Capability | Where | Why it's honest |
| Flag evaluation engine, SDKs, local UI | OSS | The primitive. Works forever, unlimited flags. |
| Targeting rules, percentage rollouts | OSS | Core features; gating them is sabotage. |
| Multi-region edge evaluation | Cloud | Genuinely requires infrastructure you operate. |
| Team roles, approvals, audit log | Cloud (or /ee) | Org workflow, appears only when a team succeeds with it. |
| Managed hosting, backups, upgrades | Cloud | The operational burden itself. |
A solo developer runs Flagpole OSS happily forever, and that's correct and good: they're your documentation, your bug reports, and your advocate inside their next company. The upsell fires when their team grows or their SLA does. The mechanics of enforcing that boundary are an entitlements problem; see billing-entitlements.
README as landing page
The package README is the highest-traffic page you own: more views than your homepage, and it renders on GitHub and npm where you control nothing else. Structure, in order:
- What it is, one sentence. Engineer-to-engineer, no adjectives: "A self-hostable feature-flag server with sub-millisecond local evaluation."
- Install. One command, above the fold.
- Working example. Copy-paste-runnable in under a minute. This is the moment of conviction.
- The hosted link, stated plainly, once: "Don't want to run this yourself? There's a hosted version." One link. A README with a hero banner, three CTAs, and a pricing table reads as an ad wearing a repo as a costume, and developers punish it with the back button.
Then docs links, contributing, license. The README is an SDK surface decision as much as a marketing one; sdk-design governs the example quality.
Telemetry ethics
The default depends on artifact type; the disclosure rules don't.
CLI / self-hosted server: opt-out telemetry is defensible only if loudly disclosed at first run, with a one-line disable printed right there:
Flagpole collects anonymous usage data (event counts, version, OS). Details: https://example.com/telemetry Disable: flagpole telemetry disable (or FLAGPOLE_TELEMETRY=0)This is the Next.js / Turborepo pattern: first-run notice, a public page that lists exactly what's collected, one env var to kill it. Copy it.
- Library code: no phone-home, period. A library executes inside someone else's process and someone else's compliance boundary; telemetry there is exfiltration no disclosure can fix.
Universal rules: collect counts, never payloads (flags_evaluated: 1200, never flag names, user IDs, or config contents). Publish the exact event schema on the telemetry page. And know the stakes: silent telemetry discovered later is a trust incident, not a bug. It gets a HN thread with your name in the title, and the apology costs more adoption than the data was ever worth.
License choice
The license is a business decision about who you're defending against. Pick by threat model:
| Situation | License | Reasoning |
| Library or SDK; moat is the hosted operational layer | Apache-2.0 (default) | Maximum adoption; patent grant; nobody can resell "hosting your SDK". MIT acceptable if you don't care about the patent clause. |
| Self-hostable server; realistic threat is clouds reselling it as a managed service | AGPL-3.0 | Forces resellers to open their modifications; enterprises can still self-host. Grafana and Cal.com's core sit here. |
| You need to legally block competing managed services | BSL / fair-source | Works (Sentry, HashiCorp), but go in with eyes open: it is not open source, some contributors and distros will walk, and "source-available" carries a permanent asterisk in every comparison table. |
Default: Apache-2.0 for libraries/SDKs, and stay permissive for servers too until a cloud reselling you is a realistic threat, not a flattering hypothetical. Most projects die of obscurity, not of AWS. Decide contributor terms on day one: a CLA if you may ever need to relicense (relicensing without one is near-impossible), a DCO if you're committing to the license as-is and want lower contributor friction. A DCO certifies provenance; it does not preserve the option to change the license later.
Demo apps that teach
examples/ should show real integration patterns users copy into their stack: "Flagpole + Next.js middleware", "Flagpole in a Go worker", "migrating from LaunchDarkly". Each one should be runnable, current, and CI-tested so it never rots. An example that solves the reader's actual next step earns a star and a dependency; a demo that's a thinly veiled sales tour (fake company, every screen a funnel to a signup form) teaches nothing and gets neither. Vercel's examples directory is the calibration point: hundreds of copyable patterns, each one quietly a reason to deploy on Vercel, none of them an ad.
Metrics that matter
Instrument the funnel, not the vanity layer: installs (npm/Docker pulls, trended) → running instances (if telemetry exists; weekly-active servers is the honest adoption number) → cloud signups that reference OSS (a "how did you hear about us?" field, or signup attribution from docs/README links). Stars are a lagging popularity contest. Don't optimize them, and never trade a trust decision (telemetry, gating) for a growth-hack that moves them.
Artifacts to produce
- Layer-split table for the user's product (Flagpole-style: capability / OSS or cloud / why it's honest), published as
docs/open-source.md. - README rewrite that follows the four-part structure, with the single hosted-version link.
- Telemetry spec: first-run disclosure text, exact event schema, the public telemetry page, and the disable mechanism, or a one-line "no telemetry" statement if it's a library.
- License decision memo: threat model, chosen license, CLA/DCO plan.
examples/plan: 3 to 5 named integration patterns matched to the user's actual audience stacks.
Related Skills
- billing-entitlements: the upsell boundary is an entitlements decision; enforce it in the platform, never in the package.
- sdk-design: the OSS package is an SDK surface; install-to-working-example quality decides the funnel's top.
- integration-pages: the hosted platform's discovery surface once OSS users arrive.
- devtool-context: create the context file first if it doesn't exist.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

