After reading Adam Mordecai's advice about writing 25 headlines for every piece of content you publish, I thought to myself — wouldn't it be great if there were a little microsite just for that - but with support for tweets & email subject lines too? So I built one.

How it works

Depending on what type of content you're working on, the app will set character count triggers that color code your headlines. Yellow means you've passed the optimal length. Orange means you're headline is too long. And red means you've reached the maximum character limit.

Your data is autosaved using localStorage, so you don't have to worry about losing any of your great prose and as of, you can share your headlines, (in read only mode). Click the "share & export" button and you'll be redirected to a permanent URL that you can share with friends & colleagues for feedback.

Challenges I ran into

I could probably have written this without jQuery, but it would have taken me so. much. longer. That said, I ran into a lot of issues figuring out how to access the inner text of my DOM elements. I think I used all of the following at some point: .text, .val(), .value, innerText, $(this), etc. As you can see on GitHub, this is some of the dirtiest code I've written in a while, but it does work.

Edit, 12/9: Changed around sentence/title casing behavior so it's triggered onblur rather than onkeyup. Even with debouncing it was causing issues.

Edit, 1/13: Moved email & twitter to their own subpages, created separate datastores for all three content types, massively cut down on JS, and eliminated sentence / title casing (was driving me NUTS).

Edit, 1/22: Integrated spammy to flag subject lines that contain common spam triggers.

Accomplishments that I'm proud of

I had an idea, and I implemented it — that's always huge for me. Also, I've gotten a lot of great feedback from fellow bloggers, copywriters, and marketers validating the idea / utility.

What I learned

I had to create a sentence casing class, and using some code from SO, I learned how to extend the String prototype. All new stuff to me.

What's next for 25Headlines

I've got a few ideas below, but I'd love to hear from you.

I'd like to add a progress meter / gamification to provide some encouragement to writers — you don't want people to quit at #15. Also, I've been thinking about a voting system (PH / HNstyle) so you can get feedback form your colleagues before you pick something. Also, maybe a way to connect this to Hootsuite or Optimizely. Oh and I might also push this through MacGap to create a desktop app, who knows?

+ 2 more
Share this project: