get max token size of the package

Signed-off-by: abbr <wenfred@gmail.com>