Ocoya
Blogging · DEV.to

Ship the article on the same schedule as the launch.

Write it once in Ocoya and DEV gets a real article: your first line as the headline and your post as the article, with the markdown intact, published at the hour you picked.

Connecting

A key, not a sign-in.

DEV has no sign-in button, so you copy a key from your own DEV settings and paste it into Ocoya. Ocoya checks it straight away.

  1. 1Open Settings, then Extensions, in DEV
  2. 2Generate a key under DEV Community API Keys
  3. 3Paste it into Ocoya
DEV.to API key
Connect DEV.to

Connected

That DEV.to API key was rejected. Generate a new key and try again.

Headline

Write the headline on line one.

The first line of your post becomes the headline, up to 128 characters. Prefer another? Type your own title and your post is left alone.

draft.md
1# We deleted our cache layer and got faster
2
3## The read path was the problem
4Every request hit Redis before it hit Postgres, and Postgres was answering in 1.2ms anyway.
5SELECT * FROM posts;
Headline
We deleted our cache layer and got faster
41of 128

The headline is not printed twice in the article.

Article

Markdown in, article out.

Headings, lists, links and code samples reach DEV as you wrote them. Hover a line to see where it lands.

SourceArticle
# What changed

What changed

We took Redis out of the read path.

We took Redis out of the read path.

- Latency stayed flat
- One service fewer
  • Latency stayed flat
  • One service fewer
```sql
SELECT * FROM posts;
```
SELECT * FROM posts;
[Read the benchmark](https://…)
Read the benchmark

A line that starts with a hashtag could turn into a giant heading on DEV. Ocoya keeps it a hashtag.

launchGiant heading
#launchStays a hashtag
Images

Pictures go at the end of the article.

Every image you add is placed after the text, in the order you picked, at its own proportions. Nothing is cropped to a banner.

  • +Up to 10 images per article
  • +Alt text travels with each image
  • +Videos are not part of an article
dev.to/gridlines3 of 10

We deleted our cache layer and got faster

Every request hit Redis before it hit Postgres, and Postgres was answering in 1.2ms anyway.

![Latency chart](latency.png)
![Build output](build.png)
![Phone view](mobile.png)
Scheduling

Same calendar, one article every thirty seconds.

DEV articles sit in the calendar next to your other networks. DEV accepts one article every thirty seconds, so space a batch apart.

Mon
Tue
Wed
07:00
Thu
Fri
07:00:0007:00:3007:01:0007:01:30
Same minute
07:0007:00Too close, DEV says wait
Thirty seconds apart
07:0007:0007:01Published
Announcing

One draft, the article and its announcement.

The long version goes to DEV, the short version to X, LinkedIn and Mastodon — each under its own limit, each at the minute you choose. The write-up and the posts pointing at it stop being two separate jobs.

How publishing works
Article
We deleted our cache layer and got faster</>
Short post

We deleted our cache layer. Here is the write-up.

Short post

We deleted our cache layer. Here is the write-up.

Short post

We deleted our cache layer. Here is the write-up.

Workflows

Turn releases into articles

A feed trigger, a Generate text step and a Publish to DEV step are enough to turn every release into an article — tested step by step before you set the workflow live.

See Workflows
Feed trigger
Generate text
Publish to DEV
run #42Passed
100:01New release found
200:03Article drafted
300:04Published on DEV
Taking it down

DEV has no delete, so Ocoya unpublishes.

Delete a post in Ocoya and the article goes back to a draft on DEV: gone from the site and the feeds, still in your own drafts.

dev.to/dashboard
Published 2
Drafts 1
Notes from a quiet release
Why we dropped Redisdraft
We deleted our cache layer and got fasterdraft
Questions

Quick answers.

faq

No. DEV has no sign-in button for apps. You generate an API key in DEV under Settings, then Extensions, and paste it into Ocoya. Ocoya checks it right away.

The first line of your post, up to 128 characters. You can type your own title instead. If there is nothing to use, DEV gets "Untitled article".

Yes. Your text goes to DEV as markdown, so headings, lists, links and code samples stay as written. Images are added at the end of the article, up to 10. Videos are not part of an article.

Up to 100,000 characters in the editor, and DEV itself stops at 800 KB, which is far more than most articles need.

DEV accepts one article every thirty seconds from an account. Space a batch of scheduled articles apart instead of stacking them on the same minute.

DEV has no delete for apps, so Ocoya unpublishes it. The article goes back to a draft that only you can see.

Your next write-up, already scheduled.

Connect DEV.to and queue an article in a minute.