[code] add tiny pubsub