GitPedia

Twitter text

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.

From twitter·Updated June 18, 2026·View on GitHub·

This repository is a collection of libraries and conformance tests to standardize parsing of Tweet text. It synchronizes development, testing, creating issues, and pull requests for twitter-text's implementations and specification. These libraries are responsible for determining the quantity of characters in a Tweet and identifying and linking any URL, @username, #hashtag, or $cashtag. The project is written primarily in HTML, distributed under the Apache License 2.0 license, first published in 2014. It has gained significant community traction with 3,135 stars and 530 forks on GitHub. Key topics include: emoji, java, nodejs, objective-c, ruby.

Latest release: v3.0.13.0.1 JS release
December 18, 2018View Changelog →

twitter-text

This repository is a collection of libraries and conformance tests to standardize parsing of Tweet text. It synchronizes development, testing, creating issues, and pull requests for twitter-text's implementations and specification. These libraries are responsible for determining the quantity of characters in a Tweet and identifying and linking any URL, @username, #hashtag, or $cashtag.

See implementations and conformance in this repository below:

Other language implementations

The following implementations exist in other programming languages, but are not supported by or used by Twitter.
We'd like to thank the authors for building and maintaining these alternatives.

If you would like to contribute a link to other implementations, please consider sending a Pull Request, or letting us know via the Twitter Developer Community forums.

Copyright 2012-2020 Twitter, Inc and other contributors

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Contributors

Showing top 12 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from twitter/twitter-text via the GitHub API.Last fetched: 6/21/2026