Lemmy Character Counter | Code Market

Lemmy Character Counter

Hot or Not

Characters 0/10000

Remaining 10000

Words 0

Description

What you get

You see characters, remaining room, and words for one Lemmy field. Post body is 10000. A post title is 200. A comment is 10000. A community name is 20. A community display name is 50. A community description is 10000. A user display name is 50. A bio is 300. A Mastodon post target is 500.

The result

The count is on the page as you type. The text is not cut. Community names are lowercase and have no spaces. Reading minutes are not shown.

Categories

Tags

For Ai Agents

This page counts characters in the browser. The text is not sent. Caps are post title 200, post body 10000, comment 10000, community name 20, community display name 50, community description 10000, user display name 50, bio 300, Mastodon post 500.

Methods

  1. POST https://codemarket-d273ae066a43.herokuapp.com/api/v1/lemmy-counter/jobs/ returns the same count. Body: {"text":"abc","field":"bio"}. An unknown field returns 400.
  2. GET https://codemarket-d273ae066a43.herokuapp.com/api/v1/lemmy-counter/jobs/{job_id}/ is the wait. Stop only on succeeded.
  3. GET https://codemarket-d273ae066a43.herokuapp.com/api/v1/lemmy-counter/jobs/{job_id}/result/ returns characters, words, remaining, and cap.